Skip to main content
Glama

Answer an offer

answer_offer
Idempotent

Answers an offer in a conversation about an item: the seller accepts, declines or counters a buyer's offer (a counter is between the offer and the price); the buyer accepts or declines the seller's counter. Accepting lets the buyer buy at that price within 24 hours. Only what the person decided. Needs sign-in.

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": {
      "offer_id": "<offer_id>",
      "answer": "<answer>"
    },
    "name": "answer_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
asNoOnly when the person is both buyer and seller (a test): which side to act as.
answerYes
counterNoThe seller only, with answer counter: the price they'd take, in the item's currency.
offer_idYes
counter_audNoOlder name for counter, in Australian dollars. Use counter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / counter
      Added value: +{
      +  "description": "The seller only, with answer counter: the price they'd take, in the item's currency.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 300000,
      +  "type": "number"
      +}
    • changedInput schema / properties / counter_aud / description
      Previous value: -"The seller only, with answer counter: the price they'd take."New value: +"Older name for counter, in Australian dollars. Use counter."
    • addedInput schema / properties / counter_aud / exclusiveMinimum
      Added value: +0
    • changedInput schema / properties / counter_aud / maximum
      Previous value: -10000New value: +300000
    • removedInput schema / properties / counter_aud / minimum
      Removed value: -1
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare mutation, open-world, idempotent and non-destructive, so the bar is lower; the description still adds material facts the annotations cannot convey: sign-in is required, an accepted offer opens a 24-hour window for the buyer to buy at that price, and a counter must sit between the offer and the listing price. It does not say what a decline does to the offer's state or whether a counter spawns a new offer, which leaves some downstream behavior opaque.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action leads, then role logic, then the 24-hour consequence, then the auth requirement — front-loaded and dense. Parentheses and semicolons do the work of several sentences without padding, and every clause adds a fact.

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 mutation tool with no output schema, the definition covers who can do what, the counter bound, the purchase window and the auth requirement — enough to invoke it correctly. The remaining gap is outcome shape: nothing says what the call returns or how the offer's state changes on decline or counter.

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 60%, with `as` and `counter_aud` already documented in the schema. The description goes beyond it by tying the allowed `answer` values to the actor's role (counter is seller-only) and by defining the counter's semantics as bounded between offer and price, which the schema's numeric range alone does not express. `offer_id` remains unelaborated in both places.

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?

The description names a specific verb and resource ('Answers an offer in a conversation about an item') and then spells out the role-dependent action set: seller may accept, decline or counter; buyer may accept or decline a counter. That detail makes it trivially distinguishable from make_offer and buy_listing without opening any 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?

Usage context is clear — this is the response path to an offer already on the table, with a counter bounded 'between the offer and the price'. The line 'Only what the person decided' is a real usage constraint (do not fabricate a negotiation stance). It stops short of explicitly naming alternatives such as make_offer for initiating or buy_listing for purchasing.

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.