Skip to content
List workspace tool policies

List workspace tool policies

Read the workspace policy of every tool of every integration in one call.

GET/api/v1/tool-policies

Request#

TypeScript
const response = await fetch("https://api.smallworld.sh/api/v1/tool-policies", {
  method: "GET",
  headers: { Authorization: `Bearer ${apiKey}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
const result = await response.json();

Use your server-side apiKey. Replace the example IDs.

Responses#

Returns items, without a pagination cursor. Returns integration, toolName, policy (the setting at this level: allow, ask, deny, or inherit when there is no override), effectivePolicy (allow, ask, or deny), and source: integration_default, world_override, group_override, user_override, workspace_hidden, group_hidden, or disabled. Workspace policies are never inherit.

200 response
{
  "items": [
    {
      "integration": "acme",
      "toolName": "get_order",
      "policy": "allow",
      "effectivePolicy": "allow",
      "source": "integration_default"
    },
    {
      "integration": "acme",
      "toolName": "refund_order",
      "policy": "deny",
      "effectivePolicy": "deny",
      "source": "workspace_hidden"
    }
  ]
}
More about this endpoint

Set individual defaults with PUT /tool-policies/:integration/:toolName, or update a batch atomically with integration activation and World assignment through PATCH /integrations/:integration/configuration.

deny means the workspace hides the tool: no World or user override can show it. Tools of an integration that is turned off have effectivePolicy deny and source disabled.

Every integration in the catalog is listed, including ones the workspace hasn't added. Tools of an MCP server appear once a connection or the server reports them.