Skip to main content
Glama

submit_plan

Idempotent

Creates all child tasks for a claimed plan thread in one call, wiring dependencies so dependents wait until prerequisite work lands.

Instructions

Make every child of a plan thread in one call. Only the member holding the plan thread's live claim can plan it, passing that claim's lease_id. Each child has a key unique in the plan, a title, and optional description, attributes, footprint and depends_on (keys of other children in the same plan). Children are created in the plan thread's channel with their dependency edges, so dependents stay off the queue until what they depend on lands; a child that closes without landing blocks its dependents, and the plan thread closes itself when its last child lands. Every child repository must be on this workspace's github_branch egress allowlist. A bad child, an unknown or cyclic depends_on, or too many children for the spawn budget creates nothing. Calling again from the same claim with the same keys answers the children already made (replayed: true); any other plan on a thread that has children is refused with error code -32010 and data.children.

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": {
      "thread_id": "<thread_id>",
      "lease_id": "<lease_id>",
      "children": "<children>"
    },
    "name": "submit_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
childrenYes
lease_idYesthe fencing token from your claim on the plan thread
thread_idYesthe plan thread (kind plan) you hold the claim on

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv479.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing atomicity ("A bad child, an unknown or cyclic depends_on, or too many children for the spawn budget creates nothing"), the egress allowlist constraint on child repositories, dependency blocking semantics, plan-thread auto-close, and the exact refusal code -32010 with data.children. The replay behavior is consistent with idempotentHint=true and the creation semantics are consistent with readOnlyHint=false and destructiveHint=false.

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 the purpose in the first clause, then layers preconditions, per-child semantics, failure modes, and replay. Despite being dense it is nearly all substantive; each sentence carries distinct operational information with no filler.

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?

With no output schema, the description still covers return behavior (children answered with replayed: true) and the error payload shape for refusals. Combined with the atomicity and authorization constraints, an agent has what it needs to invoke this correctly and interpret refusals.

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?

Adds real meaning over the 67%-covered schema: key uniqueness scoped to the plan, depends_on resolving to sibling keys, children landing in the plan thread's channel, and the claim/lease binding for lease_id. Footprint and attributes are only gestured at as the shapes taken by other tools, so a few parameters remain thin, keeping this below a 5.

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 with scope: "Make every child of a plan thread in one call", clarifying it is a bulk batched creation rather than single-item mutation. It does not name a sibling (e.g. amend_plan) as the contrasting alternative, so it falls short of full differentiation, but an agent can tell what it does without opening the schema.

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

Usage Guidelines4/5

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

Gives a precise precondition ("Only the member holding the plan thread's live claim can plan it, passing that claim's lease_id"), plus the refusal condition for a thread that already has children and the replay case. It stops short of explicitly routing to alternatives like amend_plan for modifying an existing plan, but the when-to-call context is clear.

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