Skip to main content
Glama

Basis

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. Changes the chart you are building; call chart_link when you are done so the person can open it.

Input Schema

TableJSON 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

A4.5/5.0
Behavior5/5

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

The description discloses a side effect ('Changes the chart you are building') and a required follow-up action ('call chart_link'). Annotations only state readOnlyHint=false and destructiveHint=false, which do not capture the chart modification. The description also mentions persistence ('so later analysis reads the same plan the user sees'), adding behavioral context beyond annotations. No contradiction with annotations.

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

Conciseness5/5

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

Two sentences with no waste. The primary action and target are front-loaded, followed by essential behavioral notes (persistence and follow-up). Every clause earns its 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 tool with 19 parameters and a side effect, the description covers the critical workflow (calculate, draw, then link), the persistence of the plan, and the chart-modifying nature. There is no output schema, but the description clarifies the outcome. The required parameters are covered by the schema, and the description adds the missing behavioral context. Complete for an agent to use it correctly.

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 description coverage is 68%, so the schema documents most parameters. The description mentions 'optional sandbox program id' and 'targets' implicitly but does not add meaning beyond what the schema already provides. With high coverage, baseline 3 is appropriate; the description does not compensate for the undocumented parameters but doesn't need to.

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 states a specific action ('Calculate a risk-first long/short position and draw the entry, stop and first target directly on the live chart') with a clear resource (the chart) and distinguishes itself from siblings like position_calculate and position_draw_on_chart by combining calculation and drawing. It is explicit and non-tautological.

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

Usage Guidelines4/5

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

It provides clear usage context: it modifies the chart and instructs to 'call chart_link when you are done so the person can open it.' This is a sequencing guideline. However, it does not explicitly mention alternatives or when not to use this tool, though the combined calculate+draw purpose implies a distinction from calculation-only or drawing-only tools.

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