Skip to main content
Glama

Read Production Run

get_production_run
Read-only

Read one production run by productionRunId or by its number: when and by whom it started, and each of its work orders with its status, manufacturing order, and the output it makes with planned and completed quantities. Read a work order's materials and operations with get_work_order. Operator credentials only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_production_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
numberNoThe run number, when the id is not known.
productionRunIdNoProduction run id (GUID), from list_production_runs.

Output Schema

NameRequiredDescriptionDefault
stateNo
numberNo
startedAtNo
workOrdersNo
startedByNameNo
workOrderCountNo
productionRunIdNo
openWorkOrderCountNo
completedWorkOrderCountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds two things beyond that: the access requirement ('Operator credentials only') and a summary of what the response contains, which lets the agent judge whether a second call to get_work_order is needed.

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?

Two sentences, front-loaded with the lookup keys and then the payload, with no filler. The second sentence about get_work_order earns its place as a routing hint; the list of returned fields is slightly dense but informative.

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?

With an output schema present, the description need not detail return values, yet the brief payload summary and the credentials note make the tool self-sufficient for a two-parameter read. The only soft spot is that both parameters are optional in the schema while the description implies one is needed, without stating that explicitly.

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 100%, so both parameters are already documented, including that number is the fallback when the id is unknown. The description restates them as alternatives ('by productionRunId or by its number') but adds no format or precedence detail beyond the schema; baseline 3 applies.

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 specific verb and resource ('Read one production run') plus both lookup keys, and enumerates the payload: start time/actor, work orders with status, manufacturing order, and output quantities. It also routes deeper detail to get_work_order, so an agent can distinguish this from list_production_runs and get_work_order without opening a 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?

The phrasing 'Read one production run by productionRunId or by its number' makes the single-record scope explicit and the mention of get_work_order for materials and operations gives a clear handoff. There is no explicit when-not or prerequisite guidance, but the context is unambiguous.

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