Skip to main content
Glama
CoinRithm

CoinRithm/coinrithm-agent-trading

Official

Open futures position

open_futures_position
Idempotent

Open or add to a mock futures position in paper trading. Specify coin, side, leverage, margin, and optional stop-loss/take-profit for atomic order placement.

Instructions

Open (or add to) a mock futures position. Requires the trade:futures scope. Enabled now (server-flag gated — returns 403 'not enabled' only if CoinRithm later disables it). idempotencyKey is REQUIRED and must be unique per intent. leverage 1-20, marginMusd >= 10. Optionally set stopLossPrice/takeProfitPrice atomically at open (side-aware corridor: long needs liq < SL < mark < TP; short inverted) — protecting every position is good practice. Quote first and CONFIRM with the user. Paper trading only — virtual funds (50,000 mUSD). Not financial advice.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
coinIdYesCoin UCID to open futures for. Use resolve_symbol first.
sideYesFutures direction: long benefits if price rises; short benefits if price falls.
leverageYesLeverage multiplier (1-20x).
marginMusdYesIsolated margin in mUSD (>= 10).
idempotencyKeyYesUnique per intent; reuse replays the original result.
stopLossPriceNoOptional resting stop-loss set atomically at open (USD trigger; fired by the per-minute worker).
takeProfitPriceNoOptional resting take-profit set atomically at open (USD trigger; fired by the per-minute worker).
agentTraceNoOptional private trace metadata stored in the caller's ledger.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
httpStatusYesHTTP status returned by CoinRithm, or 0 for network errors.
okYesTrue when CoinRithm returned a successful 2xx response.
ledgerEventIdNoPrivate AgentActionEvent id returned by /api/agent/*, when present.
ledgerStatusNoLedger write status header returned by CoinRithm, when present.
bodyNoParsed CoinRithm response body, or raw text when the response is not JSON.
Behavior5/5

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

Annotations indicate mutability (readOnlyHint=false), idempotency (idempotentHint=true), and openness (openWorldHint=true). Description adds context: mock position, paper trading, virtual funds, scope requirement, and SL/TP corridor rules. No contradiction.

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?

Description is a single dense paragraph that front-loads purpose and covers all essential aspects without redundant words. Every sentence adds value.

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?

Given output schema exists, description need not detail return values. It covers scope, constraints, optional parameters with rules, workflow, and disclaimers (paper trading, not financial advice). No gaps evident.

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

Parameters5/5

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

Schema describes all 8 parameters (100% coverage). Description adds critical constraints not in schema, such as the side-aware corridor for stopLoss/takeProfit and reinforces key requirements (idempotencyKey unique, min/max for leverage and margin).

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 clearly states 'Open (or add to) a mock futures position,' specifying the verb and resource. It distinguishes from sibling tools like close_futures_position and set_futures_sl_tp by mentioning quoting and confirmation workflow.

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

Usage Guidelines5/5

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

Provides explicit prerequisites (trade:futures scope), constraints (leverage 1-20, marginMusd >= 10), required parameter behavior (idempotencyKey unique per intent), and workflow guidance ('Quote first and CONFIRM with the user'). Also notes server-gating and paper trading nature.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CoinRithm/coinrithm-agent-trading'

If you have feedback or need assistance with the MCP directory API, please join our Discord server