Skip to main content
Glama

explain_abstraction

Read-onlyIdempotent

Explains a stack abstraction by name and returns candidate layers when the name is ambiguous; specify a layer to disambiguate.

Instructions

Explain a stack abstraction. If the name matches several layers, returns candidates instead of picking one.

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_abstraction"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesAbstraction name or alias, e.g. "AIC", "tmov", "TMOV". Use search_abstractions() to discover names.
layerNoOptional card layer or framework prefix, e.g. "ptoas", "pto-isa/instruction", "simpler/scheduler". Required when the same folded name exists in more than one layer.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.3.2
    • addedInput schema / properties / layer
      Added value: +{
      +  "default": "",
      +  "description": "Optional card layer or framework prefix, e.g. \"ptoas\", \"pto-isa/instruction\", \"simpler/scheduler\". Required when the same folded name exists in more than one layer.",
      +  "title": "Layer",
      +  "type": "string"
      +}
    • changedInput schema / properties / name / description
      Previous value: -"Abstraction name or alias, e.g. \"AIC\", \"HCCLWindow\", \"Ascend910B\", \"cube\". Use search_abstractions() to discover names."New value: +"Abstraction name or alias, e.g. \"AIC\", \"tmov\", \"TMOV\". Use search_abstractions() to discover names."
  2. First observedv0.1.0

TDQS

B3.4/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 the safety profile is fully covered. The description adds one genuine behavioral trait beyond that: ambiguous names return candidates rather than guessing. It does not describe the response shape or candidate format, but an output schema exists, so that omission is acceptable.

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 short sentences, front-loaded with the action and followed by the key edge case. No filler. Slightly telegraphic — the ambiguity sentence could name which argument disambiguates — but efficient.

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 two-parameter read tool with an output schema and full annotation coverage, the description covers the core purpose and the ambiguous-match case. It stops short of explaining how the optional 'layer' resolves the multi-layer situation, so an agent must read the schema to learn the disambiguation path.

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 both parameters are documented there, including the 'layer' requirement when a folded name spans layers, so the schema does the heavy lifting. The description echoes the ambiguity handling without adding syntax, aliasing rules, or format detail beyond what the schema provides. Baseline 3 is appropriate.

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 states a specific verb and resource ('Explain a stack abstraction') and names the sibling 'search_abstractions' indirectly through the schema guidance. It clearly distinguishes the lookup-by-name behavior from the search behavior, though the description itself (not the schema) does not name the sibling, leaving a small differentiation gap.

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: use this when you already know the abstraction name; use search_abstractions to discover names (this is stated in the schema, not the description). The description adds the multi-match fallback behavior, which is a useful usage signal, but no explicit when-not or prerequisite guidance appears in the description text.

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