Skip to main content
Glama

get_funds_margin

Retrieve available funds and margin balances, optionally for equity or commodity segments, to verify account buying power before trading.

Instructions

Get available funds and margin. version v3 (default) = GET /v3/user/get-funds-and-margin (Api-Version 3.0); v2 supports the optional segment SEC (equity) or COM (commodity).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_funds_margin"
  }
}

Input Schema

NameRequiredDescriptionDefault
segmentNov2 only
versionNov3

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses useful behavioral context the schema cannot: the underlying endpoint, the Api-Version header, and that v3 is the default path. It says nothing about permissions, rate limits, or what the response contains, which leaves gaps for an unannotated tool.

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 dense sentences that front-load the resource and then the version routing rule, with no filler. The endpoint-and-header phrasing reads like internal API documentation rather than agent guidance, but nothing 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 simple two-optional-parameter read tool with no annotations and no output schema, the description covers version routing but not the shape of the returned balances or margin figures. An agent can call it correctly, but has limited expectations about what comes back.

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 50%, and the description compensates by decoding the enum values: SEC means equity and COM means commodity, and segment applies only to v2. That is meaning the bare enum list does not convey, though the version parameter itself gets no explanation beyond 'default'.

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: 'Get available funds and margin', which an agent can immediately match to a read of account balances. It does not differentiate from the sibling calculate_margin, so the agent has no signal on which to pick when both could apply.

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?

There is real guidance on version selection: v3 is the default, and v2 is the one that supports a segment. But there is no statement of when to prefer calculate_margin or any other margin-related sibling, and no preconditions such as authentication or account type.

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