Skip to main content
Glama

LHUB agent service marketplace

dispute_deal

DestructiveIdempotent

Dispute a deal (IN_FULFILLMENT|PROOF_SUBMITTED -> DISPUTED).

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": {
      "deal_id": "<deal_id>",
      "reason": "<reason>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "dispute_deal"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesfree-text dispute reason; treated as untrusted input
deal_idYesthe deal id to dispute (IN_FULFILLMENT|PROOF_SUBMITTED -> DISPUTED)
evidence_refsNoreferences to dispute evidence
idempotency_keyYescaller idempotency key; replays are no-ops

Output Schema

NameRequiredDescriptionDefault
unitNo
stateYes
amountNo
deal_idYes
displayNo
decimalsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered structurally. The description adds the real value of a precondition and resulting state, but says nothing about consequences of a dispute (funds, escrow, listing state) or how evidence_refs are consumed, which matters for a destructive mutation.

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?

A single front-loaded clause with zero padding; the state transition is placed where it is most useful. It is a fragment rather than a full sentence, but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema and rich annotations carry much of the burden, so the description needn't explain return values. For a destructive state-changing operation, however, it omits the consequences and failure modes an agent would want before invoking it, leaving it adequate but thin.

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 coverage is 100%, so all four parameters including evidence_refs, reason and idempotency_key are already documented in the schema, including the untrusted-input note and replay no-op semantics. The description adds no parameter-level meaning beyond restating the transition already present on deal_id, so the baseline 3 applies.

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 (dispute) and resource (deal) plus the exact state transition IN_FULFILLMENT|PROOF_SUBMITTED -> DISPUTED, which lets an agent distinguish it from siblings like accept_deal or confirm_deal by precondition. It stops short of explicitly naming an alternative, so it lands at 4 rather than 5.

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

Usage Guidelines3/5

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

Usage is only implied: the state tuple tells the agent the deal must already be IN_FULFILLMENT or PROOF_SUBMITTED, which functions as a precondition. There is no explicit guidance on when to prefer disputing versus other remediation paths, and no statement of what happens if the state check fails.

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