Skip to main content
Glama

Owner: switch an agent's spending on or off

set_policy_enabled
Idempotent

Owner kill switch. enabled=false instantly blocks every swap and payment through the policy; enabled=true turns it back on. Requires admin_key.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "policy_id": "<policy_id>",
      "admin_key": "<admin_key>",
      "enabled": "<enabled>"
    },
    "name": "set_policy_enabled"
  }
}

Input Schema

NameRequiredDescriptionDefault
enabledYes
admin_keyYes
policy_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, yet the description adds real behavioral context: the effect is 'instant' and blasts 'every swap and payment through the policy', and an admin_key is required. It stops short of covering error conditions or what the call returns, so not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the identity ('Owner kill switch') followed by the two value semantics and the auth requirement. Every clause carries information; nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple three-parameter idempotent toggle with annotations covering the safety profile and no output schema, the description is nearly sufficient: effect, polarity, and auth are all stated. It omits the response/confirmation and behavior for an unknown policy_id, which is a modest gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for three required params, so the description must supply meaning. It fully explains 'enabled' (false blocks, true re-enables) and clarifies 'admin_key' as an auth credential, but 'policy_id' is only implied by 'the policy' with no indication of where the ID comes from.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a concrete verb+resource ('Owner kill switch' switching a policy on/off) and states precisely what each boolean value does: enabled=false blocks every swap and payment through the policy, enabled=true restores them. It does not explicitly contrast with policy_status or other siblings, so an agent must infer that this tool mutates while policy_status reads, keeping it below a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied through 'Owner kill switch' and 'Requires admin_key', which tells the agent this is an owner-level mutation, but there is no explicit when-to-use vs when-not guidance and no named alternative (e.g., use policy_status to inspect state first). Adequate but leaves routing to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.