Skip to main content
Glama

run_plan

Start a plan from plan_template as extraction jobs after confirming its credit price; returns the plan with started job ids, and if credits fail, nothing is charged and it can be retried after topping up.

Instructions

Start a plan made by plan_template as extraction jobs. Uses credits: the template's flat price, less when results are thin and nothing when they are empty. Confirm the price with the user first. A plan that has started cannot run again (a second call returns plan_not_approvable); if it fails for lack of credits nothing is charged and it can be run again after topping up. Returns the plan with the job ids started; follow-up steps start as results come in, so poll get_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": {
      "plan_id": "<plan_id>"
    },
    "name": "run_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.7/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so well: it discloses credit charging rules (flat price, reduced for thin results, zero for empty), that a started plan cannot be re-run (returning plan_not_approvable), and that a failed run charges nothing and is retryable after top-up. It also describes the return value and the asynchronous continuation behavior.

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?

Front-loads purpose in the first clause, then cost, then state/idempotency rules, then the return and polling guidance. It is dense but every sentence adds operational information an agent needs; nothing is redundant.

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?

Although there is no output schema, the description explains what is returned (the plan with started job ids) and the follow-up polling path. Combined with the billing and error semantics, an agent has everything needed to invoke and act on results correctly.

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?

There is a single parameter with 100% schema description coverage, so the schema already explains plan_id and its link to plan_template. The description adds no format or constraint detail beyond that, which is the expected baseline when the schema does the work.

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?

Uses a specific verb ("Start") and names the exact resource ("a plan made by plan_template") plus the effect ("as extraction jobs"). It is immediately distinguishable from plan_template (which creates the plan) and get_plan (which polls it).

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?

Explicitly instructs the agent to confirm the price with the user first and to poll get_plan for follow-up steps as results come in. It also states the re-run condition after a credit failure, so both when-to-use and what-to-do-next are covered.

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