Skip to main content
Glama

Deal action

deal_action

Continue an accepted deal (from my_deals or my_offers) with the other side, on the deal itself: propose terms (payment_method from the listing's options, payment_detail such as which app or escrow provider, trade_method, handoff_time, handoff_place: a public place or "shipping"); agree the other side's proposal (both agreed = arranged); message (short text; the only way to share a phone number, email or address, and only when your user wants to: set shares_address=true when it gives an address; with agree, pass proposal_at from the arrangement your user saw, so newer terms are never agreed by mistake); cancel (the item goes back on sale); done (buyer: received; seller: handed over and paid; both = sold); report (reason) or block the other side (always only on your user's word). Each step follows your user's deal rules (deal_rules): when the answer is done=false, ask your user ask_your_user and only after their yes call again with user_approved=true. Never pay or promise anything your user did not say.

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>",
      "action": "<action>"
    },
    "name": "deal_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
actionYes
reasonNo
offer_idYes
proposal_atNo
handoff_timeNo
trade_methodNo
handoff_placeNo
user_approvedNo
payment_detailNo
payment_methodNo
shares_addressNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare that this mutates state (readOnlyHint=false) without being idempotent; the description adds substantial context beyond them: cancel returns the item to sale, done has role-specific meaning (buyer received / seller handed over and paid, both = sold), message is the sole contact-sharing path, and the approval gate is spelled out. It also guards against a real failure mode by requiring proposal_at so newer terms are never agreed by mistake. Nothing here contradicts the annotations.

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 list is front-loaded and nearly every clause carries a real constraint rather than filler. It is, however, a single dense paragraph with stacked parentheticals, so it is harder to scan than it needs to be for a seven-action tool; light structure would improve it without cutting content.

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?

Given a 12-parameter mutation tool with an output schema already covering return values, the description supplies everything else an agent needs: the precondition (deal must be accepted), per-action semantics, the approval loop, and the prohibition on paying or promising anything the user did not state. No material gap remains for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden, and it does: payment_method is constrained to the listing's options, payment_detail means which app or escrow provider, handoff_place is 'a public place or shipping', trade_method and handoff_time are named, and text/shares_address/proposal_at/user_approved all get operational meaning. This meaningfully compensates for the total lack of schema documentation across 12 parameters.

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 resource (an accepted deal from my_deals/my_offers) and enumerates the exact operations the tool performs: propose, agree, message, cancel, done, report, block. It also distinguishes the tool from the adjacent listing/offer tools it references, so an agent can tell it apart from siblings like make_offer or deal_rules.

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?

The description gives explicit usage conditions per action: 'agree' requires passing proposal_at from the arrangement the user saw; message is the only channel for sharing contact info and requires user intent plus shares_address=true; report/block are 'always only on your user's word'. It also provides a fallback protocol (when done=false, ask the user ask_your_user, then retry with user_approved=true), which is the kind of when-to-use guidance most definitions omit.

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.