Skip to main content
Glama

Decline offer

decline_offer
DestructiveIdempotent

Decline the other person's pending offer in a conversation, for the person you act for. To counter it instead, use send_message with offer_amount; accepting is the person's own step, in the app.

An offer that is no longer pending (accepted, declined or countered) answers not_actionable.

Returns declined (true once the other person sees it), the offer_id and the conversation's app_url. Use it when the person has said no to that price.

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": {
      "conversation_id": "<conversation_id>",
      "message_id": "<message_id>"
    },
    "name": "decline_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
message_idYesThe offer to decline: the `id` of a message in get_conversation whose `offer.status` is "pending" and which is `from` them
conversation_idYesThe conversation the offer is in: its id (such as `cmh0q2x8f0001...`), from list_conversations or get_conversation

Output Schema

NameRequiredDescriptionDefault
app_urlYesThe conversation's page in the app, where the person sees the declined offer
declinedYestrue: the offer is now declined, the other person sees it, and nobody can accept it any more; a new price needs a new offer
offer_idYesThe id of the offer message that was declined (such as `cmh0q2x8f0001...`), as get_conversation lists it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / properties / declined / description
      Previous value: -"true: the offer is now declined, and the other person sees it"New value: +"true: the offer is now declined, the other person sees it, and nobody can accept it any more; a new price needs a new offer"
    • changedOutput schema / properties / offer_id / description
      Previous value: -"The declined offer's message id, as get_conversation lists it"New value: +"The id of the offer message that was declined (such as `cmh0q2x8f0001...`), as get_conversation lists it"
  2. Changed4 schema fields changed
    • addedOutput schema / properties / app_url
      Added value: +{
      +  "description": "The conversation's page in the app, where the person sees the declined offer",
      +  "type": "string"
      +}
    • changedOutput schema / properties / declined / description
      Previous value: -"true: the offer is declined, and the other person sees it"New value: +"true: the offer is now declined, and the other person sees it"
    • addedOutput schema / properties / offer_id
      Added value: +{
      +  "description": "The declined offer's message id, as get_conversation lists it",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "declined"
      -]New value: +[
      +  "declined",
      +  "offer_id",
      +  "app_url"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / conversation_id / description
      Previous value: -"The conversation the offer is in: its `id` from list_conversations or get_conversation"New value: +"The conversation the offer is in: its id (such as `cmh0q2x8f0001...`), from list_conversations or get_conversation"
  4. Changed2 schema fields changed
    • changedInput schema / properties / conversation_id / description
      Previous value: -"The conversation: its id, from list_conversations"New value: +"The conversation the offer is in: its `id` from list_conversations or get_conversation"
    • changedInput schema / properties / message_id / description
      Previous value: -"The pending offer to decline: its message id, from get_conversation"New value: +"The offer to decline: the `id` of a message in get_conversation whose `offer.status` is \"pending\" and which is `from` them"
  5. Added

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=true, idempotentHint=true), so the bar is lower, yet the description still adds real behavior: a non-pending offer answers `not_actionable`, and `declined` only becomes true once the other person sees it, which signals eventual rather than immediate effect. It stops short of stating permission or scope requirements for acting on the person's behalf, but the error and visibility semantics are genuinely useful additions.

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?

The action, the alternative, and the failure mode are front-loaded in that order, with no filler or marketing language. The closing "Use it when the person has said no to that price" largely restates the first sentence, and the return-value sentence duplicates what the output schema already covers, so a small trim would help.

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?

For a two-parameter mutation with full schema coverage, annotations, and an output schema, the description covers everything an agent needs: what it mutates, the alternative routing, the not_actionable failure case, and when the effect becomes visible. Nothing material is left to inference.

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% and the field descriptions already explain that message_id must be a message whose `offer.status` is "pending" and which is `from` them, plus where conversation_id comes from. The description adds no format, constraint, or disambiguation beyond that, so baseline 3 applies.

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 ("Decline the other person's pending offer in a conversation") plus the acting-on-behalf-of framing, which matters for an agent operating as a user. It also implicitly scopes out countering and accepting in the same breath, so an agent can tell it apart from send_message without opening either schema.

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?

Names the alternative explicitly ("To counter it instead, use send_message with offer_amount") and where the third path lives (accepting is the person's own step, in the app), so the agent knows what not to do here. It closes with a concrete trigger condition, "Use it when the person has said no to that price."

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