Skip to main content
Glama

Ferrite

Explain a gate code

explain_gate
Read-onlyIdempotent

Explain a gate violation code (CODE_*/APP_*/CAP_*/DELTA_*/SERVICE_*/SPEC_*/COMPUTE_*) and how to fix it. For spec violations, validate_spec's live fix_it is canonical.

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": {
      "code": "<code>"
    },
    "name": "explain_gate"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, closed-world, and non-destructive, so the safety profile needs no restating. The description adds two genuine behavioral facts beyond them: the response includes a remediation ('how to fix it') and that spec-violation fixes should come from validate_spec's live fix_it instead. It says nothing about depth or format of the explanation, which is acceptable given rich annotations.

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 sentences, front-loaded with what the tool does, followed immediately by the alternative-tool caveat. No padding or restated title text.

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 one-parameter, read-only lookup with no output schema, the definition covers input vocabulary, output nature (explanation plus fix), and a delegation rule. The only gap is guidance versus the closely related code_gate sibling, which the description never mentions.

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

Parameters4/5

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

Schema coverage is 0% for the single 'code' parameter, so the description carries the burden — and it does, by enumerating the accepted code prefixes, effectively supplying the value vocabulary the schema omits. It stops short of stating case sensitivity or exact format rules.

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

Purpose5/5

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

States a specific verb (explain) and resource (gate violation code) and even enumerates the code families it accepts (CODE_*/APP_*/CAP_*/DELTA_*/SERVICE_*/SPEC_*/COMPUTE_*). It also explicitly distinguishes itself from validate_spec for the spec-violation case, so an agent can route without opening either schema.

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

Usage Guidelines4/5

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

Provides a concrete routing rule: for spec violations, validate_spec's live fix_it is canonical, implying this tool is for static explanation of other code families. It does not address when to prefer it over code_gate, but the one alternative it does name is stated with its selecting condition.

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.