Skip to main content
Glama

convert_position

Converts a trading position's product type—for example, intraday to delivery—by specifying the instrument, old and new product, quantity, and transaction type.

Instructions

Convert position product type (e.g., intraday to delivery).

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": {
      "instrument_token": "<instrument_token>",
      "new_product": "<new_product>",
      "old_product": "<old_product>",
      "quantity": "<quantity>",
      "transaction_type": "<transaction_type>"
    },
    "name": "convert_position"
  }
}

Input Schema

NameRequiredDescriptionDefault
quantityYes
new_productYes
old_productYes
instrument_tokenYes
transaction_typeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing: not whether the conversion needs available margin, whether it is reversible, whether it is time-window restricted (e.g., before square-off), or what a failure looks like. Only the implicit mutating nature of 'Convert' plus the direction of the example is conveyed.

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?

One short, front-loaded sentence with no filler, which is structurally sound. However, the brevity here is under-specification rather than true conciseness, since a five-parameter mutation tool needs more than a single clause to be callable with confidence.

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?

With no annotations, no output schema, a 100%-required five-parameter schema, and three enum fields with cryptic codes, the description should compensate heavily and does not. An agent knows the general intent but lacks the prerequisites, side effects, and enum decoding needed to invoke the tool correctly.

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

Parameters2/5

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

Schema description coverage is 0% across five required parameters, and the description never mentions instrument_token, quantity, old_product, new_product, or transaction_type. The example partially decodes two otherwise opaque enum values ('intraday' → 'delivery', i.e., I → D), but CO and MTF remain unexplained and no parameter is tied to its role in the call.

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 states a specific verb and resource ('Convert position product type') and anchors it with a concrete example ('intraday to delivery'), so the agent can tell this is a position-product mutation rather than an order or margin operation. It does not differentiate itself from adjacent siblings such as exit_positions or get_mtf_positions, which keeps it short of a 5.

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 only usage signal is the inline example, which implies the tool is used when an open intraday position should become a delivery position. There is no statement of prerequisites (open position required, margin/funds implications), no when-not-to-use, and no named alternative, so the agent must infer invocation conditions entirely.

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