Skip to main content
Glama

BotSpot: AI Trading, Backtests and Bots

Create plan

create_plan
Destructive

Creates a persisted, user-visible plan for substantial work in the current conversation. Use this for strategy builds, strategy edits, research, deployment setup, backtest analysis, broker investigation, and other multi-step tasks. Do not use this for greetings, small talk, simple answers, advice-only turns, critique-only turns, ordinary clarification, or no-op connectivity checks such as a current user message that is only 'test', 'ping', or 'testing'. Do not use this for preliminary discovery research whose purpose is deciding what to build, including broad outcome-only, vague profit, generic best-strategy, or underspecified make/build-something requests. Search first, summarize opportunities and risks, and ask concise build-choice questions without creating a plan or possible future build-step items. Forbidden sequence: broad/underspecified profitable or current-market build request -> web_search -> create_plan in the same turn. Your own recommendation after search is only a proposal; wait for the user's follow-up choice or acceptance before creating a plan. If you only need a user clarification before doing work, do not create a plan yet. If a plan already exists and user input is needed before continuing, use update_plan_item to mark the current item waiting with waitReason=waiting_for_user before asking the user. If an active plan already exists and replaceExisting is omitted, a valid creation request succeeds non-destructively by returning that active plan with reusedExisting=true. This is not an empty-items lookup: items still requires at least one actual item. Reuse the returned plan/id or call get_active_plan for readback; continue it with update_plan_item, add_plan_item, replace_plan_items, or complete_plan. A true replacement remains explicit: set replaceExisting=true, pass supersedesPlanId, and include replacementReason only when the existing plan is obsolete or the user changed the work. This does not create or modify strategies, backtests, deployments, trades, or tool access. Do not send a top-level rationale field. At the top level use only the documented plan fields; put item-specific rationale, evidence, status, and outcome inside the relevant items[] object. Every item must include the exact field completionCriteria with model-visible completion criteria so the agent has a concrete standard for marking it done. Domain-specific policy belongs in prompts and skills. This tool only persists the visible plan that the model provides. Plan items progress in visible order; outcome.status is plan-item satisfaction, not backtest.status or another external status. A partial or unsuccessful outcome does not by itself require a new row. Add a referenced follow-up only when genuinely new executable work is not already represented by a later plan item; otherwise keep limitations and fallback assumptions in the existing item's evidence and continue the existing plan. This is only the visible plan; after it is created, continue using the relevant domain tools instead of answering with only prose.

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": {
      "title": "<title>",
      "items": "<items>"
    },
    "name": "create_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNo
itemsYesAt least one actual plan item is required, including a create/reuse request. To read or continue an existing plan, reuse its returned id or call get_active_plan; do not call create_plan with empty items as a lookup.
titleYes
conversationIdNoOptional conversation UUID. Omit this field to use the current MCP conversation context; never pass placeholders such as `current`.
replaceExistingNoSet true only when an existing active plan is obsolete or the user explicitly changed the work. Omit this for normal continuation.
supersedesPlanIdNoThe active plan UUID being replaced. Use get_active_plan first if you do not know it.
replacementReasonNoRequired when replaceExisting=true. Explain why the current active plan is being cancelled instead of updated.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changed
    • addedInput schema / properties / conversationId / anyOf
      Added value: +[
      +  {
      +    "format": "uuid",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / conversationId / format
      Removed value: -"uuid"
    • removedInput schema / properties / conversationId / type
      Removed value: -"string"
    • changedInput schema / properties / items / items / properties / externalWaitId / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/conversationId"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/properties/conversationId/anyOf/0"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / items / items / properties / revisionId / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/conversationId"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/properties/conversationId/anyOf/0"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / items / items / properties / status / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "pending",
      +      "in_progress",
      +      "waiting",
      +      "completed",
      +      "blocked",
      +      "skipped",
      +      "removed"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / items / items / properties / status / enum
      Removed value: -[
      -  "pending",
      -  "in_progress",
      -  "waiting",
      -  "completed",
      -  "blocked",
      -  "skipped",
      -  "removed"
      -]
    • removedInput schema / properties / items / items / properties / status / type
      Removed value: -"string"
    • addedInput schema / properties / kind / anyOf
      Added value: +[
      +  {
      +    "maxLength": 80,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / kind / maxLength
      Removed value: -80
    • removedInput schema / properties / kind / minLength
      Removed value: -1
    • removedInput schema / properties / kind / type
      Removed value: -"string"
    • changedInput schema / properties / replaceExisting / type
      Previous value: -"boolean"New value: +[
      +  "boolean",
      +  "null"
      +]
    • changedInput schema / properties / supersedesPlanId / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/conversationId"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/properties/conversationId/anyOf/0"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / items / items / properties / dependsOnItemIds / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "$ref": "#/properties/conversationId"
      -    },
      -    "maxItems": 20,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "$ref": "#/properties/items/items/properties/parentItemId/anyOf/0"
      +    },
      +    "maxItems": 20,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / items / items / properties / parentItemId / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/conversationId"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 80,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed1 schema field changed
    • addedInput schema / properties / items / description
      Added value: +"At least one actual plan item is required, including a create/reuse request. To read or continue an existing plan, reuse its returned id or call get_active_plan; do not call create_plan with empty items as a lookup."
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=true, idempotentHint=false, openWorldHint=true) by disclosing the reuse path when replaceExisting is omitted (returns the active plan with reusedExisting=true), the explicit replacement path requiring supersedesPlanId and replacementReason, and the fact that items must contain at least one real item. It also clarifies scope boundaries: it does not create or modify strategies, backtests, deployments, trades, or tool access, and the plan is only the visible plan.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and prohibitions are front-loaded, which is good, but the paragraph is very long and contains near-duplicate admonitions (no-op checks repeated, replacement explicitness stated twice, end-of-text reminders about 'only the visible plan' and 'do not send a top-level rationale'). Some sentences, such as the meta-note about domain policy living in prompts and skills, do not help an agent select or invoke the tool.

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?

Given a mutation-style tool with no output schema, the description covers everything the agent needs: when it applies, what it refuses, the non-destructive reuse behavior and returned signals, replacement prerequisites, item-level required fields, and the follow-up tool sequence. Edge cases involving an existing active plan are resolved explicitly.

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 71%, so the schema baseline is moderate, and the description adds real meaning: it mandates completionCriteria on every item, restricts where rationale/evidence/status/outcome belong, and conditions replaceExisting/supersedesPlanId/replacementReason usage. It does not, however, explain kind, conversationId, or how items progress beyond ordering.

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 opening sentence gives a specific verb, resource, and effect: 'Creates a persisted, user-visible plan for substantial work in the current conversation.' It also explicitly separates this from sibling operations by naming get_active_plan, update_plan_item, add_plan_item, replace_plan_items, and complete_plan as continuation paths.

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?

Provides an unusually explicit when-to-use list (strategy builds/edits, research, deployment setup, backtest analysis, broker investigation) and a when-not-to-use list (greetings, small talk, simple answers, advice-only, critique-only, clarification, 'test'/'ping'). It also names a forbidden sequence and the alternative behavior (search first, summarize, ask build-choice questions, wait for user acceptance).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.