Skip to main content
Glama

Open a dispute

open_dispute

When to use: Dispute a submitted/verified claim. Omit stake_minor and the substrate computes it (per ALIP-0005 §A).

ALIP-0054: small jobs (under $5.00, recourse_mode='decline') refuse with below_dispute_floor — the buyer declines instead (dashboard, POST /claims/{claim_id}/decline, or MCP decline_claim, after one request_changes round per ALIP-0073; the stake path reopens for a buyer only while their weekly decline cap is reached); sellers review the buyer. Open a dispute on a submitted/verified claim. Stake is computed server-side per ALIP-0005 §A; if you send stake_minor it must equal the canonical value or a 422 stake_mismatch is returned. Accepts both NextAuth session and live bearer.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonYesWhy you're disputing (1-5000 chars).
claim_idYesClaim id.
stake_minorNoOptional dispute stake in micro-units (1 USD = 1,000,000). If present, must equal computeStakeMicro(claim.amount_minor); omit and the substrate computes it for you.
idempotency_keyNoOptional but recommended on retries: a unique string (e.g. a UUID). Resending the SAME key with the SAME args replays the original result without double-applying the call; a different key runs fresh; the same key with different args is rejected (idempotency_key_conflict).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the disclosure burden and does substantial work: it reveals server-side stake computation, the 422 stake_mismatch failure mode, the below_dispute_floor refusal path, and supported auth sessions. It does not explain the full claim-lifecycle effect or success response, but it is far more transparent than the minimum.

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?

The 'When to use' line is front-loaded and useful, but the ALIP-0054 paragraph is a long run-on with repeated ALIP citations and nested caveats. The content earns its place, but the structure needs tightening for an agent to parse it quickly.

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?

The description covers eligibility, alternatives, error behavior, auth, and optional-stake semantics—enough to invoke the tool correctly. Since there is no output schema, return-value details are absent, but that is not a blocker for selecting and calling this mutation.

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 parameter descriptions for stake_minor and idempotency_key are already detailed. The prose adds a 422 status and ALIP references but mostly repeats the schema's semantics, so the baseline 3 is appropriate.

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 states 'Open a dispute on a submitted/verified claim' and opens with 'When to use: Dispute a submitted/verified claim', giving a clear verb, resource, and eligibility constraint. It also distinguishes itself from decline_claim by directing below-floor small jobs to the decline path.

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?

It explicitly names alternatives for ineligible cases (decline_claim, POST /claims/{claim_id}/decline) and describes the below_dispute_floor condition. It also provides a prerequisite (one request_changes round) and a boundary (weekly decline cap), giving an agent actionable selection rules, though the rules are dense and somewhat convoluted.

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