Skip to main content
Glama

get_payment_invoice

Generates an x402 USDC payment invoice to enable automated micropayments for Solana agent-to-agent audit workflows.

Instructions

Generates an x402 payment invoice for automated agent micropayments in USDC.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountUsdcNoAmount in USDC (default 0.50)
serviceNameNoName of the audit tier

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. 'Generates an invoice' implies a creation action, but it does not disclose whether this triggers a payment, requires wallet authorization, creates an on-chain transaction, or is safe/idempotent. The return value and any side effects are left entirely unspecified.

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?

A single front-loaded sentence conveys the core action, resource type, currency, and target audience with zero filler. It is appropriately sized for the tool's complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no annotations, the description should explain return format and side effects, but it does neither. It also fails to connect the invoice to the sibling audit_solana_code workflow, leaving an agent without enough context to know what happens after generating the invoice.

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 100%, and both parameters already have meaningful descriptions ('Amount in USDC' and 'Name of the audit tier'). The tool description adds only the USDC and audit-tier context already present in the schema, so it neither improves nor harms parameter understanding.

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?

Names a specific verb ('Generates'), a specific resource ('x402 payment invoice'), and a clear domain ('automated agent micropayments in USDC'). It is immediately distinguishable from the sibling audit_solana_code, which audits code rather than producing payment artifacts.

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?

The description implies this tool is for payment in an agentic micropayment flow and the serviceName parameter references an 'audit tier', suggesting use alongside an audit workflow. However, it never explicitly states when to use this versus audit_solana_code or whether the invoice must be paid before auditing.

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

Deploy Server

Other Tools