Skip to main content
Glama

buy_domain

DestructiveIdempotent

Buys a domain for the user against a quote this account already holds, charging the card the user saved on Scopeweb. For when the user has agreed to a specific name at a specific total and wants it bought now. It spends money only inside the per-order and monthly limits the user signed on scopeweb.io/agents with their passkey; with no limit set it refuses and charges nothing. max_total_cents is the total the user agreed to, in cents: if the live total is higher it refuses and charges nothing. An order above a limit is not charged: it returns needs_approval and an approve_url where the user approves that exact order with their passkey. The card is authorised first and captured only after the registration succeeds, and a failed registration releases it. A quote buys once, so repeating a call returns the first result instead of a second charge. Where paying in USDC is switched on and no card is saved, the result is instead an x402 payment request for the exact total in USDC on Base, and the order completes when this same call is repeated with a payment signed for those terms.

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": {
      "max_total_cents": "<max_total_cents>"
    },
    "name": "buy_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainNoBuy this account's newest unused quote for this name. Either this or quote_id.
paymentNoOptional. An x402 payment payload (an object, or base64 JSON) signed for the exact terms of the payment request this tool returned. A client that can set _meta x402/payment may send it there instead.
pay_withNoOptional. card charges the saved card; x402 asks for USDC on Base. Left out, a saved card is used, and otherwise x402 where it is switched on.
quote_idNoThe quote to buy against. Either this or domain.
max_total_centsYesThe total the user agreed to, in cents. A higher live total is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / pay_with
      Added value: +{
      +  "description": "Optional. card charges the saved card; x402 asks for USDC on Base. Left out, a saved card is used, and otherwise x402 where it is switched on.",
      +  "enum": [
      +    "card",
      +    "x402"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / payment
      Added value: +{
      +  "description": "Optional. An x402 payment payload (an object, or base64 JSON) signed for the exact terms of the payment request this tool returned. A client that can set _meta x402/payment may send it there instead.",
      +  "type": [
      +    "object",
      +    "string"
      +  ]
      +}
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations: it discloses the spending-limit enforcement (per-order and monthly, passkey-signed, refuses with no limit set), the refusal-without-charge guarantee when the live total exceeds max_total_cents, the needs_approval/approve_url path for over-limit orders, the authorize-then-capture-with-release payment sequence, and single-use quote idempotency. The description is consistent with destructiveHint=true and idempotentHint=true rather than contradicting them.

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?

Purpose and trigger are front-loaded in the first two sentences, then behavior follows in logical order: limits, refusal, approval path, capture sequencing, idempotency, USDC fallback. It is dense — a single long paragraph of ten sentences — but almost every clause adds a distinct fact an agent needs before spending money.

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?

There is no output schema, and the description compensates by naming the observable outcomes: a refusal that charges nothing, a needs_approval result with an approve_url, or an x402 payment request for the exact total on Base. For a destructive, money-spending tool with an approval loop, that covers what an agent needs to act and to interpret the response.

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: max_total_cents is framed as the agreed total with an explicit refuse-if-higher rule, and the x402 branch explains that payment carries a payload signed for the exact returned terms. The domain/quote_id pairing is only lightly covered ('either this or quote_id' lives in the schema), which keeps it from a 5.

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 — 'Buys a domain' — and narrows the scope to 'against a quote this account already holds, charging the card the user saved.' That scope distinction cleanly separates it from quote_domain (creates the quote) and the read-only siblings like list_domains or audit_domain.

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 an explicit trigger condition: 'For when the user has agreed to a specific name at a specific total and wants it bought now.' It also communicates the prerequisite that a quote must already be held, which implicitly routes the agent to quote_domain first. It does not name an alternative or an explicit when-not-to-use case, so it falls short of a 5.

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