Skip to main content
Glama

plan_template

Preview a template with your inputs to see its steps and flat credit price before running anything. Save the returned plan id for run_plan; nothing executes or charges until then.

Instructions

Preview a template for given inputs: saves a plan listing its steps and the template's flat price in credits (estimated_credits). Free; nothing runs or is charged until run_plan, and each call saves a new plan. Follow-up steps pick their targets from earlier results. Steps marked deep=true are extra context for a full report and are not run by run_plan. Show the user the steps and price, then pass the returned id to run_plan.

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

Input Schema

NameRequiredDescriptionDefault
inputsNoTemplate inputs as an object of input key to value. Every input key list_templates shows for the template is required. Example: {"handle": "nike"}
template_idYesTemplate id from list_templates. Example: instagram-competitor

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • addedInput schema / properties / inputs / description
      Added value: +"Template inputs as an object of input key to value. Every input key list_templates shows for the template is required. Example: {\"handle\": \"nike\"}"
    • addedInput schema / properties / template_id / description
      Added value: +"Template id from list_templates. Example: instagram-competitor"
  2. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does so well: it discloses that the call has a persistent side effect ('each call saves a new plan'), the cost model ('Free; nothing runs or is charged'), the returned price field (estimated_credits), and the meaning of deep=true steps. These are exactly the facts an agent needs before invoking a tool that mutates state.

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?

It is front-loaded with the core action and cost/state effects, then moves to edge cases (deep steps) and the handoff instruction. The writing is dense and largely waste-free, though the semicolon-chained clauses make it a little harder to scan than it could be.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter, nested-input tool with no output schema, the description covers everything material: side effects, charging, the returned id and estimated_credits, and how the result feeds run_plan. Nothing an agent needs in order to call and follow up correctly is missing.

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 100%, so the baseline is 3; the description earns extra credit by explaining that 'Follow-up steps pick their targets from earlier results', which clarifies how the inputs object should be constructed in multi-step templates. It does not add format or validation detail for individual input keys, which the schema already covers.

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?

The description opens with a specific verb and resource ('Preview a template for given inputs') and immediately disambiguates it from the sibling that actually executes work: 'nothing runs or is charged until run_plan'. An agent can distinguish this from run_plan and list_templates without consulting any schema.

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

Usage Guidelines5/5

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

It states the explicit workflow: call this first, show the user the steps and price, then pass the returned id to run_plan. It also gives the exclusion condition (deep=true steps are not run by run_plan), leaving little to inference.

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