Skip to main content
Glama

view_dispute

Get the on-chain dispute record for disputed or resolved contracts. Use it to track arbitration votes and confirm the winner has been paid.

Instructions

Get the on chain dispute record for a Disputed or Resolved contract.

Use this to follow an arbitration vote and to check payout state after resolution. Fields returned:

  • frozen_n, threshold: arbitrator set size and votes needed, frozen when the dispute was filed.

  • vc_alice, vc_bob: current vote counts for the requester and the worker.

  • resolution: 0 none yet, 1 the requester (Alice) won, 2 the worker (Bob) won.

  • winner_paid: 1 once the winner has claimed. A Resolved contract stays at status 6 or 7 forever, so this flag is the ONLY signal that the payout happened. Never retry claim_funds when winner_paid is 1.

  • fee_share, fee_remainder, remainder_swept: how the dispute fee was split among the consensus voting arbitrators, and whether the remainder went to the treasury.

  • bond_encumbered: 1 while this dispute holds a lien on the worker's reputation bond (the bond cannot be reclaimed until the dispute ends).

Read only, needs no wallet funds.

Args: job_id: The contract ID whose dispute to inspect.

Returns the dispute record as JSON with a one line interpretation, or an error message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description carries the full burden and excels. It states 'Read only, needs no wallet funds,' reveals that Resolved contracts remain at status 6/7 forever, and clarifies that winner_paid is the ONLY signal of payout. It also explains the bond lien semantics, giving deep behavioral context beyond a simple API note.

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 description is detailed but every sentence adds value: purpose, usage, field explanations, and parameter. It is well-structured with a field list that is easy to scan and a clear separation of ARGS. No fluff or repetition.

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?

The tool has one parameter, no annotations, and an output schema (making return-value detail less critical). The description covers behavior, safety (read-only, no funds), and critical edge cases (winner_paid, bond_encumbered). It is fully self-sufficient for an agent to decide when and how to call this tool correctly.

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 must compensate. It defines job_id as 'The contract ID whose dispute to inspect,' which clarifies that the parameter refers to the job contract, not a dispute ID. This fully disambiguates the only required parameter.

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 opens with a specific verb+resource: 'Get the on chain dispute record for a Disputed or Resolved contract.' It clearly distinguishes from siblings like view_contract by focusing on the dispute record and listing dispute-specific fields. The purpose is immediately unambiguous.

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?

Explicit usage guidance is given: 'Use this to follow an arbitration vote and to check payout state after resolution.' It also provides a strong when-not instruction ('Never retry claim_funds when winner_paid is 1'), which indirectly differentiates from the claim_funds sibling. However, it does not explicitly name alternative tools for non-dispute queries.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/honeytones/idios'

If you have feedback or need assistance with the MCP directory API, please join our Discord server