Skip to main content
Glama

Surfing Dog Inbox

Accept what the business proposed

accept_offer
Idempotent

Accept another time the business proposed for a booking, its quote, its changes to an order, or a change it asks for to a confirmed booking or an accepted order (offer.kind change: the promise moves). This binds your person, so send terms_sha — offer.terms_sha from get_item_status — only after they said yes to offer.human, and offer_id (offer.id) so an answer to an offer since replaced does nothing. Without terms_sha nothing is booked: you get the terms to show them. An accepted quote becomes a confirmed booking or order (linked). A yes to a change that can no longer be made online goes to a person there instead (passed_on), and what was agreed stands.

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": {
      "item_id": "<item_id>"
    },
    "name": "accept_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoThe person's key (sdkey1_…), if that is all you have: it is exchanged once for a pass, which comes back in identity.passes — keep the pass and send it next time instead. Never stored.
passNoThe person's passes (sdpass1_…), space-separated, at most 8: presented to the network that issued each, so the business recognises the customer. Or send them in the Sdi-Pass header. Never stored.
item_idYes
offer_idNoThe offer you answer: offer.id from get_item_status. If the business has replaced it since, nothing is done (409 offer_changed, with the current one).
terms_shaNoThe fingerprint of the terms your person said yes to: offer.terms_sha from get_item_status. Leave it out to be told the terms first; nothing is booked without it.
access_tokenNoCapability secret returned when the item was created without an account.
idempotency_keyNoSame key + same request = same answer. Required for agents. Make it a fresh random UUID per request, never one made from the request itself: a retry of a create with a random key gets its access token again, so a key anyone could work out would give it to them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Same key + same request = same answer. Required for agents. Make it a fresh random UUID per request: a retry of a create with a random key gets its access token again."New value: +"Same key + same request = same answer. Required for agents. Make it a fresh random UUID per request, never one made from the request itself: a retry of a create with a random key gets its access token again, so a key anyone could work out would give it to them."
  2. Changed1 schema field changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Same key + same request = same answer. Required for agents."New value: +"Same key + same request = same answer. Required for agents. Make it a fresh random UUID per request: a retry of a create with a random key gets its access token again."
  3. Changed1 schema field changed
    • addedInput schema / properties / offer_id
      Added value: +{
      +  "description": "The offer you answer: offer.id from get_item_status. If the business has replaced it since, nothing is done (409 offer_changed, with the current one).",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "type": "string"
      +}
  4. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare the write/idempotent/non-destructive profile, yet the description adds real value beyond them: the action 'binds your person', omitting terms_sha books nothing and returns terms, a stale offer_id yields 409 offer_changed and does nothing, and an unfulfillable change is routed to a person (passed_on). The only gap is the shape of the success response when a quote is accepted.

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?

Purpose is front-loaded and every claim is substantive, but the prose is a single tangled block dense with em-dash parentheticals ('offer.kind change: the promise moves') that make it hard to scan. It earns its length on content but not on structure.

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-parameter mutation with no output schema, the description covers the commitment, the dry-run behaviour, the conflict case, and both success outcomes (confirmed booking/order) and fallback (passed_on). Remaining gaps, such as the exact response fields, are minor given the detailed parameter schema.

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 86%, so the baseline is 3, but the description still adds meaning the schema does not: terms_sha must come from offer.terms_sha after the person approves offer.human, and offer_id is what makes an answer to a replaced offer inert. The item_id and access_token semantics are left entirely to the schema.

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?

Names a specific verb and resource ('Accept another time the business proposed') and enumerates the offer kinds covered: a time, a quote, order changes, and a change to a confirmed booking ('offer.kind change: the promise moves'). It is unambiguous what the tool does, though it never names the sibling it is not (decline_offer, make_offer) to draw the boundary explicitly.

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 precondition: send terms_sha 'only after they said yes to offer.human', and explains that omitting terms_sha is a safe no-op that returns the terms to show the customer. That is strong when-to-use guidance, but it never points to decline_offer or make_offer as the alternative path.

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.