Skip to main content
Glama

Donewire

Accept the result and complete the task

approve_job

Accept the result and complete the task. Moves submitted -> completed. Escrow: first send escrow.release_call (from get_payment_intent or error.details.release_call) from the depositing wallet; until the release is on chain this returns escrow_release_required. Requires API key.

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": {
      "job_id": "<job_id>"
    },
    "name": "approve_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesTask id

Output Schema

NameRequiredDescriptionDefault
idYes
titleYes
statusYes
sandboxYestrue for sandbox tasks completed by the Sandbox bot (no real-world action)
serviceYes
locationYes
deadline_atYes
descriptionYes
next_actionsNo
worker_pay_centsYesInteger amount in US cents (100 = 1.00 USD)
status_descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: the exact state machine transition, the escrow prerequisite and its failure mode, where to obtain the release call, and the API-key requirement. None of that is derivable from readOnlyHint=false / destructiveHint=false / idempotentHint=false, so the description carries real behavioral weight.

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?

Three tight sentences, front-loaded with the action and state transition, then the prerequisite and the auth note. Every clause is operationally useful and nothing is padding.

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?

For a single-parameter mutation with an output schema, the definition covers the transition, the escrow gate, the error code an agent must handle, and authentication. Nothing needed to invoke it correctly is missing, and return values are covered by the output schema.

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% and the single job_id parameter is already documented as 'Task id' with a UUID pattern. The description adds no further meaning about the identifier (e.g. whether it must be a job the caller owns or is assigned to), so the schema does the heavy lifting.

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+resource ('Accept the result and complete the task') and, crucially, the state transition 'submitted -> completed', which lets an agent distinguish this from request_revision or cancel_job. It stops short of naming any sibling explicitly, so it is clear but not fully differentiated by name.

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 concrete precondition and sequencing rule: release escrow from the depositing wallet before calling, otherwise escrow_release_required is returned, and it points to where the release call comes from (get_payment_intent or error.details.release_call). It does not state when to prefer an alternative such as request_revision or open_dispute instead.

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