Skip to main content
Glama

snippet_toggle

Destructive

Enable or disable a code snippet by ID; enabling also clears any prior auto-deactivation error.

Instructions

Activate or deactivate a snippet by ID. Activating clears any prior auto-deactivation error.

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": {
      "id": "<id>",
      "active": "<active>"
    },
    "name": "snippet_toggle"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
activeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true, so the safety bar is lower, and the description adds genuine value by disclosing that activation clears a prior auto-deactivation error — a real side effect the agent would otherwise not expect. It says nothing about what deactivation does to a live site, whether error state is lost irrecoverably, or what happens with a nonexistent ID.

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

Conciseness4/5

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

Two tight sentences, front-loaded with the action and scope, with the side-effect note following. Nothing is padded, though it is on the terse side for a mutation tool.

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 two-parameter destructive toggle with no output schema, the definition covers the core action and one side effect but omits failure behavior, the consequence of deactivating working code, and any permission or confirmation requirement. Adequate, not complete.

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 description coverage is 0%, so the description must carry the parameter burden. It does map loosely onto both fields — 'by ID' for id and 'activate or deactivate' for the active boolean — but gives no format hints, no true/false mapping, and no clue where an 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 gives a specific verb pair (activate/deactivate) against a specific resource (a snippet, addressed by ID), which an agent can readily separate from snippet_delete, snippet_get, snippet_save and snippet_list. It stops short of naming a sibling to steer away from, so it lands just under the top mark.

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 by the verb: flip a snippet's enabled state. There is no explicit when-to-use guidance versus snippet_save or snippet_delete, and no stated preconditions such as whether the snippet must exist or already be in a given state.

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