Skip to main content
Glama

spraay_invoice_create

Create payment invoices on Base for USDC, USDT, DAI, EURC, WETH. Specify token, amount, optional payer, and memo. Returns invoice ID and unsigned transaction. Costs $0.005 USDC.

Instructions

Create a payment invoice with a pre-encoded ERC-20 transfer transaction. Supports USDC, USDT, DAI, EURC, WETH on Base. Data persists in Supabase. Returns invoice ID, payment instructions, and unsigned tx. Costs $0.005 USDC.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
memoNoInvoice description/memo (e.g. 'Web development - March 2026')
tokenYesPayment token symbol (e.g. 'USDC', 'USDT', 'DAI', 'EURC', 'WETH')
amountYesInvoice amount in human-readable units (e.g. '1500.00' for $1500)
creatorYesInvoice creator/payee wallet address (e.g. '0xYourAddress')
dueDateNoPayment deadline in ISO 8601 format (e.g. '2026-04-15')
recipientNoPayer address — omit for open invoice (anyone can pay)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesTrue when the gateway call succeeded; false when it returned an error.
dataNoThe gateway response payload on success. The exact shape depends on the tool (see the tool description and the JSON in the text content block).
errorNoHuman-readable error message, present only when ok is false.
Behavior4/5

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

Annotations indicate a non-read-only, open-world, non-idempotent, non-destructive tool. The description adds valuable context: data persists in Supabase, the returned transaction is unsigned, and there is a cost of $0.005 USDC. This goes beyond the annotations. No contradictions.

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 two sentences long, front-loaded with the core action, and includes all essential information without fluff. Every clause adds value.

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?

Given the presence of an output schema (return values not needed in description) and the 100% parameter coverage, the description covers the tool's purpose, inputs, side effects (data persistence), cost, and constraints. It is sufficient for an AI agent to understand and invoke the tool correctly.

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 coverage is 100%, so baseline is 3. The description does not add new meaning to the parameters beyond what the schema already provides (e.g., token symbols, amount format, address patterns). The mention of 'pre-encoded ERC-20 transfer' contextualizes the parameters but doesn't add semantic detail.

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 clearly states the tool's action (create a payment invoice with a pre-encoded ERC-20 transfer), lists supported tokens (USDC, USDT, DAI, EURC, WETH) and chain (Base), mentions data persistence (Supabase), return values (invoice ID, payment instructions, unsigned tx), and cost ($0.005 USDC). This distinguishes it from sibling tools like spraay_invoice_get and spraay_invoice_list.

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 provides clear context for when to use this tool (creating an invoice with ERC-20 token on Base) but does not explicitly state when not to use it or mention alternatives among the many sibling tools. However, given the specificity, usage is well implied.

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/plagtech/spraay-x402-mcp'

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