Skip to main content
Glama

Approve punch clock record (Planday)

planday_approve_punch_clock

Approve a worked shift's punch clock record so it is ready for payroll, optionally correcting start and end times for forgotten or wrong punches. Requires write access to be enabled.

Instructions

Approve the punch clock record of a worked shift on the employee's timesheet, so it is ready for payroll in Planday. By default the punched times are approved; start and end correct them, for example a forgotten or wrong punch-in or punch-out. The shift's record is read first: it must be punched in and out and not yet approved, and the end must be after the start. It is read again afterwards and must show it approved. No note or comment is sent, no wage is set and nothing is paid. 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>"
    },
    "name": "planday_approve_punch_clock"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoThe end to approve, local date and time YYYY-MM-DDTHH:MM (default: the punch-out).
startNoThe start to approve, local date and time YYYY-MM-DDTHH:MM (default: the punch-in).
shiftIdYesThe worked shift (from list_shifts or list_punch_clock_records).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the read-validate-write-verify sequence, the exact validation rules, and a post-condition that the record must read back as approved. It also scopes the side effects precisely (no note, no wage set, nothing paid) and states the writes-enabled gate (PLANDAY_ENABLE_WRITES / host enableWrites), which explains why a call may be refused.

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 action and outcome, then preconditions, then side-effect exclusions, then the enablement caveat — a sensible order with no filler sentences. It is dense and on the long side for a 3-parameter tool, but every clause carries information an agent needs.

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 mutation tool with no output schema, the description supplies the outcome contract (re-read must show approved), the failure conditions, and the mutual-exclusion-of-side-effects statement. Nothing an agent needs in order to invoke it safely 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; the description adds meaning by explaining that start/end are correction overrides of the punched times, with the motivating case (forgotten or wrong punch-in/punch-out). The format and default values themselves are already carried by the schema, so the gain is modest.

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 ("Approve the punch clock record of a worked shift on the employee's timesheet") plus the downstream outcome ("ready for payroll"). The resource is distinct from the other approve_* siblings (absence request, shift request), so an agent can select without opening schemas.

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 clear preconditions for use (must be punched in and out, not yet approved, end after start) and default behavior when start/end are omitted. It does not explicitly name a sibling alternative or say when to prefer a different tool, but the conditions are concrete enough to route correctly.

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