Skip to main content
Glama

Release Labor Plan

release_labor_plan
DestructiveIdempotent

Release a run's labor commitment, as the labor planner screen's release does: its hours stop counting against other plans and nobody can start new work on the run until it is committed again. The draft stays as it is; sessions already running keep running. 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": "release_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.

Output Schema

NameRequiredDescriptionDefault
okNo
previewNo
requestNo
committedNo
expiresAtNo
planVersionNo
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: the exact consequence (hours no longer count against other plans), the re-entry barrier (nobody can start new work until re-commit), what is preserved (draft untouched, running sessions continue), the audit requirement (reason), and the authorization level (admin/operator). This is precisely the behavioral detail an agent needs before invoking 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-loads the essential effect in the first clause and packs consequences, addressing, auth, and the preview requirement into a handful of short sentences. A couple of fragments ('as the labor planner screen's release does', 'the in-app assistant gets a confirm card') are UI-flavored and only loosely actionable for an agent, but nothing is redundant.

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, audited write with an output schema available to explain return values, the description covers what an agent must know: side effects, what survives the call, the mandatory reason, credentials, run addressing, and the required preview-then-commit flow. No material gap remains that would cause a misfire.

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 parameters are already documented in structured form, which sets the baseline at 3. The description still adds real meaning by stating the run can be addressed either by operationId alone or by the workOrder/operationCode pair, and by reiterating that a reason is mandatory for history — semantics that would otherwise require reading three separate nullable fields to infer.

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 (release a run's labor commitment) and immediately defines the operational meaning: hours stop counting against other plans and no new work can start until it is committed again. The phrase 'until it is committed again' implicitly contrasts with the commit counterpart, and 'The draft stays as it is; sessions already running keep running' distinguishes the exact scope of the change from a broader cancel.

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 preconditions and sequencing: 'Admin; operator credentials only', 'Needs a reason for the plan's history', and 'Preview first'. The addressing rule (operationId, or workOrder plus operationCode) tells the agent how to target the run. It lacks an explicit 'use X instead when…' exclusion against commit_labor_plan or a cancel-style sibling, so it stops 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