Skip to main content
Glama

Act on the paper position

autopilot_action
Destructive

Change the autopilot's paper position by hand, always at the server's price: open, add, reduce, close, set_levels, place_order, replace_order, cancel_order, set_timeframe. Stocks are long only, and intraday stock entries need the market open.

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": {
      "autopilot_id": "<autopilot_id>",
      "action": "<action>"
    },
    "name": "autopilot_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
sideNo
priceNoplace_order / replace_order: resting price
actionYes
fractionNoreduce: share of the position
quantityNoCoins or shares
stop_lossNo
timeframeNoset_timeframe: the new timeframe (closes the position first)
expires_inNoOrder lifetime in seconds
order_typeNo
take_profitNo
autopilot_idYesAutopilot id
notional_usdNoSize in USD instead of quantity
idempotency_keyNoOptional: any unique string for this action; send the same one when retrying the same call and the first result comes back instead of the action running twice

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Optional: any unique string for this action; send the same one when retrying the same call and the first result comes back instead of the action running twice",
      +  "maxLength": 128,
      +  "type": "string"
      +}
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false, and openWorldHint=true, so the safety burden is partly carried. The description adds genuine context beyond them: execution always occurs at the server's price (no price control despite a price parameter), stocks are long only, and intraday stock entries require the market to be open. It does not disclose what a close/reduce destroys, whether actions are reversible, or the result shape, which matters for a destructive tool.

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?

Two sentences, front-loaded with the core verb and resource, and the action list is compacted into a single enumeration. No filler, though the action list inside the first sentence makes it slightly dense to scan.

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

Completeness3/5

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

For a 13-parameter destructive mutation with no output schema, the description covers the essential constraints (long-only, market-open requirement, server-side pricing) but leaves gaps: no success/return behavior, no mention of what happens to an existing position on open versus add, and no error-path guidance. Adequate to call correctly, not complete for confident use.

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

Parameters3/5

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

Schema coverage is 62% across 13 parameters, so the schema documents the tricky fields (fraction, price, timeframe, expires_in, idempotency_key) itself. The description adds only one real constraint on parameters — the long-only restriction on side — and says nothing about how quantity versus notional_usd interact or which fields apply to which action beyond what the enum descriptions already say.

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?

States a specific verb and resource ('Change the autopilot's paper position by hand') and enumerates the nine actions the tool accepts, which lets an agent distinguish it from lifecycle siblings like start_autopilot or stop_autopilot. Minor ambiguity because set_timeframe and cancel_order are named as 'position changes' when they are not strictly position mutations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives real preconditions: 'always at the server's price', 'Stocks are long only', and 'intraday stock entries need the market open'. These tell the agent when a call is valid, but there is no explicit guidance on when to use this manual action versus run_autopilot_agent or update_autopilot, so the manual-override intent has to be inferred.

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.