Skip to main content
Glama

DFM · The Fund Management OS

Get Token Price

get_token_price
Read-only

Live USD price for up to 20 mints (GET /prices/:mint per mint). A MISSING PRICE IS DATA, not a failure: a mint that cannot be priced has no usable route or liquidity, which is itself the answer to "can this be a basket leg" — no. Mints that could not be priced come back in unpriced; report that, never substitute a zero.

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": {
      "mints": "<mints>"
    },
    "name": "get_token_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
mintsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, the description discloses genuinely non-obvious behavior: failures are returned as data rather than errors, unpriceable mints land in an `unpriced` collection, and the agent is explicitly told never to substitute a zero. That is exactly the kind of guidance 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?

The core capability is front-loaded in the first clause, followed by the one behavioral rule that matters most. The capitalized emphasis and the rhetorical 'can this be a basket leg' framing are slightly verbose, but every sentence contributes a fact an agent needs.

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 covers input limits and the shape of the result (the `unpriced` bucket) well enough to call it correctly. Minor gaps remain around return ordering, rate limits, and whether unpriced entries carry a reason, but none of these block a correct invocation.

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 0%, so the description must carry the burden, and it does add meaning: `mints` are token addresses priced individually, with a hard ceiling of 20 and a per-mint outcome semantic. It stops short of explaining ordering or what distinguishes an unpriced entry from an invalid mint, leaving a gap against the low schema coverage.

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 ('Live USD price') with a precise scope ('up to 20 mints') and even the underlying route shape ('GET /prices/:mint per mint'). Nothing about the vault/portfolio/swap siblings could be confused with this, though the description never explicitly names or contrasts an alternative.

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?

A use case is implied through the aside about deciding 'can this be a basket leg', which hints at basket-construction scenarios. However, there is no explicit when-to-use or when-not-to-use statement and no named alternative for cases such as discovering which mints exist or fetching quotes.

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.