Skip to main content
Glama

Get margin add limits

perps_get_margin_add_limits
Read-onlyIdempotent

Read-only. Get the maximum add-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_add_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

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so 'Read-only' is redundant rather than additive. The description does add the currency unit (USDT) and that it applies to open positions, but says nothing about the response shape or edge cases such as an already-maxed margin.

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?

Two short sentences, front-loaded with the safety label and the core action. The 'Read-only' opener duplicates structured annotation data and could be dropped, but nothing else is wasted.

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?

For a one-parameter read with full schema coverage this is nearly sufficient, and 'in USDT' answers the main return-value question in the absence of an output schema. It stops short of saying what happens when no open position exists or how the limit is derived.

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 100% and the single parameter carries a thorough description including the '0 is a real contract id' trap. The description's only addition is the open-position constraint, which is marginal on top of what the schema already conveys.

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 add-margin amount, in USDT, for an open Perps position. The 'add' qualifier separates it from perps_get_margin_remove_limits by implication, though no sibling is named.

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 'for an open Perps position' phrasing implies the precondition (a position must exist), and the schema points at perps_list_contracts for the id. But it never says when to call this versus perps_prepare_margin_add, nor what to do if the position is absent or limits are zero.

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