Skip to main content
Glama
Bernstein - Multi-agent orchestration

Bernstein - Multi-agent orchestration

bernstein_run_status

Poll a run started with bernstein_run using its task_id or run_id to read the run journal and audit evidence without modifying them.

Instructions

Poll a verifiable handle for a run started with bernstein_run. Accepts either identifier that call returned: the task_id or the run_id. Reads the local run journal and audit evidence without changing them. Host effects: reads files.

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": {
      "run_id": "<run_id>"
    },
    "name": "bernstein_run_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYesThe run to project. Either the task_id or the run_id returned by bernstein_run. Resolved journal run id first, then the task id slugified into a journal run id, so both forms reach one journal.
workdirNo

Output Schema

NameRequiredDescriptionDefault
_meterYes
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv4.0.3
    • addedInput schema / properties / run_id / if
      Added value: +{
      +  "pattern": "^admin-"
      +}
    • addedInput schema / properties / run_id / not
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        ".",
      +        ".."
      +      ]
      +    },
      +    {
      +      "pattern": "[\\x00-\\x1f]"
      +    }
      +  ]
      +}
    • addedInput schema / properties / run_id / pattern
      Added value: +"^[A-Za-z0-9_.:-]+$"
    • addedInput schema / properties / run_id / then
      Added value: +{
      +  "pattern": "^admin-[a-f0-9]{32}$"
      +}
  2. Changed1 schema field changedv3.23.0
    • changedOutput schema / properties / result / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "chainHead": {
      -        "type": "string"
      -      },
      -      "journalHead": {
      -        "type": "string"
      -      },
      -      "pollToken": {
      -        "type": "string"
      -      },
      -      "progress": {
      -        "type": [
      -          "object",
      -          "null"
      -        ]
      -      },
      -      "progressHash": {
      -        "type": "string"
      -      },
      -      "receiptHash": {
      -        "type": "string"
      -      },
      -      "runId": {
      -        "type": "string"
      -      },
      -      "specRevision": {
      -        "type": "string"
      -      },
      -      "status": {
      -        "enum": [
      -          "cancelled",
      -          "completed",
      -          "failed",
      -          "input_required",
      -          "working"
      -        ],
      -        "type": "string"
      -      },
      -      "taskId": {
      -        "type": "string"
      -      },
      -      "traceId": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "chainHead",
      -      "journalHead",
      -      "pollToken",
      -      "progress",
      -      "progressHash",
      -      "receiptHash",
      -      "runId",
      -      "specRevision",
      -      "status",
      -      "taskId",
      -      "traceId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "error": {
      -        "type": "string"
      -      },
      -      "hint": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "chainHead": {
      +        "type": "string"
      +      },
      +      "journalHead": {
      +        "type": "string"
      +      },
      +      "pollToken": {
      +        "type": "string"
      +      },
      +      "progress": {
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "progressHash": {
      +        "type": "string"
      +      },
      +      "receiptHash": {
      +        "type": "string"
      +      },
      +      "runId": {
      +        "type": "string"
      +      },
      +      "specRevision": {
      +        "type": "string"
      +      },
      +      "status": {
      +        "enum": [
      +          "cancelled",
      +          "completed",
      +          "failed",
      +          "input_required",
      +          "working"
      +        ],
      +        "type": "string"
      +      },
      +      "taskId": {
      +        "type": "string"
      +      },
      +      "traceId": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "chainHead",
      +      "journalHead",
      +      "pollToken",
      +      "progress",
      +      "progressHash",
      +      "receiptHash",
      +      "runId",
      +      "specRevision",
      +      "status",
      +      "taskId",
      +      "traceId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Authenticated task aggregate returned by administrative run surfaces.",
      +    "properties": {
      +      "chainHead": {
      +        "title": "Chainhead",
      +        "type": "string"
      +      },
      +      "chainVerified": {
      +        "const": true,
      +        "title": "Chainverified",
      +        "type": "boolean"
      +      },
      +      "goal": {
      +        "title": "Goal",
      +        "type": "string"
      +      },
      +      "receiptHash": {
      +        "title": "Receipthash",
      +        "type": "string"
      +      },
      +      "runId": {
      +        "title": "Runid",
      +        "type": "string"
      +      },
      +      "status": {
      +        "enum": [
      +          "working",
      +          "completed"
      +        ],
      +        "title": "Status",
      +        "type": "string"
      +      },
      +      "tasks": {
      +        "items": {
      +          "additionalProperties": {
      +            "type": "string"
      +          },
      +          "type": "object"
      +        },
      +        "title": "Tasks",
      +        "type": "array"
      +      },
      +      "template": {
      +        "const": "administrative",
      +        "default": "administrative",
      +        "title": "Template",
      +        "type": "string"
      +      },
      +      "tenant_id": {
      +        "title": "Tenant Id",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "runId",
      +      "goal",
      +      "tenant_id",
      +      "status",
      +      "tasks",
      +      "chainHead",
      +      "chainVerified",
      +      "receiptHash"
      +    ],
      +    "title": "AdministrativeRunStatus",
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      },
      +      "hint": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed1 schema field changedv3.15.0
    • changedInput schema / description
      Previous value: -"Poll a verifiable handle for a run started with bernstein_run. Accepts either identifier that call returned: the task_id or the run_id."New value: +"Poll a verifiable handle for a run started with bernstein_run. Accepts either identifier that call returned: the task_id or the run_id. Reads the local run journal and audit evidence without changing them. Host effects: reads files."
  4. Addedv3.11.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does reasonably well: it declares read-only semantics ('without changing them') and an explicit host-effect disclosure ('reads files'). It does not cover failure behavior (unknown/expired handle), whether results are eventual/partial, or polling cadence, which are the main remaining behavioral gaps.

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?

Three tight sentences, front-loaded with purpose, then accepted inputs, then read-only/host-effect guarantees. 'Host effects: reads files' slightly restates 'without changing them', but the redundancy is a deliberate structured disclosure rather than filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, and the read-only profile is stated. However, for a polling tool the definition never says whether a call blocks, whether a run may be incomplete, or what happens on an unrecognized handle, and workdir is left entirely unexplained — leaving real gaps against the tool's complexity.

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 50%: run_id is richly documented in-schema (resolution order, slugification), but workdir is undocumented in both places. The description adds the useful duality of task_id vs run_id but does not explain workdir or the resolution precedence beyond what the schema already states, so it lands at the baseline.

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?

States a concrete verb+resource ('Poll a verifiable handle for a run') and anchors itself to the sibling that creates the handle ('a run started with bernstein_run'). The agent can immediately tell this is the status/read side of the bernstein_run lifecycle rather than a new run or an orchestrator-level status.

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 clear when-to-use context: call it after bernstein_run, passing back either identifier that call returned. It lacks explicit exclusions (e.g. when to prefer bernstein_status or when to stop polling / how often), so it stops short of a full when/when-not/alternative triad.

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