Skip to main content
Glama

explain_pass

Read-onlyIdempotent

Explains a Default pipeline pass by showing its order, phase, neighboring passes, and verification tasks so developers can understand compiler pass placement and dependencies.

Instructions

Explain a pass in the Default pipeline: order, phase, neighbors, verify tasks.

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

Input Schema

NameRequiredDescriptionDefault
nameYesPass name from the Default pipeline, e.g. LowerCompositeOps. Case-insensitive fallback is applied.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so safety is covered. The description adds the scope of the explanation (order, phase, neighbors, verify tasks), but says nothing about failure behavior when the pass name is unknown or how the case-insensitive fallback affects results — that detail lives only in the schema.

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?

One short sentence, front-loaded with the verb and resource, then a compact enumeration of what the explanation covers. Nothing is wasted and nothing needs reordering.

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 full schema coverage, annotations, and an output schema, the description covers purpose and scope adequately. The only gap is error/fallback behavior for an unrecognized pass name, which is minor given the output schema handles return values.

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%: the single parameter already documents that it takes a Default-pipeline pass name and that a case-insensitive fallback applies. The description adds no syntax, format, or edge-case meaning beyond that, 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 and resource: 'Explain a pass in the Default pipeline', and enumerates the returned facets (order, phase, neighbors, verify tasks). That distinguishes it in substance from siblings like explain_task and explain_abstraction, though it never names an alternative explicitly.

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 only implied — an agent can infer it should call this when it needs context about a pipeline pass. There is no statement of when to prefer it over explain_task, explain_scheduler, or explain_abstraction, and no prerequisites or exclusions.

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