Skip to main content
Glama

BotSpot: AI Trading, Backtests and Bots

Update plan items

update_plan_items
DestructiveIdempotent

Applies multiple user-visible plan item updates atomically in the listed order. Use this for handoffs between existing rows and multi-row reconciliation: first resolve the current item, then start the next existing item in the same ordered updates array. Preserve completed attempts; use unresolved rows or new linked follow-up work instead of reopening them. Each update target is required and must be {type:"id", itemId} or {type:"position", position}; each update has a patch object. Do not update the same target item twice in one update_plan_items call. If a validation attempt is unsuccessful, one update may mark that current item completed with outcome.status="unsuccessful" or "partial" and evidence; follow-up work references the attempt. This tool cannot create a new plan item or future position; use add_plan_item with a nested item object, or replace_plan_items when you need to resolve existing rows and add a new row in one visible plan mutation. Do not use this tool to target a future validation position before or after a domain tool returns an external id. After that tool returns, either update only the existing item here and then call add_plan_item, or use replace_plan_items for the whole visible list. When working in the current conversation, omit planId unless you already have the actual plan UUID; never pass a plan item id as planId. The final visible plan must still be ordered and must have at most one in_progress item. This is a normal model-owned plan mutation tool, not hidden backend reconciliation. It does not perform domain work, hide tools, or change backtests, deployments, trades, files, or strategy state.

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": {
      "updates": "<updates>"
    },
    "name": "update_plan_items"
  }
}

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.
updatesYesOrdered item patches to apply atomically. Use this instead of multiple parallel update_plan_item calls.
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 / planId / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/conversationId"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/properties/conversationId/anyOf/0"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / updates / items / properties / patch / properties / externalWaitId / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/conversationId"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/properties/conversationId/anyOf/0"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / updates / items / properties / patch / properties / label / anyOf
      Added value: +[
      +  {
      +    "maxLength": 240,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / updates / items / properties / patch / properties / label / maxLength
      Removed value: -240
    • removedInput schema / properties / updates / items / properties / patch / properties / label / minLength
      Removed value: -1
    • removedInput schema / properties / updates / items / properties / patch / properties / label / type
      Removed value: -"string"
    • changedInput schema / properties / updates / items / properties / patch / properties / revisionId / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/conversationId"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/properties/conversationId/anyOf/0"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / updates / items / properties / patch / properties / status / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "pending",
      +      "in_progress",
      +      "waiting",
      +      "completed",
      +      "blocked",
      +      "skipped",
      +      "removed"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / updates / items / properties / patch / properties / status / enum
      Removed value: -[
      -  "pending",
      -  "in_progress",
      -  "waiting",
      -  "completed",
      -  "blocked",
      -  "skipped",
      -  "removed"
      -]
    • removedInput schema / properties / updates / items / properties / patch / properties / status / type
      Removed value: -"string"
    • changedInput schema / properties / updates / items / 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 / updates / items / properties / patch / properties / dependsOnItemIds / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "$ref": "#/properties/conversationId"
      -    },
      -    "maxItems": 20,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "$ref": "#/properties/updates/items/properties/patch/properties/parentItemId/anyOf/0"
      +    },
      +    "maxItems": 20,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / updates / items / 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.8/5.0
Behavior5/5

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

Beyond annotations that already mark it as a destructive, non-readonly, idempotent mutation, the description discloses atomicity, ordered application, duplicate-target prohibition, preservation of completed attempts, the final plan ordering/one-in_progress constraint, and that it performs no domain work or external state changes. These are meaningful behavioral traits not available from the annotations alone, and none contradict the annotations.

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?

The important purpose and atomic/ordered behavior are front-loaded, followed by usage constraints and alternatives. The description is long, and a few scope disclaimers repeat related ideas, but for a complex multi-row mutation most sentences earn their place.

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?

For a complex atomic multi-row mutation with no output schema, the description covers the key mechanics, allowed targets, forbidden operations, alternatives, plan invariants, and external-scope boundaries. It leaves return-value detail implicit, but the definition is otherwise complete enough for correct invocation.

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 100%, so the schema already documents most parameter structure. The description still adds operational meaning by explaining the required target shapes, forbidding the same target twice in one call, clarifying that planId must not be a plan item id, and explaining outcome.status for unsuccessful or partial validation attempts. It does not need to re-document every patch field because the schema does that.

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 description opens with a specific verb and resource ('Applies multiple user-visible plan item updates atomically in the listed order') and repeatedly distinguishes this batch operation from update_plan_item, add_plan_item, and replace_plan_items. An agent can tell it performs ordered, atomic multi-row patches rather than creation or single-row edits.

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?

It gives explicit when-to-use guidance for handoffs and multi-row reconciliation, including resolving the current item before starting the next existing item. It also gives when-not-to-use cases: cannot create a new plan item or future position, should use add_plan_item or replace_plan_items in those cases, and should not target a future validation position after a domain tool returns an external id. PlanId omission rules are also stated.

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.