Skip to main content
Glama

OMENZ Payment Doctor

pay_doctor

OMENZ Payment Doctor: why was my x402 payment refused, whose side is it on, and how do I fix it? Send the 402's PAYMENT-REQUIRED header, the payment you sent and/or the error text (or just the URL). Checks format, version, amount, payTo, asset, time window and known facilitator errors, incl. the >500-char description rejection. CAUSE_FOUND / NO_PROBLEM_FOUND, fix per cause. Stores nothing. By OMENZ. (MCP calls run in AYNE, the free playzone; production: POST https://www.omenz.org/api/tollbooth/v1/pay/doctor, $0.002 via x402.)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "pay_doctor"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNopublic https URL that answered 402
errorNoerror
methodNoHTTP method of the target endpoint (GET or POST)
paymentNoPAYMENT-SIGNATURE you sent (base64) or its JSON
payment_requiredNoPAYMENT-REQUIRED header (base64) or its JSON

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations it discloses the diagnosis scope, the two verdict tokens (CAUSE_FOUND / NO_PROBLEM_FOUND), that a fix is returned per cause, that nothing is stored, and the production endpoint price ($0.002 via x402) plus the free playzone framing. The 'Stores nothing' line sits in mild tension with readOnlyHint=false, but that is plausibly a conservative annotation for a paid outbound call rather than a contradiction. Rate limits and output shape are not covered, keeping it below a 5.

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 question-style opening front-loads the purpose and the check list follows efficiently, with no redundant sentences. The trailing provenance/pricing parenthetical ('By OMENZ', AYNE playzone) is the only content that does not serve tool selection, and the whole thing reads as one long run-on.

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 carries the return-value burden and does deliver the verdict vocabulary and the 'fix per cause' structure, plus cost and where production runs. It is complete enough for an agent to decide to call it and interpret the result at a high level, though the exact response shape remains unspecified.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: it maps the inputs to troubleshooting artifacts (the 402's PAYMENT-REQUIRED header, the PAYMENT-SIGNATURE you sent, the error text) and signals that any subset, even URL alone, is acceptable. This compensates for the schema's near-empty 'error' parameter description.

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 names a specific diagnostic job — explaining why an x402 payment was refused and how to fix it — and enumerates the checks (format, version, amount, payTo, asset, time window, facilitator errors, the >500-char description rejection). That is far more than a restatement of the name. It does not explicitly distinguish itself from the sibling pay_verify, which likely covers the 'should this payment be valid' angle, so it stops short of a 5.

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 concrete input guidance: send the PAYMENT-REQUIRED header, the payment sent, and/or the error text, 'or just the URL', which tells the agent the tool is tolerant of partial evidence. What is missing is an explicit 'use pay_verify instead when X' or a when-not condition, so it is clear-context guidance without exclusions.

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