Skip to main content
Glama

Get Payment Handoff URL

get_payment_handoff_url
Idempotent

Returns a plain-text summary of a priced offer (service, amount, currency, cancellation policy, and how long the price is valid) plus a URL on our domain that shows the same summary. The URL is for the CUSTOMER to open themselves in their own browser — do not open, fetch, or follow it yourself. Use this once get_quote or a booking flow has produced an offer_id and the user is ready to review or continue with a priced offer. If the booking's deposit was already paid through create_booking_payment_link, this answers deposit_taken: do not send the person to pay again; the balance is due at the visit.

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": {
      "slug": "<slug>",
      "offer_id": "<offer_id>"
    },
    "name": "get_payment_handoff_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesBusiness slug identifier
offer_idYesThe offer id returned by get_quote

Output Schema

NameRequiredDescriptionDefault
urlYes
stateYes
summaryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedOutput schema / properties / summary / properties / cancellation_policy / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / summary / properties / cancellation_policy / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations it discloses the return payload and a serious operational rule: the URL is for the customer's own browser and must not be fetched by the agent. It also clarifies deposit_taken semantics so the agent does not re-request payment. The one gap is that readOnlyHint=false is never explained, so the agent cannot tell whether calling this has any server-side effect such as marking the offer as handed off.

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?

Front-loaded with the return value, then the do-not-follow warning, then the usage trigger, then the deposit exception – a sensible priority order with no filler. It runs slightly long by enumerating every field of the summary, though that enumeration does double as scope clarification.

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?

An output schema exists, so return shape need not be explained, yet the description still summarizes it for planning purposes. With two fully documented required parameters, a handoff constraint, and the deposit-state edge case covered, an agent has everything needed to call this correctly and route the user properly.

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 slug and offer_id both documented and a UUID pattern enforced, so the schema carries the burden. The description only adds provenance for offer_id ('returned by get_quote'), which is mildly useful but not more than the schema baseline warrants.

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: returns a plain-text summary of a priced offer plus a URL on the business's domain. It spells out exactly what the summary contains (service, amount, currency, cancellation policy, price validity) and thereby separates itself from get_quote, which produces the offer_id this tool consumes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger ('once get_quote or a booking flow has produced an offer_id and the user is ready to review or continue'), names the producing siblings, and adds a when-not rule: if the deposit was already paid via create_booking_payment_link, don't send the person to pay again. It also tells the agent not to open or follow the returned URL, which is a usage constraint rather than a description of output.

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