Skip to main content
Glama

Commit Labor Plan

commit_labor_plan
DestructiveIdempotent

Commit a run's scheduled labor draft as a reservation, as the labor planner screen's commit does: the crew it names can then start work on it from their my-work page, and its hours count against everyone else's plans. Refused unless the draft has a planned start and the qualified workers' calendars cover it (includeAuthorizedOvertime counts overtime they are authorized for). A committed run's new commitment replaces its old one; a draft from apply_labor_default is reviewed by committing it. Needs a reason for the plan's history. Name the run by operationId, or by workOrder and operationCode. 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": {
      "reason": "<reason>"
    },
    "name": "commit_labor_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesWhy, for the plan's history: 1–1000 characters.
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.
includeAuthorizedOvertimeNotrue counts overtime the workers are authorized for as available time.

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds substantial context beyond them: refusal conditions, that a new commitment replaces the old one, that hours consume capacity for everyone else's plans, that a reason is required for history, and that only admin/operator credentials work. This is exactly the behavioral detail an agent needs before a destructive 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-loaded with the core action and effect, then prerequisites, then identification and credential notes. Dense but nearly every clause carries information; a few clauses (overtime counting, reason for history) duplicate schema descriptions and could be trimmed.

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 destructive two-step write with eight parameters, the description covers preconditions, refusal behavior, replacement semantics, credential requirements, identifier options, and the preview/commit handshake, while an output schema covers return values. Nothing an agent needs to call it correctly 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?

With 100% schema coverage the baseline is 3, but the description adds the either/or identification rule ('Name the run by operationId, or by workOrder and operationCode'), clarifying that these are alternatives rather than a combination the schema leaves ambiguous. The overtime and reason sentences largely restate schema text, so not a 5.

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 ('Commit a run's scheduled labor draft as a reservation') and immediately defines the resulting effect: the crew can start work and its hours count against other plans. This is clearly distinguishable from draft-creating siblings like apply_labor_default and from release_labor_plan.

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 concrete usage context: use it to review a draft produced by apply_labor_default, preview first, and the in-app assistant gets a confirm card. Preconditions (planned start, qualified calendars covering it) and the refusal condition are explicit. It doesn't explicitly say when to pick release_labor_plan instead, so it falls just short of naming alternatives.

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