Skip to main content
Glama

Add a worked shift

add_worked_shift

Adds a shift someone worked but didn't clock, as a manager entry. Times are local, like 2026-03-31 08:00. It can't overlap another of their shifts.

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": {
      "person_id": "<person_id>",
      "clock_in": "<clock_in>",
      "clock_out": "<clock_out>"
    },
    "name": "add_worked_shift"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idNoThe job they worked on (from list_jobs), if any
clock_inYesYYYY-MM-DD HH:mm local
clock_outYesYYYY-MM-DD HH:mm local
person_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only assert readOnlyHint=false, destructiveHint=false and idempotentHint=false; the description adds real behavioral context beyond that, namely that times are interpreted as local and that a shift cannot overlap another of the person's shifts. It still doesn't say what happens on overlap (error vs. rejection) 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 short sentences, front-loaded with the purpose, then format, then the key constraint. Every sentence carries distinct information with no redundancy.

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 4-parameter mutation with annotations covering its safety profile and no output schema, the description covers purpose, timezone handling and the overlap constraint. It is slightly thin on error/return behavior when the overlap rule is violated, but otherwise complete enough to call correctly.

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?

Schema coverage is 75%, so the schema already documents clock_in, clock_out and job_id, including the YYYY-MM-DD HH:mm local format. The description reinforces the local-time interpretation and gives a concrete example, but adds no new meaning for person_id or for the overlap validation at the parameter level.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Adds a shift someone worked but didn't clock') plus the entry mode ('as a manager entry'), which separates it from roster/scheduling tools like add_roster_shift. It does not name a sibling explicitly, so it stops short of 5.

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 clear triggering condition: the person worked but did not clock, and the caller acts as a manager. It does not explicitly exclude alternatives (e.g., use add_roster_shift for future scheduled shifts), so the when-not guidance is implied rather than stated.

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