Skip to main content
Glama

Code402 Non-Custodial Financial Verification MCP

Create B2B contractor invoice

create_b2b_invoice
Read-onlyIdempotent

Create a merchant-direct Base token invoice. New automated payments require a durable EOA authorization journal and a configured provider. No active protocol fee; no generic bank-wire authority, independent delivery or contract-wallet guarantee.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "memo": "Sprint #14 Milestones",
      "merchant": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f",
      "amount_usdc": 50000,
      "client_name": "Apex AI"
    },
    "name": "create_b2b_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
memoNoEngagement scope / milestone description (optional).
merchantYesBeneficiary contractor Base EVM wallet address (0x...).
referrerNoOptional attribution reference. Referral payouts and protocol fees are not active.
amount_usdcYesInvoice total in USDC (e.g. 50000).
client_nameNoClient enterprise organization name (optional).

Output Schema

NameRequiredDescriptionDefault
toolNo
scopeNo
validYes
statusNo
pay_urlYes
merchantNo
cart_hashNo
invoice_idYes
amount_usdcNo
invoice_urlYes
protocol_fee_usdcNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "amount_usdc": 50000,
      -    "client_name": "Apex AI",
      -    "memo": "Sprint #14 Milestones",
      -    "merchant": "0xc59c85e661d34084a7769f955d17fd38254a6235"
      -  }
      -]New value: +[
      +  {
      +    "amount_usdc": 50000,
      +    "client_name": "Apex AI",
      +    "memo": "Sprint #14 Milestones",
      +    "merchant": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f"
      +  }
      +]
  2. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "amount_usdc": 50000,
      -    "client_name": "Apex AI",
      -    "memo": "Sprint #14 Milestones",
      -    "merchant": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f"
      -  }
      -]New value: +[
      +  {
      +    "amount_usdc": 50000,
      +    "client_name": "Apex AI",
      +    "memo": "Sprint #14 Milestones",
      +    "merchant": "0xc59c85e661d34084a7769f955d17fd38254a6235"
      +  }
      +]
  3. Changed1 schema field changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "amount_usdc": 50000,
      -    "client_name": "Apex AI",
      -    "memo": "Sprint #14 Milestones",
      -    "merchant": "0xc59c85e661d34084a7769f955d17fd38254a6235"
      -  }
      -]New value: +[
      +  {
      +    "amount_usdc": 50000,
      +    "client_name": "Apex AI",
      +    "memo": "Sprint #14 Milestones",
      +    "merchant": "0xfe9d255ecbc1796fd538e3ebfb0833e8efead09f"
      +  }
      +]
  4. Added

TDQS

C2.3/5.0
Behavior1/5

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

Annotations declare readOnlyHint=true, yet the tool's stated action is "Create ... invoice", a state-creating operation — a direct contradiction that would mislead an agent into believing no side effects occur. The remaining disclosure ("no active protocol fee", "no independent delivery or contract-wallet guarantee") reads as disclaimers rather than usable behavioral facts, and it still never says whether an on-chain payment or a persisted invoice record results.

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 definition is short and front-loads the core action, which is good. But the second sentence is a chain of negations joined by semicolons ("No active protocol fee; no generic bank-wire authority, independent delivery or contract-wallet guarantee") whose referents are unclear, so brevity comes at the cost of parseability rather than earning its place.

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?

For a five-parameter financial creation tool with an output schema present, the description should clarify what artifact is created, whether funds move, and what the EOA/provider prerequisite actually gates. Instead it leaves these ambiguous and, critically, omits any correction of the misleading read-only annotation. The output schema spares it from explaining return values, but the behavioral picture is incomplete.

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%, so all five parameters (including merchant, amount_usdc, memo, referrer, client_name) are already documented in the schema with units and formats. The description adds no extra meaning about parameter interactions or constraints, which is acceptable at the baseline given complete schema coverage.

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

Purpose3/5

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

The opening clause names a concrete verb and resource ("Create ... invoice"), so the basic action is inferable. However, the qualifiers "merchant-direct Base token" are left undefined, and the second sentence piles on abstractions ("durable EOA authorization journal", "generic bank-wire authority") that obscure rather than sharpen what is being produced. No distinction from the obvious sibling get_b2b_invoice is offered.

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?

"New automated payments require a durable EOA authorization journal and a configured provider" gestures at a prerequisite but never states it plainly as a precondition, and there is no guidance on when to use this versus get_b2b_invoice or the many other check/validate siblings. There are no explicit exclusions or routing conditions, so the agent must infer usage from the verb alone.

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.