Skip to main content
Glama

Get margin remove limits

perps_get_margin_remove_limits
Read-onlyIdempotent

Read-only. Get the maximum remove-margin amount (in USDT) for an open Perps position.

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": {
      "contractId": "<contractId>"
    },
    "name": "perps_get_margin_remove_limits"
  }
}

Input Schema

NameRequiredDescriptionDefault
contractIdYesNumeric contract id from perps_list_contracts with an open position. 0 is a real contract id, not a placeholder for "unset".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and closed-world scope, so 'Read-only' in the description is redundant. What the description does add beyond annotations is the denomination of the returned value ('in USDT') and the scope it applies to (an open Perps position), which is genuinely useful context. It stops short of describing edge cases such as what happens when no margin can be removed.

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 terse sentences, with the read-only qualifier front-loaded and the operational detail second. Every clause earns its place and there is no filler.

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?

For a single-parameter read tool with no output schema, the definition supplies the essential context: it is a read, it returns a USDT-denominated maximum, and it applies to an open position. The only shortfall is that it does not clarify how the returned limit should be consumed relative to perps_prepare_margin_remove.

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%, and the schema itself carries the important nuance that a contract id of 0 is a real id rather than an unset sentinel. The description adds no parameter guidance beyond that, so the baseline 3 applies.

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 specific verb and resource: the maximum remove-margin amount, denominated in USDT, for an open Perps position. It is clearly distinguishable from perps_get_margin_add_limits by the word 'remove', but the description never names or contrasts with any sibling, so the differentiation is implicit rather than explicit.

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 phrase 'for an open Perps position' implies the precondition (a position must be open) but gives no explicit when-to-use or when-not-to-use guidance. It does not route the agent to or away from perps_prepare_margin_remove, which is the obvious follow-up action, leaving the workflow relationship to inference.

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