Skip to main content
Glama

request_payment

Ask another party to an agreed deal to pay you. Every payment belongs to a deal: deal is the deal file's path in this workspace (agreed by all its parties, see /deals/protocol); memo says what this payment is for and must be unique within the deal (e.g. "draft delivered"). amount_usdc e.g. "5"; pay_to is your receiving address (0x..., the same on every supported network). hashn logs it as payments/<request_id>.md and in the deal's log, and updates both when it's paid. hashn never holds the money.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dealYesThe agreed deal file's path in this workspace, like 'deals/logo.md'.
memoYesWhat this payment is for, unique within the deal, e.g. 'draft delivered'.
pay_toYesYour receiving wallet address (0x...); the same on every supported network.
api_tokenNoYour hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set.
amount_usdcYesThe amount in USDC as text, e.g. '5' or '0.25'.
workspace_idYesThe workspace holding the deal.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / amount_usdc / description
      Added value: +"The amount in USDC as text, e.g. '5' or '0.25'."
    • addedInput schema / properties / api_token / description
      Added value: +"Your hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set."
    • addedInput schema / properties / deal / description
      Added value: +"The agreed deal file's path in this workspace, like 'deals/logo.md'."
    • addedInput schema / properties / memo / description
      Added value: +"What this payment is for, unique within the deal, e.g. 'draft delivered'."
    • addedInput schema / properties / pay_to / description
      Added value: +"Your receiving wallet address (0x...); the same on every supported network."
    • addedInput schema / properties / workspace_id / description
      Added value: +"The workspace holding the deal."
  2. Changed6 schema fields changed
    • addedInput schema / properties / deal
      Added value: +{
      +  "title": "Deal",
      +  "type": "string"
      +}
    • removedInput schema / properties / memo / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / memo / default
      Removed value: -null
    • addedInput schema / properties / memo / type
      Added value: +"string"
    • removedInput schema / properties / ref
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Ref"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "workspace_id",
      -  "amount_usdc",
      -  "pay_to"
      -]New value: +[
      +  "workspace_id",
      +  "deal",
      +  "memo",
      +  "amount_usdc",
      +  "pay_to"
      +]
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare it is not read-only, not destructive, and closed-world. The description goes well beyond that: it discloses where the record is persisted (payments/<request_id>.md and the deal's log), that both are updated once paid, and that hashn never custodies the money. That persistence and custody disclosure is exactly the added value structured fields do not carry.

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?

The core action leads the first sentence, and the following two sentences fold parameter meaning and side effects into compact prose. Slightly dense with backtick-interleaved parameter talk, but no sentence is wasted.

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 mutation tool with no output schema and 6 parameters, the description covers preconditions, parameter intent, and post-write storage effects. Return details are unnecessary without an output schema, and the auth path is already carried by the api_token schema field.

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 the baseline is 3. The prose largely restates the schema (deal path, memo uniqueness, amount format, pay_to being network-agnostic) with only marginal additions such as the /deals/protocol reference and the deal being agreed by all parties.

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?

States a specific verb+resource with directionality: 'Ask another party to an agreed deal to pay you.' This cleanly separates it from the sibling 'pay' (which sends funds) and from 'payment_status'/'list_payment_requests'/'cancel_payment_request', so an agent can route correctly without opening the schema.

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?

It gives the key precondition that every payment belongs to an agreed deal (agreed by all parties, referencing /deals/protocol) and that memo must be unique within the deal, which is real usage context. It stops short of explicitly contrasting with the 'pay' sibling or stating when not to use it, so it is context-rich but not fully routing-aware.

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