Skip to main content
Glama

Read a BrainChain order

brainchain_get_task
Read-only

Read an order from brainchain_post_task: the payment, the task's status on BrainChain, the grade, the result text once the work is accepted, and the refund transaction if it is not. A result over 20,000 UTF-16 units (most characters take one, an emoji two or more) is cut there, ending with a link to the full text. Call again after retryAfterSeconds until done is true. next says what the order's state means and what to do. A rejected task stays not done until the refund is sent, when the dispute window closes. Two things end it without a refund transaction: a ruling that pays the model, and a refund the desk gives up sending, when state reads refund-failed and next says who to write to.

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": {
      "order": "<order>"
    },
    "name": "brainchain_get_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderYesOrder id returned by brainchain_post_task.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds substantial context beyond them, notably the 20,000 UTF-16-unit truncation with a link to full text, the polling contract, and the refund-failed terminal state with escalation guidance. These are exactly the behaviors an agent must know before calling and that no structured field conveys.

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?

Content is front-loaded with the return payload before the edge cases, and every sentence carries information. The final sentence about the two no-refund endings is dense and requires re-reading, which keeps it from a 5.

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?

There is no output schema, so the description must describe return values, and it does: payment, status, grade, result text (with truncation rule), refund transaction, plus response fields `done`, `next`, `retryAfterSeconds`, and `state`. For a single-parameter read tool this covers everything an agent needs to call and interpret it.

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 `order` parameter is already documented as the id returned by brainchain_post_task, which the description merely echoes. Baseline 3 applies: the schema does all the semantic work here.

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 and resource ("Read an order from brainchain_post_task") and immediately enumerates what the order carries: payment, status, grade, result text, refund transaction. This distinguishes it from brainchain_post_task (which creates the id consumed here) and from grade-related siblings, so an agent can pick it without opening the schema.

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 gives concrete operational guidance: poll again after `retryAfterSeconds` until `done` is true, and consult `next` for what the state means. It also explains the terminal conditions (ruling that pays the model, refund-failed desk abandonment). It stops short of naming an alternative tool to use for any of those follow-ups, so no explicit when-not-to-use routing beyond the implied polling loop.

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.