Skip to main content
Glama

plan_create

Create a new step-by-step plan and write it to .opencode/plan.md, enabling an agent to track and resume work from defined steps.

Instructions

Create a new plan and write it to .opencode/plan.md.

Args: steps: List of step descriptions to add to the plan.

Returns: A message reporting the number of created steps on success, or an error message on failure.

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": {
      "steps": "<steps>"
    },
    "name": "plan_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description does useful work by disclosing that the tool writes a file at .opencode/plan.md and that it returns a step count or an error. However, it omits the key mutation semantics: whether an existing plan file is overwritten, whether a plan must be empty first, and whether the write is reversible.

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?

The action and destination are front-loaded in the first sentence, and the Args/Returns blocks are short and scannable. No sentence is wasted.

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?

The tool is simple (one required array parameter) and safety behavior is largely covered, but with no annotations and a write side effect, the definition should state overwrite/creation preconditions and how it relates to plan_next/plan_done. The Returns section is partly redundant given an output schema exists.

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 description coverage is 0% and the single parameter carries only the title "Steps", so the description supplies real meaning: each array element is a step description to be added to the plan. It could go further by noting ordering or duplicate handling, but it compensates for the schema gap well.

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?

Uses a concrete verb and resource ("Create a new plan") and names the side effect location (.opencode/plan.md), so the action is unambiguous. It does not distinguish itself from the sibling lifecycle tools (plan_done, plan_fail, plan_next), leaving that differentiation to names alone.

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

Usage Guidelines2/5

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

There is no statement of when to call this versus the other plan tools, nor any prerequisite such as whether a plan must not already exist. The only hint is the implicit 'create a new plan' wording.

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