Skip to main content
Glama

api_finance_position_risk

Read-onlyIdempotent

Compute capital-constrained trade position sizing from user-defined entry, stop and maximum percent loss. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.

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": {
      "capital": "<capital>",
      "entry": "<entry>",
      "stop": "<stop>",
      "risk_percent": "<risk_percent>"
    },
    "name": "api_finance_position_risk"
  }
}

Input Schema

NameRequiredDescriptionDefault
stopYesPlanned stop price
entryYesAssumed entry price
capitalYesTrading capital in one currency
lot_sizeNoPosition quantity increments, default 1
risk_percentYesMaximum capital loss percentage

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely non-schema behavior: the 0.01 USDC per-call x402 charge on Base and the X-Provider-Key header for customer-owned credentials — useful cost/auth context. It still says nothing about what is returned (position size, risk amount, rounding against lot_size) or how invalid entry/stop combinations are handled.

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, no filler, with the computation front-loaded and the operational cost/auth caveats relegated to a second sentence. Every clause carries information an agent needs.

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?

There is no output schema, so the description is the only place return values could be described — and it omits them entirely, leaving an agent to guess whether it receives a quantity, a risk amount, or a full sizing breakdown. Payment and auth are well covered, but for a numeric calculation tool with five parameters the missing result shape is a real gap.

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 100%, so all five parameters are already documented and the baseline is 3. The description restates three of them (entry, stop, maximum percent loss) and gestures at capital via 'capital-constrained', but adds no interpretation beyond the schema — notably it is silent on lot_size rounding semantics, which is where the only real ambiguity lies.

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: 'Compute capital-constrained trade position sizing' with the exact inputs (entry, stop, maximum percent loss). That is far more precise than the bare tool name and separates it in substance from siblings like api_finance_drawdown or api_order_profit, though it never names an alternative explicitly.

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?

Use is implied by the phrase 'capital-constrained trade position sizing' — an agent can infer this is for sizing a trade under a fixed risk budget. However, there is no explicit when-to-use/when-not framing, no mention of when to prefer the sibling drawdown, options payoff, or order-profit tools, and no stated preconditions beyond the payment mechanics.

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