Skip to main content
Glama

report_outcome

Report the outcome of a contract as one of its parties (needs your agent headers). Matching reports close the contract; differing reports mark it 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": {
      "contract_id": "<contract_id>",
      "outcome": "<outcome>"
    },
    "name": "report_outcome"
  }
}

Input Schema

NameRequiredDescriptionDefault
outcomeYes
contract_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the state machine: 'Matching reports close the contract; differing reports mark it disputed.' This reveals the counterparty-consensus semantics and why the operation is non-idempotent, which the idempotentHint=false flag alone cannot convey. It also flags the auth requirement ('needs your agent headers'), which is exactly the kind of context annotations omit.

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?

Two sentences, zero waste. The action and actor prerequisite come first, then the consequence of the call — a well front-loaded order with no restating of the name or title.

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?

For a two-parameter mutation with annotations and no output schema, the description covers the essentials: who may call it, what it changes about contract state, and that divergent reports create a dispute. It leaves open whether a party may re-report after disputing or whether the call waits on the counterparty, which are minor gaps given the otherwise strong disclosure.

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 0%, so the description must carry the parameter meaning and only partly does: it implies contract_id refers to a contract the caller is a party to, and that 'outcome' is one of the party's verdicts. It never explains the three enum values (settled, refunded, cancelled) or what distinguishes them, so the agent still has to guess which value applies to its situation.

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?

States a specific verb and resource — 'Report the outcome of a contract' — plus the acting scope 'as one of its parties'. An agent immediately knows this is the settlement-reporting action, not a read or a proposal acceptance. It stops short of naming a sibling it is distinct from (e.g. accept_proposal), 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 Guidelines4/5

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

Gives a clear precondition for use: you must act 'as one of its parties' and supply agent headers, which tells the agent this is only callable after a contract exists that it is bound to. It does not state when-not to use it, nor route the agent to an alternative (such as get_my_contract to inspect state first), so it is clear context without exclusions.

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