Skip to Content
GatewaysTool Scoping

Tool Scoping

Decide exactly which tools each gateway exposes. A gateway starts empty and you assign tools into it, so every gateway has a focused, purpose-built surface: a read-only public one, a full-access internal one, one per team. Nothing is exposed until you choose it.

Assigning tools on the gateway Tools tab

Assign tools in the UI

  1. Open the gateway detail page and click the Tools tab
  2. Click Add Tools to see every tool in your organization
  3. Select one or more tools and click Assign
  4. Use the presets dropdown for quick selection (see below)
  5. Toggle individual tools on or off with the Enabled switch
  6. Click a tool row to set per-gateway rate limits and security policies

Presets

PresetDescription
AllAssign every available tool
NoneRemove all assignments
Read OnlyAssign only GET/query operations
AdminAssign all CRUD operations
PublicAssign tools suitable for public access

Per-gateway tool configuration

Each assignment can carry gateway-specific overrides, set from the tool row on the Tools tab. The stored config looks like this:

{ "enabled": true, "rateLimit": 100, "securityPolicy": { "requireAuth": true, "allowedScopes": ["tools:execute"] } }
FieldTypeDescription
enabledbooleanWhether the tool is active on this gateway
rateLimitnumberMax requests per minute for this tool
securityPolicyobjectGateway-specific security overrides

The same tool can be read-only on a public gateway and rate-limited differently on an internal one. Overrides live on the assignment, not the tool itself.

Usage statistics

Each gateway tracks per-tool usage so you can see what is actually being called. The stats include call counts, success rate, and latency:

{ "stats": [ { "toolId": "tool-1", "toolName": "get_users", "totalCalls": 1250, "successRate": 98.4, "avgDuration": 234, "lastCalledAt": "2026-03-23T10:30:00Z" } ] }

Common patterns

Read-only public gateway: assign only GET/query tools, enable API key auth, set per-tool rate limits.

Internal admin gateway: assign all tools, require Bearer token auth, no rate limits.

Per-team gateways: create separate gateways per team (marketing gets analytics tools, engineering gets deployment tools), each with its own keys and scopes.

See Gateway Authentication for the auth and scope options referenced above.