Skip to main content
Glama

Start Labor Session

start_labor_session
Idempotent

Clock the signed-in worker in on a run they are committed to, as the start button on their my-work page does: a work session on one phase (setup, attendedRun or cleanup) of a committed labor plan starts now. Name the run by operationId, or by workOrder and operationCode (get_labor_work_day lists the worker's runs). phase defaults to the worker's only phase in the run. Refused when the plan changed or needs review, when the worker is not in that phase's crew, or while they already have a session running or time recorded ahead. Stop it with stop_labor_session. In-app only (User role; the account must be linked to a worker): a connector has no worker of its own. Preview first; the in-app assistant gets a confirm card.

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": "start_labor_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
phaseNosetup, attendedRun or cleanup; defaults to your only phase in the run.
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
sessionNo
committedNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover the safety profile (not readOnly, idempotent, non-destructive), and the description adds substantially more: the exact refusal conditions, the required two-step preview-then-commit flow with previewReceipt, the in-app-only/worker-linkage constraint, and the preview-first confirmation behavior. It also clarifies that retries are safe because of the idempotency key, consistent with idempotentHint=true.

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-loaded with the action and phase scope, then conditions, then the alternative and audience constraints; every clause carries information. It is dense and long-winded in places (parenthetical phase list repeated from the schema), which keeps it just short of a 5.

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 7-parameter write tool with 0 required fields, the description covers identification, defaults, prerequisite state, refusal cases, the two-step write contract, and the stop counterpart. An output schema exists, so return values need not be described, and nothing essential to correct invocation is missing.

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; the description still adds the identifying logic that operationId picks the run alone while workOrder needs operationCode, and that phase defaults to the worker's single phase in the run. That mutual-exclusivity/coalescing context is not spelled out in the schema and carries real invocation weight.

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+resource: 'Clock the signed-in worker in... a work session on one phase (setup, attendedRun or cleanup) of a committed labor plan starts now.' It also explicitly names the counterpart 'Stop it with stop_labor_session' and the lookup helper 'get_labor_work_day', so an agent can distinguish it from siblings 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 Guidelines5/5

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

Gives concrete when-to-use ('as the start button on their my-work page does'), enumerates the refusal conditions (plan changed or needs review, worker not in the crew, session already running or time recorded ahead), and routes to the alternative stop tool. It also scopes the audience: in-app only, User role, account linked to a worker.

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