Skip to main content
Glama

Universal Data — x402 + MPP Payment Setup

api_hr_invoice

Read-onlyIdempotent

Generate a structured customer invoice from seller/buyer and line items with subtotal, discounts and tax. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.

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": {
      "invoice_number": "<invoice_number>",
      "seller": "<seller>",
      "buyer": "<buyer>",
      "items": "<items>"
    },
    "name": "api_hr_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
buyerYesbuyer; see operation description for units and format
itemsYesitems; see operation description for units and format
sellerYesseller; see operation description for units and format
tax_pctNotax pct; see operation description for units and format
discount_pctNodiscount pct; see operation description for units and format
invoice_numberYesinvoice number; see operation description for units and format

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds materially beyond that: the per-call price (0.01 USDC), the payment rail (Base x402), and the X-Provider-Key header for customer-owned credentials — none of which appear in the annotations or schema. What it does not state is whether a generated invoice is persisted or returned only, which matters for an operation named 'generate'.

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

Conciseness4/5

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

Two sentences, front-loaded with what the tool produces, then the operational constraints. Nothing is padded. The second sentence compresses payment and auth into one line, which is dense but still readable and appropriately placed after the purpose.

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

Completeness3/5

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

There is no output schema, so the returned invoice structure is undocumented, and the description does not compensate — an agent cannot tell what fields come back or in what format. Combined with the unhelpful parameter stubs and the ambiguity over whether output is persisted, the definition is serviceable for a stateless priced call but leaves real gaps for a six-parameter document generator.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is nominally 100%, but every parameter description is a boilerplate stub pointing back to 'operation description for units and format' — and the description supplies no units or format for any of the six fields. Critical semantics are absent: the shape of 'items' (it is typed string despite line-item plural), the structure of buyer/seller, whether discount_pct and tax_pct are applied pre- or post-subtotal, and the expected invoice_number format. The description is the only place this could be resolved and it is silent.

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 opens with a specific verb and resource: 'Generate a structured customer invoice', and lists the components produced (subtotal, discounts, tax) plus the inputs (seller/buyer, line items). That is enough to distinguish it from accounting-adjacent siblings like api_hr_payroll or api_hr_leave_accrual, though it never explicitly names a sibling it should not be confused with.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance, no mention of prerequisites, and no alternative tool named. The only contextual routing information is commercial (cost and credential header), not a usage criterion, so the agent must infer from the tool name alone whether this is the right invoice tool in this large catalog.

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