Skip to main content
For LLM function-calling traffic, TrustGate can shape which tools the model sees and how often they run. Create policies under PoliciesCatalog, or attach them from a consumer Policies tab. These policies apply to the LLM request tools[] / tool-call path (and, for the rate limiter, to MCP tool executions). They are not the same as MCP toolkit grants on a consumer or role, which control which MCP server tools an agent may list and call — see MCP.

Tool Injection

tool_injection injects operator-authored function tools into the outbound request so the model can call them. It does not filter or deny client-supplied tools — it only adds gateway tools (and resolves name collisions).

Configure in the console

  1. PoliciesCatalogTool Injection (Tool Governance group).
  2. Under Inject tools, add one or more functions:
    • Name (required)
    • Description (optional — helps the model choose when to call it)
    • Parameters (optional JSON Schema object for arguments)
  3. Set On conflict when an injected name collides with a client tool.
  4. Set mode and scope (gateway-wide or targeted consumers), then save.

Settings

Stage: pre_request. Protocol: LLM only.

Per-Tool Rate Limiter

per_tool_rate_limiter counts real tool executions (not generic HTTP requests) and enforces one or more time windows per tool pattern. It works for LLM tool calls and native MCP tool traffic. In the catalog it lives under Traffic Control (not Tool Governance), next to the request rate limiter.

Configure in the console

  1. PoliciesCatalogPer-Tool Rate Limiter.
  2. Add rules. The first rule whose tool pattern matches a tool call wins.
  3. For each rule set:
    • Tool — glob against the tool name (e.g. execute_code*, search_*)
    • Windows — one or more { duration, max } pairs (e.g. 1m / 60, 1h / 500)
    • Optional per-rule behavior (otherwise the policy default applies)
  4. Set the default behavior when a window is exceeded.
  5. Save.

On exceed (behavior)

Counters follow policy scope: gateway-wide for global policies, otherwise per consumer.

What is not a catalog policy