Skip to main content
Glama
saldraykee22

Rasattrading MCP

by saldraykee22

close_all_positions

Liquidate holdings by canceling open orders and selling base balances at market price for a target or all accounts, with per-account status and duplicate-sale protection.

Instructions

Hesabın (veya account_id='all' ise tüm hesapların) açık emirlerini iptal edip base asset bakiyelerini market fiyatından satar. Kısmi başarıda hangi hesabın kapandığı/kapanamadığı açıkça raporlanır; idempotenttir (tekrar çalıştırma çift satış yapmaz). Paper hesapta gerçek bakiye satışı yapılmaz; yanıt closed=false, simulated=true ve position_close_supported=false ile yalnızca yerel emir iptalini belirtir. İptal geçişleri audit_log'a yazılır.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idYesHedef account_id veya 'all'
request_idNo
idempotency_keyNo
Behavior5/5

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

With no annotations, the description carries full burden and discloses key behaviors: partial success reporting, idempotency (no double selling), paper account simulation (closed=false, simulated=true), and audit log writing. This is exceptionally transparent.

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?

Four sentences, each providing distinct value: purpose, partial success behavior, paper account behavior, and audit logging. It is front-loaded and free of padding.

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?

The description covers many important edge cases (partial success, idempotency, paper trading, audit log) but does not describe the normal response structure or error handling for invalid account_id. Still, it is fairly complete for a complex trading operation.

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

Parameters4/5

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

Schema coverage is only 33%; the description compensates by explaining the special 'all' value for account_id and noting idempotency which relates to idempotency_key. However, request_id remains unexplained.

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: canceling open orders and selling base asset balances at market price, with scope ('all' accounts). It clearly distinguishes itself from sibling tools like place_order or get_open_orders by focusing on liquidation.

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?

The description implies usage for closing positions but never explicitly says when to use it vs. alternatives. It provides special-case context (all accounts, paper accounts) but no direct 'use this instead of X' guidance.

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/saldraykee22/rasattrading-mcp'

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