Skip to main content
Glama

position_plan_on_chart

Calculate a risk-first long/short position and draw the entry, stop and first target directly on the live chart. The drawing retains quantity, notional, margin, costs, liquidation estimate, targets, warnings and an optional sandbox program id so later analysis reads the same plan the user sees. Without explicit timestamps this illustrative scenario spans recent closed candles for visibility, not an executed historical trade. Changes the chart you are building; finish with chart_link, or analysis_prepare for a sharing draft that needs human review.

Input Schema

NameRequiredDescriptionDefault
noteNo
sideYes
stopYes
entryYes
equityYesAccount equity in quote currency.
feeBpsNoFee per side in basis points. Default 4.
symbolNo
toTimeNoOptional end timestamp in seconds.
targetsYesTake-profit prices and the percentage closed at each. Allocations should total 100.
barsWideNoWidth when timestamps are omitted. Default 20 bars.
fromTimeNoOptional start timestamp in seconds.
leverageNoSelected venue leverage. Default 1.
timeframeNo
fundingRateNoFunding per settlement as a fraction, e.g. 0.0001.
riskPercentYesEquity risked if the stop fills, in percent.
holdingHoursNoExpected holding time for the funding estimate.
fundingPerDayNoFunding settlements per day. Default 3.
strategyProgramIdNoOptional sandbox program linked to this plan.
maintenanceMarginRateNoFraction used for approximate liquidation. Default 0.005.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already declare a non-read-only, non-destructive operation, and the description usefully adds that it changes the chart being built and that the drawing persists plan details for later analysis. It also explains timestamp behavior for illustrative scenarios, though it does not discuss undo or overwrite behavior.

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 description is front-loaded with the core action and follows with persistence, timestamp caveat and workflow guidance. It is dense but every sentence contributes relevant information for a complex chart-mutating tool.

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 complex 19-parameter tool with no output schema, the description adequately covers purpose, chart side effects, drawing persistence and follow-up steps. It could be stronger with more detail on returned calculation results or error conditions, but the essential behavioral context is present.

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?

With 19 parameters and 68% schema description coverage, the schema carries most parameter meaning. The description adds useful context about risk-first planning, retained drawing fields and timestamp omission behavior, but does not clarify the remaining undocumented parameters such as side, entry, stop, symbol and timeframe.

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: calculate a long/short position and draw entry, stop and first target on the live chart. The combined calculate-and-draw purpose is clear, but it does not explicitly distinguish itself from siblings such as position_calculate or position_draw_on_chart.

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?

Provides useful follow-up workflow guidance by naming chart_link and analysis_prepare as next steps. However, it does not explicitly say when to use this tool instead of position_calculate or position_draw_on_chart, nor does it state exclusions.

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.

Resources