Set custom connector tool policy
Set or remove the field rules the agent's arguments to one mcp tool are checked against. Requires the admin scope.
curl -X PUT "https://productlane.com/api/v2/settings/custom-connectors/{id}/tool-policy" \
-H "Authorization: Bearer $PRODUCTLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tool": "string"
}'Authorization
AuthorizationstringheaderrequiredBearer authentication header of the form
Bearer <token>, where<token>is your auth token.
Parameters
idstringpathrequired
Body
toolstringrequiredpolicyanyField rules for the tool's arguments, in the dashboard's policy format (
unknownFields,fields,variants).nullremoves the policy.
Response
Successful response
idstringrequiredtitlestringrequireddescriptionstring | nullrequiredurlstringrequiredlogo_urlstring | nullrequiredLogo shown in the sidebar.
nullshows the favicon ofurl.typeenum<string>requiredOne of:httpmcporderintegerrequiredheadersobject[]requiredHeader names only. Stored values are encrypted and never returned.
available_to_agentbooleanrequiredWhether the customer-facing agent (widget, email, Slack replies) may read this connector. For
mcpconnectors it is true whenagent_toolsis not empty.agent_toolsstring[]requiredmcponly: tools the customer-facing agent may call. Every other tool stays internal (copilot, AI drafts).internal_blocked_toolsstring[]requiredmcponly: tools hidden from internal callers as well.reachable_without_identitybooleanrequiredmcponly: the widget agent may call it before the visitor verifies their email. For public knowledge like docs or status.tool_policiesanyField rules per tool name, in the dashboard's policy format. Set with
PUT /settings/custom-connectors/{id}/tool-policy.created_atstringrequiredupdated_atstringrequired
{
"id": "string",
"title": "string",
"description": "string",
"url": "string",
"logo_url": "string",
"type": "http",
"order": 0,
"headers": [
{
"id": "string",
"key": "string"
}
],
"available_to_agent": true,
"agent_tools": [
"string"
],
"internal_blocked_tools": [
"string"
],
"reachable_without_identity": true,
"tool_policies": null,
"created_at": "string",
"updated_at": "string"
}