Skip to main content
Glama

Set punch-out time (Planday)

planday_set_punch_out

Set or correct an employee's punch-out time for a shift, such as when they forgot to punch out.

Instructions

Set or correct when an employee punched out of a shift, for example when they forgot to punch out. The shift's punch clock record is read first; an approved record is not changed, and the punch-out must be after the punch-in. The time is the portal's local time. To correct the punch-in, approve the record with approve_punch_clock and the right start. Off unless writes are enabled (PLANDAY_ENABLE_WRITES, or the gateway host policy enableWrites).

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": {
      "shiftId": "<shiftId>",
      "end": "<end>"
    },
    "name": "planday_set_punch_out"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesThe punch-out, local date and time YYYY-MM-DDTHH:MM.
shiftIdYesThe shift the punch clock record belongs to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true), it discloses that the punch clock record is read first, that approved records are left unchanged, that the punch-out must be after the punch-in, and that the value is portal-local time — meaningful guardrails for a mutation. It does not say what the tool returns or how validation errors surface, which is the main remaining gap.

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

Conciseness5/5

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

Four tightly packed sentences that front-load the action, then the guardrails, then the alternative, then the enablement gate. No sentence is filler.

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 two-parameter mutation with no output schema, the definition covers purpose, preconditions, ordering constraint, approval immutability, and write gating. Only the return behavior is left unstated, which is a minor omission.

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 meaning by specifying that the time is the portal's local time (rather than UTC) and that it must fall after the punch-in.

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: setting or correcting an employee's punch-out time on a shift. It also implicitly separates itself from planday_approve_punch_clock by naming that sibling for the punch-in case.

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 an explicit use case (employee forgot to punch out) and an explicit alternative: to correct the punch-in, use approve_punch_clock with the right start. It also states the prerequisite that writes must be enabled via PLANDAY_ENABLE_WRITES or host policy.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.