Skip to main content
Glama

estimate_payment_cost

Estimate the SOL cost of paying a USDC invoice, including base fee, priority fee, and possible ATA rent-exemption deposit. Read-only; no transaction is submitted.

Instructions

Estimate the SOL cost of submitting the transaction that would pay a given payment_request. Useful before send_payment on a USDC invoice: the payer still spends SOL for the base fee, priority fee, and (first-time recipients only) ATA rent-exemption deposit. Read-only: does not send anything on-chain.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payment_requestYesJSON-serialized payment_request blob (as received from a provider job-feedback event).
Behavior4/5

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

No annotations provided, but description discloses read-only nature, does not send on-chain, and details cost components (base fee, priority fee, ATA rent-exemption). Good transparency beyond schema.

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

Conciseness5/5

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

Two sentences, no filler. Front-loaded with core purpose, followed by usage note, cost breakdown, and read-only reassurance. Every sentence adds value.

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 tool with no output schema or annotations, the description covers purpose, usage context, behavioral traits, and parameter format. Minor gap: no mention of return value format or error cases, but acceptable for this complexity.

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?

Single parameter 'payment_request' has a description in schema (100% coverage). Description adds context about format (JSON-serialized) and source (provider job-feedback event), but could elaborate on expected structure. Adequate but not exceptional.

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?

Description explicitly states the tool estimates SOL cost for submitting a transaction, specifies it's useful before send_payment on USDC invoices, and lists cost components. Clearly differentiates from send_payment by being read-only.

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?

States 'Useful before send_payment on a USDC invoice', providing clear context. Implies when to use, but does not explicitly mention alternatives or when not to use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/elisymlabs/elisym'

If you have feedback or need assistance with the MCP directory API, please join our Discord server