Skip to main content
Glama

view_contract

Retrieve the current on-chain state of an Idios contract including status, payment, collateral, and expiry. Use this read-only tool to check contract details before taking any action.

Instructions

Get the current on-chain state of an Idios contract.

Returns all contract fields including status, payment, collateral, dispute_fee, delivery_hash, expiry_block, mode, and asset_id.

Status values: Open(0), Active(1), AwaitingApproval(2), Disputed(3), Settled(4), Refunded(5), ResolvedToAlice(6), ResolvedToBob(7), Closed(8), Voided(9), Cancelled(10).

Use this to check contract state before deciding what action to take. This call is read-only and does not require wallet funds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations provided, so the description carries full burden. It discloses that the call is read-only and does not require wallet funds, which are key behavioral traits. Also lists status values.

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 description is fairly concise with each sentence adding value. It lists fields, statuses, usage, and read-only nature without unnecessary fluff.

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?

Given the presence of an output schema, the description does not need to explain return values. It provides adequate context (read-only, no funds, status enum) for a simple tool with one parameter.

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

Parameters2/5

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

The input schema has one parameter job_id with no description. The tool description does not add any additional meaning to this parameter, and schema coverage is 0%. A brief explanation of job_id would improve this.

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 clearly states the verb 'Get' and the resource 'current on-chain state of an Idios contract', and lists the fields returned. It distinguishes from sibling tools like view_dispute and view_worker_reputation.

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?

Explicitly says 'Use this to check contract state before deciding what action to take', providing clear when-to-use guidance. Does not mention when not to use or alternatives, but the context is sufficient.

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