Skip to main content
Glama

modify_order

Update an existing open Upstox order by changing its price, quantity, order type, validity, trigger price, or disclosed quantity before execution.

Instructions

Modify an existing open order.

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": {
      "order_id": "<order_id>"
    },
    "name": "modify_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
priceNo
order_idYes
quantityNo
validityNo
order_typeNo
trigger_priceNo
disclosed_quantityNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden for a mutation tool. It states the order must be open, but does not explain permissions, partial field updates, failure behavior for non-open orders, or any other operational trait.

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

Conciseness2/5

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

The single sentence is front-loaded and free of wasted words, but it is drastically undersized for a seven-parameter order-modification tool. Conciseness is achieved at the cost of necessary operational detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with seven parameters, no annotations, no output schema, and no documented parameter semantics, the description is far too thin. It establishes the basic purpose but omits behavior, constraints, and parameter guidance needed to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has seven parameters with 0% description coverage, including order_id, price, quantity, validity, order_type, trigger_price, and disclosed_quantity. The description adds no meaning for any of them, leaving required fields and enum semantics entirely to the bare schema.

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?

The description uses a specific verb and resource: 'Modify an existing open order.' It clearly identifies the operation and limits it to open orders, though it does not explicitly distinguish this from siblings such as cancel_order or place_order.

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?

The phrase 'existing open order' implies a precondition, but the description gives no explicit when-to-use guidance, no when-not-to-use guidance, and no alternatives such as cancel_order or place_order. An agent must infer the usage context.

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