Skip to main content
Glama

ScorpTech x402 Tools

Position Size

position_size
Read-onlyIdempotent

Risk-based position sizing for trading agents: from account balance, risk per trade (percent or fixed amount), entry and stop price returns units to buy/sell, notional, leverage needed, stop distance, and with a target the reward:risk ratio, profit at target and break-even win rate. Optional fees and lot-size rounding. Returns JSON with: side, units, notional, riskAmount, riskPctOfAccount, riskPerUnit, stopDistancePct, leverageNeeded. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/position-size

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": {
      "accountBalance": "<accountBalance>",
      "entryPrice": "<entryPrice>",
      "stopPrice": "<stopPrice>"
    },
    "name": "position_size"
  }
}

Input Schema

NameRequiredDescriptionDefault
feePctNoFee per side in percent of notional (included in the risk)
lotSizeNoRound units down to this step (e.g. 0.001 BTC, 1 share)
riskPctNoPercent of the account to risk
stopPriceYesStop loss; below entry = long, above = short
entryPriceYes
riskAmountNoFixed amount to risk (overrides riskPct)
targetPriceNoOptional take-profit
accountBalanceYesAccount equity

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already cover safety profile (readOnly, idempotent, non-destructive, openWorld), so the bar is lower; the description still adds real value by disclosing the pay-per-call cost model ($0.001 USDC per successful call, x402 on Base or Solana) and the HTTPS fallback. It does not disclose failure/refund behavior on unsuccessful calls, validation errors, or rate limits.

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?

A single dense but front-loaded paragraph: purpose first, then computed outputs, then rounding/fees, then pricing and endpoint. Efficient; the pricing/URL sentence is operationally useful rather than filler, though the output-field list is somewhat repetitive of the earlier claim.

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?

With 8 parameters, no output schema, and a paid endpoint, the description does the necessary work by listing the returned JSON keys, explaining direction inference, rounding, and cost. It remains thin on error/edge-case behavior and on how the two access routes differ.

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 88%, so the schema already carries most parameter meaning; the description only reinforces a few items (risk percent vs fixed amount, optional target enabling reward:risk, fee and lot-size rounding). It adds little syntax or interaction detail beyond the schema, notably not explaining precedence between riskPct and riskAmount beyond what the schema states.

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 precise verb and resource: 'Risk-based position sizing ... returns units to buy/sell, notional, leverage needed, stop distance', and enumerates the returned fields. The scope is unmistakable, though no sibling (e.g. paper_size) is named to steer selection.

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?

Implies usage for 'trading agents' and derives direction from stop vs entry, and it offers an alternative access path (same tool over HTTPS GET). However there is no guidance on when to prefer the x402 paid call vs. the HTTPS endpoint, and no when-not-to-use or prerequisite permissions/authentication note.

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