Skip to main content
Glama
sipyourdrink-ltd

Bernstein - Multi-agent orchestration

bernstein_task_handle

Retrieve a verifiable task handle by run ID, embedding the audit-chain head to verify task execution offline. Supports stateless polling.

Instructions

Return a verifiable Tasks-extension handle for a run, by run id.

The handle's status is a pure projection of the run journal, and it embeds the run's audit-chain head so the client can later verify the task it watched corresponds to the audited run (bernstein audit verify or the offline verifier). Polling is stateless: any server instance reprojects the same handle from the on-disk journal.

Args: run_id: The run identifier whose journal to project. Must be a plain identifier - path separators and traversal are refused. workdir: Project root directory (default: current directory).

Returns: JSON of the Tasks-extension task-handle body (taskId, runId, status, journalHead, chainHead, receiptHash, pollToken, ...).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idYes
workdirNo.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, description carries full burden. It discloses stateless polling, audit-chain head embedding, path traversal refusal, and that the handle is a projection. No contradictions. Minor omission: no error scenarios mentioned.

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?

Description is well-structured with purpose sentence, behavioral details, then Args and Returns sections. Every sentence adds value; no fluff. Front-loaded with core purpose.

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 moderate complexity and presence of output schema (mentioned in Returns), description covers purpose, parameters, and behavior adequately. Missing error cases or prerequisites. Overall complete for a handle-retrieval tool.

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

Parameters5/5

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

Description adds significant meaning beyond schema (which only has types). Args section explains run_id must be plain identifier with no path separators, and workdir defaults to current directory. Schema coverage 0% but description fully compensates.

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?

Description clearly states 'Return a verifiable Tasks-extension handle for a run, by run id', specifying the verb (return) and resource (handle). It distinguishes from siblings like bernstein_status by emphasizing verifiability and audit integration.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Description implies usage through stateless polling and projection but does not explicitly state when to use this tool over alternatives (e.g., bernstein_status, bernstein_tasks). No exclusions or when-not-to-use guidance.

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/sipyourdrink-ltd/bernstein'

If you have feedback or need assistance with the MCP directory API, please join our Discord server