Skip to main content
Glama

Change a shift's clock in or out

fix_shift_times
DestructiveIdempotent

Changes the clock in and/or clock out time of a worked shift (a shift_id from get_timesheets), for example to add a forgotten clock out. The original recorded times are kept and the change is shown as a manager edit in the audit log. Times are local, like 2026-03-31 17:00.

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": {
      "shift_id": "<shift_id>"
    },
    "name": "fix_shift_times"
  }
}

Input Schema

NameRequiredDescriptionDefault
clock_inNoNew clock in time, YYYY-MM-DD HH:mm local
shift_idYes
clock_outNoNew clock out time, YYYY-MM-DD HH:mm local. Adds one to a shift that is still ongoing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag this as destructive, non-read-only, and idempotent, so the safety profile is covered. The description adds value beyond them by disclosing that original times are retained, that the edit is logged as a manager edit in the audit log, and that times are interpreted as local — behavioral facts not present in the structured fields or schema. It does not state permission requirements or what is returned.

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?

Three tight sentences: what it does and the key scoping constraint first, the use case second, then the retention/audit and timezone facts. No redundant or filler wording.

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 three-parameter mutation with annotations covering the safety profile and no output schema, the description supplies the essentials: identifier provenance, edit semantics, audit behavior, and time format. Minor gaps remain around permission requirements, the response shape, and whether at least one time value must be provided.

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?

With 67% schema coverage, clock_in and clock_out are already documented in the schema and the description's local-time note largely restates them. It does add meaning for the undocumented shift_id (source: get_timesheets) and implies partial-update semantics via 'and/or', but it never states what happens if neither time is supplied, a real ambiguity in a schema where only shift_id is required.

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?

The description names a specific verb and resource ('Changes the clock in and/or clock out time of a worked shift') and clarifies the object is an existing shift obtained from get_timesheets, which separates it from creation-oriented siblings like add_worked_shift. An agent can identify the operation and the entity it targets without opening the schema.

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?

It gives a concrete, realistic usage context ('for example to add a forgotten clock out') and routes the agent to get_timesheets for the required identifier. It stops short of explicit exclusions, e.g., that a wholly missing shift should be created with add_worked_shift/add_roster_shift rather than fixed here.

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