Skip to main content
Glama

DPX — Institutional Cross-Border Settlement

invoice.create

Create an agent-to-agent invoice. Agent A calls this to request payment from Agent B. Returns an invoiceId and payUrl — Agent B calls invoice.pay with the invoiceId to settle. Invoice expires after ttlSeconds (default 24h).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYesInvoice amount in source currency
currencyNoSource currency code (default: USD)
ttlSecondsNoInvoice TTL in seconds (default: 86400 = 24h)
callbackUrlNoURL to notify when invoice is paid
descriptionNoHuman-readable payment description
recipientAddressNoPayee wallet address (can also be provided at pay time)
destinationCurrencyNoDestination currency (default: same as currency)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
payUrlNoDirect URL to pay this invoice
statusNoOPEN | PAID | EXPIRED
expiresAtNo
invoiceIdNoUUID — pass to invoice.get or invoice.pay

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With minimal annotations (all false hints), the description carries the main transparency burden. It adds meaningful behavioral context: the invoice expires after ttlSeconds (default 24h) and the tool returns an invoiceId and payUrl. This goes beyond the annotations but does not cover potential side effects or failure modes, so a 4 is appropriate.

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?

The description is concise and front-loaded: the first sentence states the core purpose, followed by the workflow, return values, and expiration. Every sentence adds distinct value with no redundancy or fluff.

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?

The description gives a complete workflow context for a tool with 7 parameters and an output schema: it explains the agent-to-agent payment flow, the return values, and the expiration behavior. The schema fills in parameter details and the output schema defines return structure, so the description does not need to repeat that. Minor edge cases (e.g., currency behavior or callbackUrl) are not detailed, but that's acceptable given the schema's coverage.

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?

All 7 parameters have schema-level descriptions (100% coverage), so the schema already provides parameter semantics. The description only mentions the ttlSeconds default, which is also in the schema, and adds no new meaning for the parameters. Baseline 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?

The description states a specific action ('Create an agent-to-agent invoice') and the resource it acts on, with a clear statement of the caller's role ('Agent A calls this to request payment from Agent B'). It explicitly positions the tool against sibling tools by referencing invoice.pay as the settlement step, making its purpose unambiguous.

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?

The description clearly specifies when to use the tool ('Agent A calls this to request payment from Agent B') and the complementary use of invoice.pay for the payer. However, it does not explicitly mention when to avoid using this tool (e.g., when an invoice already exists, use invoice.get), so it stops short of a perfect score.

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.

TDQS

A3.6/5.0
Disambiguation2/5

Many tools have overlapping purposes, such as multiple stablecoin routing options (route vs stability.stablecoin_route), several compliance pre-checks (flow_check, policy.check, mercury.ach_authorize), and numerous FX/stability tools (oracle.stability, stability.corridor, market.fx, fx.rate). Even with detailed descriptions, the boundaries are subtle and an agent could easily select the wrong tool.

Naming Consistency3/5

The dot-separated namespace convention is mostly consistent and readable, but verb vs noun usage varies (e.g., settlement.execute vs batch_settle vs route). Subscription tools also mix forms (intelligence.subscribe vs intelligence.subscription.get/delete), showing minor inconsistency.

Tool Count1/5

81 tools is an extreme count for a settlement server. Even accounting for the broad 'institutional' scope, the volume overwhelms the core purpose and creates a heavy cognitive load for agents, far beyond the typical 3-15 well-scoped tool set.

Completeness3/5

The core settlement lifecycle is well-covered (quote, execute, track, receipt, batch), but there are notable gaps such as missing policy update/delete and no receipt retrieval (only create). While many tangential domains are over-covered, certain CRUD operations are absent, creating dead ends.