Skip to main content
Glama

Save Labor Default

save_labor_default
Idempotent

Review an operation's labor default, as the labor defaults screen does: minutes for setup, attendedRun and cleanup, each per run or per finished unit (perUnit needs the unit the work order's finished product is counted in), with the qualified pool and crew size that attend it (no pool and crew 0 is unattended time). A phase left out is zero minutes. Each save is a new revision; enabled false switches the default off. New runs of the operation copy the enabled default as a draft awaiting review; existing runs keep their plans until apply_labor_default recalculates one. Name the operation (the routing step, not a work order's run) by id, code or name. Needs a reason. 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": {
      "operation": "<operation>",
      "phases": "<phases>",
      "reason": "<reason>"
    },
    "name": "save_labor_default"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNoThe finished product's unit, by id, abbreviation or name; needed for perUnit.
phasesYesThe phases: phase (setup, attendedRun or cleanup), minutes, scaling (perRun or perUnit), pool (id or name) and crewSize (default 1 with a pool, 0 without).
reasonYesWhy, for the plan's history: 1–1000 characters.
enabledNofalse switches the operation's default off. Defaults to true.
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.
operationYesThe operation, by id, code or name.
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
versionNo
committedNo
expiresAtNo
actionItemIdNo
confirmationNo
correlationIdNo
approvalResultNo
idempotencyKeyNo
previewReceiptNo
idempotentReplayNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=true, and the description adds meaningful context: revisions are append-only, new runs copy the enabled default as an unreviewed draft, existing runs keep their plans until apply_labor_default runs, a reason is mandatory, and nothing changes until the commit call. That is solid added value, but the description never explains what the structured preview returns in practice or how revision history is surfaced, leaving some behavioral surface unstated beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening frames the resource well and the content is dense with load-bearing facts, but it is delivered as a single long run-on paragraph with stacked parentheticals that makes the two-step write flow and credential requirement harder to scan than necessary. Nothing is clearly wasted, yet the structure works against quick comprehension of a complex write tool.

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?

For a mutation tool with an output schema (so return values need not be described), the description covers the prerequisite (preview + previewReceipt + fresh idempotencyKey), side effects (drafts on new runs, untouched existing plans), permissions, and required inputs. What remains thin is the commit-path mechanics and the meaning of the preview payload, a minor gap given the schema's own parameter documentation.

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 all eight parameters, establishing a baseline of 3. The description does add genuine meaning beyond the schema — perUnit requires the finished product's unit, a missing phase means zero minutes, no pool plus crew 0 means unattended time, and 'operation' is the routing step identified by id, code or name — but these additions are sparse relative to the parameter count.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource precisely (an operation's labor default: setup/attendedRun/cleanup minutes, scaling, pool, crew size) and explains that each save creates a revision and that enabled=false switches the default off. The leading verb 'Review' is at odds with the tool name 'save_labor_default' and the mutation semantics described later, which slightly muddies what the tool actually does at first read.

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?

It routes the agent explicitly: preview first (required two-step write), use apply_labor_default to recalculate existing runs, and target the operation (routing step) rather than a work order's run. It also states the credential requirement (admin; operator credentials only) and the in-app assistant's confirm-card path, leaving little to infer.

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