Skip to main content
Glama

PHANTOM ID — agent payments (USDC on Base)

Estimate the platform fee for an amount

phantom_estimate_fee
Read-onlyIdempotent

Price discovery before quoting: given an amount in 6-decimal USDC units, returns the exact platform fee (0.5%, min $0.01), the maximum total the payer will be asked to authorize, the current fee schedule (fee_bps, min_fee, max_fee_cap) and an estimated gas figure. Free and read-only — the same fee quote_payment applies.

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": {
      "amount": "<amount>"
    },
    "name": "phantom_estimate_fee"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesAmount in smallest units (6 decimals for USDC), e.g. '2500000' = $2.50.

Output Schema

NameRequiredDescriptionDefault
contentYes
isErrorNoTrue when the API call failed; text carries { error: { code, message } }.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety is covered. The description still adds real behavioral context beyond them: the tool is free, the fee is fixed at 0.5% with a $0.01 floor, and the returned quote matches what quote_payment will apply — information an agent cannot get from the annotations. It omits caveats such as quote freshness or rate limits, keeping it at a 4 rather than 5.

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 purpose and the scoping/positioning information are front-loaded in a single dense sentence, and every clause carries substance (fee rate, return fields, cost, relationship to quote_payment). It is slightly over-packed into one sentence, which costs a little readability but not much.

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?

For a single-argument estimation tool with an output schema and full annotations, the definition covers what an agent needs: what is computed, the fee parameters, the units, and that the call is free and mirrors quote_payment. Return values are additionally summarized even though the output schema exists, leaving no meaningful gap.

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?

With one parameter at 100% schema description coverage, the schema already documents the six-decimal smallest-unit convention and gives a worked example ('2500000' = $2.50). The description restates the unit convention but adds no further semantics such as valid bounds or precision edge cases, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Estimate the platform fee') and enumerates exactly what comes back: fee at 0.5% with a $0.01 minimum, maximum authorizable total, fee schedule fields, and a gas estimate. It also positions the tool relative to quote_payment ('the same fee quote_payment applies'), so an agent can tell the two apart without opening either schema.

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?

'Price discovery before quoting' gives clear situational guidance for when to reach for this tool, and the note that it is free and read-only signals it is safe to call speculatively. It stops short of explicit exclusions (e.g. when to skip this and call quote_payment or submit_payment directly), so it is strong but not a full when/when-not/alternatives statement.

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.