Skip to main content
Glama

OMENZ Authorize

authorize
Read-onlyIdempotent

OMENZ Authorize: the authorization step for agent payments. One call before paying any x402 endpoint: live quote + preflight (up, price within max, network, stablecoin, expected payTo), payee check (known x402 seller?) + OFAC sanctions screen (a sanctioned payTo = DECLINE) + seller domain age (registered < 30 days = REVIEW) + x402 payout proof (domain's DNS/well-known record excludes this payTo = DECLINE), fair-price check vs comparable endpoints, the owner's spend policy and Permission Passport if sent -> APPROVE / REVIEW / DECLINE with reasons and a signed 5-minute authorization code anyone can verify. Never pays the target. Doing many? Prepay once (POST /v1/credits/buy-1, $1) and check via /v1/authorize/credit at 2% of the payment (min $0.0003), with no per-check settlement. By OMENZ. (MCP calls run in AYNE, the free playzone; production: POST https://www.omenz.org/api/tollbooth/v1/authorize, $0.002 via x402.)

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": {
      "url": "<url>"
    },
    "name": "authorize"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesfull https URL to check
spendNowhat you have spent so far, e.g. {"spent_today_usd": 1.2}
methodNoHTTP method of the target endpoint (GET or POST)
policyNoyour spend policy, e.g. {"daily_cap_usd": 5}
max_price_usdNomost you are willing to pay per call, in USD
passport_tokenNopassport token
expected_pay_toNopayout wallet you expect (0x...), to catch swapped payees

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / expected_pay_to / description
      Added value: +"payout wallet you expect (0x...), to catch swapped payees"
    • addedInput schema / properties / max_price_usd / description
      Added value: +"most you are willing to pay per call, in USD"
    • addedInput schema / properties / method / description
      Added value: +"HTTP method of the target endpoint (GET or POST)"
    • addedInput schema / properties / passport_token / description
      Added value: +"passport token"
    • addedInput schema / properties / policy / description
      Added value: +"your spend policy, e.g. {\"daily_cap_usd\": 5}"
    • addedInput schema / properties / spend / description
      Added value: +"what you have spent so far, e.g. {\"spent_today_usd\": 1.2}"
    • addedInput schema / properties / url / description
      Added value: +"full https URL to check"
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Goes well beyond the annotations: states the tool 'Never pays the target' (confirming readOnly/idempotent), defines the three decision outcomes and the exact rules that produce DECLINE vs REVIEW (sanctioned payTo, domain <30 days, DNS/well-known mismatch), and describes the return artifact as a signed 5-minute verifiable authorization code. Pricing, credits, and minimum charge are also disclosed. This is unusually rich behavioral context for a read-only tool.

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?

Front-loaded with the core purpose, but the body is a single sprawling run-on packed with nested parentheses and billing minutiae. The credit/prepay and production-endpoint details are useful but could be split into cleaner sentences or a separate section; several clauses compete for attention.

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?

For a 7-param tool with no output schema, the description covers decision outcomes, the nature of the returned authorization code, and failure conditions, which is most of what an agent needs. The one remaining gap is the concrete response shape (field names, how reasons are surfaced), which the absent output schema leaves unspecified.

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 schema already documents all 7 parameters, establishing a baseline of 3. The description adds only indirect meaning by referencing checks tied to max_price_usd, expected_pay_to, and the passport ('the owner's spend policy and Permission Passport if sent'), but does not explain expected formats or how spend/policy objects interact with the server's own checks.

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?

Opens with a specific verb+resource framing: 'the authorization step for agent payments... One call before paying any x402 endpoint.' It enumerates exactly what the call does (live quote + preflight, payee check, sanctions screen, domain age, payout proof, fair-price, spend policy) and explicitly contrasts with sibling concepts like preflight/quote by folding them into one call. An agent can distinguish this from a bare price-check 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?

Gives a clear trigger condition ('One call before paying any x402 endpoint') and an explicit alternative path for volume use (prepay $1 via credits, then 2% per check with no per-check settlement). It also flags the MCP-vs-production endpoint distinction. Missing only explicit when-not-to-use guidance, e.g. when a plain preflight or quote call suffices instead.

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