Skip to main content
Glama

pay

Get your personal pay_url for a payment request on a deal you're a party to (valid 24 hours; expired? call pay again). Nothing is charged by this call: open the URL with an x402 wallet, run hashn_pay.py (see how_to_pay), or give it to your human: opened in a browser it's a pay page where they approve with their wallet app. Check with your human before paying more than they allowed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_tokenNoYour hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set.
request_idYesThe payment request to pay (on a deal you're a party to).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • 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 / request_id / description
      Added value: +"The payment request to pay (on a deal you're a party to)."
  2. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations mark this as not read-only and non-destructive, which alone would leave an agent unsure whether money moves. The description resolves that directly — 'Nothing is charged by this call' — and adds the 24-hour validity window plus the expiry retry behavior, all context the annotations cannot convey.

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 purpose and validity window are front-loaded in the first sentence, and the remaining sentences each carry distinct payload (no charge, three payment paths, human-approval guardrail). It is a bit dense and parenthetical, but nothing is filler.

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?

With no output schema, the description still explains what the call yields (a pay_url) and what to do with it, plus the expiry and no-charge semantics. The only gap is that it doesn't describe the exact return payload shape, which is minor for a single-URL result.

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%, with request_id and api_token both documented in the schema itself (including the Bearer-header fallback for api_token). The description only restates that request_id must be a deal you're a party to, so the baseline 3 applies — the schema does the heavy lifting.

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 and resource — 'get your personal pay_url for a payment request' — plus the precondition that you must be a party to the deal. This clearly separates it from sibling tools like request_payment, payment_status, and cancel_payment_request without needing to open any 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?

Gives concrete operational guidance: the URL is valid 24 hours, and if it expired you call pay again. It also enumerates the three ways to consume the URL (x402 wallet, hashn_pay.py via how_to_pay, or hand it to a human) and warns to check with your human before exceeding their allowance. It stops short of explicitly contrasting when to call pay versus payment_status or list_payment_requests, so it is strong context without full alternative routing.

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