Skip to main content
Glama

BotSpot: AI Trading, Backtests and Bots

Update plan item

update_plan_item
DestructiveIdempotent

Updates one user-visible plan item. The target is required and must be {type:"id", itemId} or {type:"position", position}; ambiguous itemId/position top-level shapes are intentionally not accepted. Use this before or after each major action in a plan-driven task so progress does not stay stuck while work continues. When working in the current conversation, omit conversationId and planId; never pass placeholders such as current, this, or active. If you include conversationId, it must be the real UUID. If you include planId, it must be the plan UUID, not a plan item id. Keep exactly one visible plan item in_progress at a time. Plan items progress in visible order: before marking a later item in_progress, waiting, completed, or blocked, resolve earlier visible items as completed, blocked, skipped, or removed. For ordinary handoffs between existing rows, use update_plan_items with the current item resolved first and the next item started second in the same ordered batch. Never send only the next-item update while another row is in_progress. Completed items are historical attempts: preserve their outcome and use the earliest unresolved row or add_plan_item for new linked follow-up work. Omitting outcome does not clear an existing outcome. If a real attempt finished without satisfying its completion criteria, status="completed" may carry outcome.status="unsuccessful" or outcome.status="partial" and the external result belongs in patch.evidence. Follow-up items reference that item with parentItemId or dependsOnItemIds. Do not copy an external resource status into outcome.status; put external statuses in patch.evidence. Do not target a future position to create the next validation row. update_plan_item only updates existing items; if the relevant domain tool has not returned a new external id yet, execute the active item first instead of creating a waiting validation row. After the relevant domain tool has returned a new external id, use update_plan_item only for the existing current row, then call add_plan_item for the waiting validation row. For external waits, use patch.status="waiting" with patch.waitReason="waiting_for_external_event" and put domain evidence in patch.evidence, for example externalKind and externalId. Use waitReason="waiting_for_user" before asking the user for a decision. External observations from hooks do not update the plan by themselves; when a terminal external observation arrives, explicitly update the plan item if the observation satisfies or changes the completion criteria.

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": {
      "target": "<target>",
      "patch": "<patch>"
    },
    "name": "update_plan_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
patchYes
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.
targetYes
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. 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 / patch / properties / externalWaitId / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/conversationId"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/properties/conversationId/anyOf/0"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / patch / properties / label / anyOf
      Added value: +[
      +  {
      +    "maxLength": 240,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / patch / properties / label / maxLength
      Removed value: -240
    • removedInput schema / properties / patch / properties / label / minLength
      Removed value: -1
    • removedInput schema / properties / patch / properties / label / type
      Removed value: -"string"
    • changedInput schema / properties / patch / properties / revisionId / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/conversationId"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/properties/conversationId/anyOf/0"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / patch / properties / status / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "pending",
      +      "in_progress",
      +      "waiting",
      +      "completed",
      +      "blocked",
      +      "skipped",
      +      "removed"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / patch / properties / status / enum
      Removed value: -[
      -  "pending",
      -  "in_progress",
      -  "waiting",
      -  "completed",
      -  "blocked",
      -  "skipped",
      -  "removed"
      -]
    • removedInput schema / properties / patch / properties / status / 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"
      +  }
      +]
    • changedInput schema / properties / target / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "itemId": {
      -        "$ref": "#/properties/conversationId"
      -      },
      -      "type": {
      -        "const": "id",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "itemId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "position": {
      -        "maximum": 100,
      -        "minimum": 1,
      -        "type": "integer"
      -      },
      -      "type": {
      -        "const": "position",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "position"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "itemId": {
      +        "$ref": "#/properties/conversationId/anyOf/0"
      +      },
      +      "type": {
      +        "const": "id",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "itemId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "position": {
      +        "maximum": 100,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "type": {
      +        "const": "position",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "position"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / patch / properties / dependsOnItemIds / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "$ref": "#/properties/conversationId"
      -    },
      -    "maxItems": 20,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "$ref": "#/properties/patch/properties/parentItemId/anyOf/0"
      +    },
      +    "maxItems": 20,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / patch / properties / parentItemId / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/conversationId"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 80,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare destructive/idempotent/openWorld hints; the description adds substantially more: exactly-one-in_progress invariant, visible-order progression requirement, the rule that omitting outcome does not clear an existing outcome, that completed items are historical attempts to preserve, and that external hook observations do not self-update the plan. These are non-obvious operational constraints an agent could not infer from annotations or schema.

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?

The first two sentences are well front-loaded, but the body sprawls into a dense run-on covering workflow policy, and repeats points already made (the validation-row rule and the 'only updates existing items' statement appear more than once). Every sentence is roughly relevant, yet the length exceeds what the core update operation warrants and obscures the primary instruction.

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 mutation tool with a deeply nested patch object, no output schema, and only 50% schema description coverage, the description supplies most of the missing operational context: status lifecycle, waiting semantics, outcome vs evidence separation, and ordering invariants. It stops short of stating what a successful call returns or whether errors surface as rejections, which forces some inference.

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 beyond the schema for the most error-prone parameters: the two legal target shapes, the prohibition on top-level itemId/position, the placeholder ban for conversationId/planId, and the planId-is-not-an-itemId distinction. It also explains waitReason pairing with patch.status='waiting' and that external statuses belong in patch.evidence rather than outcome.status. Several patch fields (label, toolName, rationale, revisionId, waitDetails, blockedDetails, completionCriteria) are still unexplained, so not a 5.

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?

Opens with a specific verb+resource ('Updates one user-visible plan item') and immediately narrows scope by describing the exact target shapes accepted. It is clearly distinguishable from siblings add_plan_item and update_plan_items, which are both named in the body and assigned distinct roles.

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 ('Use this before or after each major action'), explicit when-not-to rules ('Do not target a future position to create the next validation row'), and names the alternative for handoffs ('use update_plan_items with the current item resolved first and the next item started second'). It also states the ordering precondition and the add_plan_item boundary for follow-up rows.

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.