Skip to main content
Glama

Foundry: prepaid AI compute in USDF

Balance

balance
Read-only

With an API key: what the key can spend now, the account's balance and the amount held for requests running, and what is left of the key's budget, in USDF. With address instead, and no key: that wallet's USDF and USDG on the chain now, and how much USDF it lets the signature-transfer contract spend, which x402 payments come from.

Input Schema

NameRequiredDescriptionDefault
addressNoA wallet address (0x...): its USDF and USDG on the chain, with no key

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real behavioral context beyond that: it explains what each returned figure represents (held funds for in-flight requests, remaining key budget, the signature-transfer allowance that funds x402 payments). It does not mention rate limits or refresh/latency characteristics, so not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single dense sentence-paragraph that covers both modes without waste, but the trailing clause 'which x402 payments come from' and the stacked parentheticals make it harder to parse than it needs to be. Front-loading is decent (key case first) but readability is compromised.

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 read-only, single-optional-parameter tool with no output schema, the description covers both invocation paths and what each returns in enough detail to call it correctly. It lacks nothing critical, though explicit guidance on what happens if both key and address contexts are present is absent.

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, and the description goes beyond it by explaining what the address parameter produces: on-chain USDF and USDG plus the spend allowance granted to the signature-transfer contract. It clarifies that supplying an address implies keyless mode, which the schema alone does not convey.

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 specifically what the tool returns: spendable amount, account balance, held funds, and remaining key budget under a key; or on-chain USDF/USDG plus transfer-contract allowance under an address. That is a clear resource ('balance') with two well-defined modes. It does not explicitly contrast itself with siblings like quote or x402_pay, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit conditions selecting each mode: 'With an API key' versus 'With address instead, and no key.' An agent can infer which invocation applies. However, it names no alternative tools or when-not-to-use cases, so it stops short of full routing guidance.

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