Skip to main content
Glama

get_plan

Retrieve a plan’s status, steps, job IDs, step statuses, result counts and billed credits. Use it after starting a plan to poll until all steps finish, then read each job’s results.

Instructions

Get a plan's status, its steps and the job id started for each step, with each step's status, result_count and billed_credits. Free and read-only. After run_plan, poll it until every step has finished (some follow-up steps start later), then read each job with get_extraction_result. For a template plan the charge is in recipe (price, settled once finished, returned); per-step billed_credits stays 0.

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_id": "<plan_id>"
    },
    "name": "get_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
plan_idYesPlan id returned as id by plan_template.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.1
    • addedInput schema / properties / plan_id / description
      Added value: +"Plan id returned as id by plan_template."
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations supplied, the description still declares the key traits: free, read-only, and eventually consistent (some steps start later, so polling is required). It also discloses the billing model, including that per-step billed_credits stays 0 for template plans where the charge appears in recipe. It stops short of naming the terminal status values an agent must poll for, or any rate-limit/backoff behavior, which leaves a modest gap for a polling tool.

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?

Front-loaded with the return contract, then workflow, then the billing caveat, with no filler sentences. The final sentence about template-plan pricing is dense but earns its place because it prevents misreading a 0 credit count as free.

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?

No output schema exists, so the description must carry the return contract, and it does by enumerating plan status, per-step job id, status, result_count and billed_credits. The workflow and billing nuances are covered; the only shortfall is not enumerating the status values that signal a step is finished, which matters for a tool whose usage pattern is polling.

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?

Only one parameter, plan_id, and the schema description already states it is the id returned by plan_template at 100% coverage. The description adds no further semantics for the id itself but does frame the value's origin implicitly through the plan/run_plan workflow, which is slightly more than the schema alone.

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?

Opens with a specific verb and resource ("Get a plan's status, its steps and the job id started for each step") and enumerates the returned fields, so the agent knows exactly what comes back. It is clearly distinguished from get_extraction_result, which is named as the follow-up for individual jobs.

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?

Gives an explicit workflow: call after run_plan, poll until every step has finished, noting that some follow-up steps start later, then read each job with get_extraction_result. The ordering constraint and the downstream handoff are both stated rather than inferred.

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