Skip to main content
Glama

pt_explain_plan

Explains plan decisions in natural language so you can understand why specific models, IP addresses, and configuration choices were selected from a plan JSON.

Instructions

Explains the plan's decisions in natural language. Useful to understand why certain models, IPs, etc. were chosen.

Parameters:

  • plan_json: plan JSON

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

Input Schema

NameRequiredDescriptionDefault
plan_jsonYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden, and it does disclose the key trait that output is a natural-language explanation rather than structured diagnostics. However, it says nothing about whether this is purely a read-only analysis, whether it requires a valid/complete plan, or whether it incurs latency from a model call.

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?

The description is short and front-loads the core purpose in the first sentence. The trailing 'Parameters: - plan_json: plan JSON' block is redundant given the schema and does not earn its place, but the overall size is appropriate.

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?

An output schema exists, so return values need not be described, and the tool is a simple single-parameter analysis call. Still, the description leaves open the input format and any precondition on plan validity, which are the main things an agent needs to invoke it correctly.

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

Parameters2/5

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

Schema coverage is 0% and the single parameter is documented only as 'plan_json: plan JSON,' which merely restates the property name and title. It does not clarify whether the value is a serialized JSON string, a file path, or a plan identifier, so the description adds essentially no meaning beyond the schema.

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: 'Explains the plan's decisions in natural language,' which is clearly distinct from sibling operations like pt_validate_plan or pt_fix_plan. It does not explicitly name or contrast with those siblings, but the verb 'explains' plus 'in natural language' makes the function recognizable.

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?

'Useful to understand why certain models, IPs, etc. were chosen' gives a usage context, but it is a soft suggestion rather than an explicit when-to-use rule. There is no mention of prerequisites (e.g., must the plan be validated first) or when another sibling such as pt_validate_plan would be the better choice.

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

Deploy Server

Other Tools