Skip to main content
Glama

BotSpot: AI Trading, Backtests and Bots

Complete plan

complete_plan
DestructiveIdempotent

Marks the active plan completed, blocked, or cancelled. When working in the current conversation, omit conversationId; never pass placeholders such as current, this, or active. If you include conversationId, it must be the real UUID. This closes plan state only and does not alter other tool access. Call complete_plan with status="completed" only when the root objective is actually done. outcome.status is plan-item satisfaction, not an external backtest/deployment/trade status. A completed item with outcome.status="unsuccessful" or outcome.status="partial" is audit evidence for an attempt, not proof the root objective is done; add or update explicit follow-up work that references that item, or use blocked/cancelled for a real blocker. Do not tell the user the plan is done while the root plan is still active. Never call complete_plan right after record_external_wait_in_plan or while any visible item is waiting.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "complete_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
planIdNoOptional plan UUID. In the current conversation, omit planId unless you already have the actual plan id from get_active_plan or a wake message. Never pass a plan item id here; target plan items through target.itemId or target.position.
statusNocompleted
summaryNo
conversationIdNoOptional conversation UUID. Omit this field to use the current MCP conversation context; never pass placeholders such as `current`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 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 / planId / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/conversationId"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/properties/conversationId/anyOf/0"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / status / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "active",
      +      "completed",
      +      "blocked",
      +      "cancelled"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / status / enum
      Removed value: -[
      -  "active",
      -  "completed",
      -  "blocked",
      -  "cancelled"
      -]
    • removedInput schema / properties / status / type
      Removed value: -"string"
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description adds the crucial scope clarification: the destructive effect is limited to plan state and does not change other tool access. It further discloses the audit semantics of a completed-but-unsuccessful item and warns against telling the user the plan is done while the root plan is active, which is behavior beyond what annotations convey.

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 purpose and effect scope, then rules in descending priority; every sentence targets a real failure mode (placeholders, premature completion, waiting items). It is dense and slightly repetitive, and the outcome.status digression makes the middle harder to parse than the opening.

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?

For a four-parameter mutation tool with no output schema, the description covers the decision logic, the destructive scope, and the cross-tool sequencing constraint, which is enough to invoke it safely. It leaves the summary parameter's meaning and the expected response unaddressed, a minor gap given no 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 coverage is 50%: planId and conversationId are documented in the schema, but status and summary are not. The description compensates for status by explaining when "completed" is legitimate and when blocked/cancelled apply, and it reinforces the conversationId placeholder rule, though it never explains the summary parameter's role (e.g., that it is recorded as the closure reason). The repeated references to outcome.status, a field not in this schema, add useful cross-tool context but slightly blur which parameters this tool takes.

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?

States a specific verb and resource with the exact target set: "Marks the active plan completed, blocked, or cancelled." It also scopes the effect ("closes plan state only and does not alter other tool access"), which separates it from sibling plan tools like create_plan, add_plan_item, and update_plan_item without needing their schemas.

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 explicit when-to-use rules for each status: completed only when the root objective is actually done, blocked/cancelled for a real blocker. It also states concrete exclusions (never call right after record_external_wait_in_plan, never while a visible item is waiting) and tells the agent to add follow-up items instead of completion when an item is unsuccessful or partial.

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.