Skip to main content
Glama

toggle-agent

Switches an active agent between enabled and disabled states by agent ID. Use it to turn an agent on or off without deleting it; only agents with active status can be toggled.

Instructions

Enable or disable an active agent. Only agents with "active" status can be toggled.

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": {
      "agentId": "<agentId>"
    },
    "name": "toggle-agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentIdYesThe agent ID to toggle

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the active-status gate, but says nothing about what toggling does semantically (on→off, off→on), whether the call is idempotent, what error is returned for a non-active agent, whether permissions are required, or what the response contains.

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?

Two short sentences, front-loaded with the action and followed immediately by the eligibility constraint; no filler.

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

Completeness3/5

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

For a simple one-parameter mutation with no annotations and no output schema, the definition covers purpose and eligibility but leaves the effect of a toggle and the failure mode for ineligible agents unspecified — gaps an agent would notice at call time.

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 100% and the single agentId parameter is documented in the schema itself. The description adds no format, prefix, or lookup detail beyond what the schema already provides, so the baseline of 3 applies.

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?

States a specific verb ('Enable or disable') and resource ('an active agent'), and adds the precondition that only active agents qualify. It falls short of 5 because it never says the operation flips the current state rather than setting a target state, and doesn't distinguish itself from update-agent, which could plausibly also change status.

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?

The precondition 'Only agents with "active" status can be toggled' tells the agent when the call will succeed, but gives no guidance on when to prefer this over a general update, nor what to do for non-active agents.

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