Skip to main content
Glama

invoice_report_analysis_payment

Idempotent

Hand the analysis payment transaction to the server once it is mined. The server reads it on-chain: a direct USDC transfer (the USDC of the invoice network) from the invoice creator to the Vurto fee wallet, of at least analysis.amount, newer than the invoice, never used for another analysis or invoice. screening_blocked (403): the free screening rejects the receiving wallet or the creator, and the payment is not registered. analysis_payment_pending (409): not mined yet, call again in a few seconds. analysis_payment_rejected (400) with details.reason (charge_not_tied, wrong_token, wrong_destination, amount_too_low, sender_not_creator, not_a_transfer, tx_reverted, tx_before_invoice): that transaction does not pay this analysis. charge_not_tied means it is not the transaction we built: do not pay again, prove the wallet (destination_challenge with receiver = details.feeWallet, chargeId = this invoice and chargeTxHash = that hash, then destination_authorize) and report the same hash again. Repeating a hash already recorded returns the status, and the stored result only with the receipt the first record returned (receiverAnalysis.receipt, sent back as receipt) or a proven wallet. tx_already_used (409): the hash already paid something else. Once paid, analysis.status is paid and the invoice can be paid. When the payer bought the analysis of the receiving wallet, pass payer too (the charge of the creator needs only txHash): the transaction must be signed by that payer and only the fee wallet may gain USDC in it (the split payment of an invoice never pays it, usdc_to_other_wallet); once paid the receiver analysis runs right away and receiverAnalysis.result comes back (verdict and the paid tools, never the receiving wallet).

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": {
      "id": "<id>",
      "txHash": "<txHash>"
    },
    "name": "invoice_report_analysis_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesINV-XXXX-XXXX or the 8-character id.
payerNoThe paying wallet that bought the receiver analysis, required when it was bought with checks. Leave it out for the analysis the creator paid.
txHashYesEVM transaction hash, or the Solana signature, of the analysis payment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / payer / description
      Previous value: -"Solana (new model): the paying wallet that bought the receiver analysis."New value: +"The paying wallet that bought the receiver analysis, required when it was bought with checks. Leave it out for the analysis the creator paid."
  2. Added

TDQS

A4.1/5.0
Behavior5/5

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

With annotations already declaring idempotency, non-destructiveness, and open-world behavior, the description adds substantial context: it describes on-chain validation rules (direct USDC transfer, amount threshold, newer than invoice, unused hash), lists several HTTP error codes and their meanings, explains the screening_blocked (403) response, clarifies that repeating a hash returns status and only returns the stored result with the original receipt or a proven wallet, and states that a successful payment triggers the receiver analysis immediately. These details go well beyond what the annotations convey.

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

Conciseness3/5

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

The description is a single dense paragraph with many nested parentheticals and error-code asides, which makes it harder to scan than a bulleted or front-loaded structure would. It does begin with the core action, but the volume of error-case detail and the lack of visual breaks reduce conciseness. Every sentence contains relevant information, but the presentation could be tighter.

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?

For a complex, mutation-like reporting tool with no output schema, the description covers the full behavioral surface: success effects (analysis paid and receiver analysis runs), idempotent retry semantics, receipt requirements, screening failures, and detailed error recovery paths. An agent has enough information to call it correctly and to handle the most common failure modes without consulting other sources.

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 the input schema already documents all three parameters. The description clarifies when to include payer (only when the receiver analysis was bought by that wallet) and notes that the creator's charge needs only txHash, but it largely restates what the schema already says. Because the schema carries the primary parameter documentation, the baseline score of 3 is appropriate.

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 first sentence states a specific action (hand the analysis payment transaction to the server) and resource (analysis payment transaction), making the tool's purpose clear. It implicitly distinguishes from the sibling invoice_report_payment by focusing on analysis payments and by explaining the downstream effect on analysis.status and invoice payment. However, it does not explicitly name an alternative sibling or state its scope in a single crisp line.

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 gives clear when-to-use guidance: submit once the transaction is mined, pass payer only when the analysis was bought by the receiving wallet, and omit payer for creator-paid analyses. It also provides alternative steps for the charge_not_tied case (destination_challenge then destination_authorize) and explains idempotent retry behavior. It stops short of explicitly comparing itself to invoice_report_payment or payout_report_payment, but the error-handling branches count as strong usage guidance.

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