Skip to main content
Glama

Read venue-held balances

read_venue_balances
Read-only

READ-ONLY: venue-held funds per linked wallet address — Hyperliquid (mode-aware total), Aster (keyless per-asset), dYdX (subaccount equity), Pacifica (account by Solana address), Polymarket (spendable pUSD + positions value). Reads are public and keyless against the EXPLICIT owner address (never an agent address); each row names the address it read. A failed venue nulls its leg — never a coerced 0. Omit venue to read every linked venue; totalUsd sums the legs that answered and partial:true names every leg that did not.

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": "read_venue_balances"
  }
}

Input Schema

NameRequiredDescriptionDefault
venueNoVenue to read: dydx|hyperliquid|polymarket|aster|pacifica, or all (default). `hl` is accepted as an alias of hyperliquid. One row per venue per linked address; totalUsd sums the legs that answered.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond readOnlyHint/openWorldHint, it discloses the important behaviors: reads are public and keyless against the explicit owner address, each row names the address it read, a failed venue nulls its leg rather than coercing a 0, and partial:true enumerates failed legs. That failure-mode contract is exactly the kind of context annotations cannot carry.

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?

One dense, front-loaded block with the read-only marker first and per-venue definitions compactly parenthesized; no filler sentences. Minor redundancy with the schema on the `hl` alias and totalUsd wording, and the single-paragraph run-on format is harder to scan than it needs to be.

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?

With no output schema, the description carries the return shape itself — one row per venue per linked address, the address named in each row, totalUsd and partial flags — which is everything an agent needs to interpret results. Venue coverage, auth model, and failure behavior are all accounted for.

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 100%, so the baseline is 3, but the description adds the default behavior (omit venue = all) and the aggregation semantics tied to the parameter (totalUsd sums only legs that answered). The `hl` alias detail duplicates the schema.

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?

The description states a specific verb and resource (read venue-held funds per linked wallet address) and enumerates the five venues covered with what each leg means (Hyperliquid mode-aware total, dYdX subaccount equity, etc.). It distinguishes itself from on-chain reading only implicitly via the phrase 'venue-held funds' and never names read_onchain_balances as the contrasting sibling.

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?

It gives one concrete usage rule — omit venue to read every linked venue — plus the constraint that reads target the explicit owner address, never an agent address. It does not say when an agent should choose this over read_onchain_balances or read_defi, leaving sibling selection 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.