Skip to main content
Glama

Record Labor Time

record_labor_time
Idempotent

Record time a worker spent on a run after the fact, as the labor planner screen does: one phase (setup, attendedRun or cleanup) from start to end, at most 24 hours. start and end are ISO 8601 instants with an offset or Z (e.g. 2026-10-12T08:00:00-04:00); times are kept to the second. Refused when it overlaps the worker's other recorded time or a session they have running. Name the run by operationId, or by workOrder and operationCode, and the worker by id or full name. Recorded time cannot be edited or removed afterwards. Admin; operator credentials only. Preview first; the in-app assistant gets a confirm card.

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": {
      "worker": "<worker>",
      "phase": "<phase>",
      "start": "<start>",
      "end": "<end>"
    },
    "name": "record_labor_time"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesWhen the work ended, ISO 8601 with an offset or Z.
phaseYessetup, attendedRun or cleanup.
startYesWhen the work started, ISO 8601 with an offset or Z.
workerYesA worker id (GUID) or full name.
previewNoStep 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call.
workOrderNoThe run's work order number, with operationCode.
operationIdNoThe run's operation id (GUID).
operationCodeNoThe run's operation code, with workOrder.
idempotencyKeyNoCaller-generated idempotency key; required with previewReceipt to commit.
previewReceiptNoStep 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused.

Output Schema

NameRequiredDescriptionDefault
okNo
previewNo
requestNo
recordedNo
committedNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

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?

Adds substantial behavior beyond the annotations: refusals on overlap with other recorded time or a running session, a 24-hour cap, immutability ('cannot be edited or removed afterwards'), and the required preview/confirm flow. The immutability disclosure is important context even though destructiveHint=false is technically accurate for an additive write.

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?

Front-loads the purpose and packs only substantive constraints; no filler sentences. The single long sentence with colons and semicolons is dense and slightly harder to scan than a short bulleted structure would be.

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?

For a 10-parameter mutation with an output schema, the description covers the gaps that matter: authorization, immutability, refusal conditions, and the two-step preview/commit requirement. Return-value detail is correctly left to the output schema.

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%, so the schema already documents start/end ISO format, phase values, and the operationId vs workOrder+operationCode and worker id vs name alternatives. The description adds the 24-hour maximum, which is a real constraint, but most parameter meaning is already in the schema.

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: records a worker's time on a run after the fact, with the phase model (setup, attendedRun, cleanup) spelled out. The 'after the fact' framing implicitly separates it from start_labor_session/stop_labor_session without needing to name them.

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 context -- use it retroactively for time already worked, admin/operator credentials only, and preview before committing. It does not explicitly name an alternative tool or state when not to use it, which keeps it short of a 5.

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