Skip to main content
Glama

Get Labor Operation

get_labor_operation
Read-only

One operation's labor, as the planner's detail panel shows it: the draft plan and its version, the committed allocation and its commit/release history, time recorded against it by worker, work sessions running now, and issues workers reported. Name the operation by operationId (from list_labor_operations) or by workOrder number plus operationCode. Admin; 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_labor_operation"
  }
}

Input Schema

NameRequiredDescriptionDefault
workOrderNoThe work order number, with operationCode, instead of operationId.
operationIdNoThe work order operation id (GUID).
operationCodeNoThe operation code on that work order, e.g. OP-10.

Output Schema

NameRequiredDescriptionDefault
issuesNo
actualsNo
operationNo
activeSessionsNo
actualLaborHoursNo
allocationHistoryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered; the description adds auth requirements and the shape of what is retrieved (including historical commit/release records and live sessions). That is meaningful context beyond the structured fields. It says nothing about pagination or limits on the history/session lists, which is the remaining gap.

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?

A single dense sentence, but it is front-loaded with the resource and then lists contents in a readable progression before closing with the identification and auth rules. Every clause carries information; the run-on construction is the only minor cost.

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, full parameter documentation, and read-only annotations, the description covers contents, identification, and authorization adequately. The one omission is behavior when all three optional parameters are omitted, since required-parameter count is zero and nothing states the fallback or error.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description goes further by explaining the intended pairing semantics: operationId alone, or workOrder together with operationCode, and it traces operationId back to list_labor_operations. It does not address what happens if none of the three optional parameters is supplied.

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 names a specific verb and resource ("One operation's labor") and then enumerates the concrete payload: draft plan and version, committed allocation with commit/release history, per-worker recorded time, running sessions, and reported issues. That enumeration distinguishes it unambiguously from list_labor_operations, which is explicitly named as the source of the identifier.

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 clear usage context: call this for a single operation, and obtain the identifier either from list_labor_operations (operationId) or from work order number plus operationCode. It also states the access constraint ("Admin; operator credentials only"), which is a real precondition. It stops short of explicit exclusions such as when to prefer the list or resource-level siblings 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