Skip to main content
Glama

create_invoice

Create an invoice for a client and get its pay link. Give an amount or line items. Needs an access token with mcp:invoices:write. Moves no money.

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": {
      "accessToken": "<accessToken>",
      "client_name": "<client_name>",
      "client_email": "<client_email>"
    },
    "name": "create_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountNoTotal in USDC. Optional when line_items are given
chainsNoPay to your verified wallets on these chains. Default: all you have
due_dateNoOptional due date, for example 2026-12-01
line_itemsNoOptional. The total is their sum and they are listed on the invoice
accessTokenYesYour Studio access token (sgl_pat_*). Can be omitted when the connection sends Authorization: Bearer sgl_pat_*
client_nameYesClient name
descriptionNoOptional note on the invoice
expiry_daysNoDays the pay link stays open. Default 7
client_emailYesClient email
payment_optionsNoOptional payout wallets instead of your verified ones. Addresses are used exactly as given

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does add genuinely useful behavior: it names the required scope (mcp:invoices:write) and explicitly states 'Moves no money,' which reassures an agent this is not a funds-transfer operation. It stops short of a 5 because failure modes, rate limits, or what happens to the invoice after creation are not described.

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?

Three short sentences, all front-loaded with the action first, the input rule second, and the auth/safety caveats last. There is no filler, and each sentence conveys a distinct fact.

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 10-parameter mutation tool with no annotations and no output schema, the description covers the essentials: what it makes, how to supply the monetary input, the auth prerequisite, and the non-monetary safety profile. The return value ('pay link') is named but its shape and persistence are only partly characterized, which keeps it from a 5.

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% across all 10 parameters, so the schema already explains amount, line_items, chains, expiry_days, and payment_options in detail. The description only restates the amount-or-line-items choice, which the schema also encodes, so baseline 3 applies.

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

Purpose4/5

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

The description gives a specific verb+resource ('Create an invoice for a client') plus the immediate outcome ('get its pay link'), which tells an agent exactly what the tool produces. It doesn't explicitly distinguish itself from sibling tools like create_payment_link or create_dataset_with_payment, so it stops short of a 5.

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?

'Give an amount or line items' is real input guidance and tells the agent the two mutually viable paths to a valid call. However, there is no statement of when this tool should be chosen over create_payment_link or the other payment-creation siblings, so the alternatives dimension is left to inference.

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.

Resources