Skip to main content
Glama

Add a rostered shift

add_roster_shift

Adds a shift to a roster week for someone (ids from get_roster and list_people). It is saved as an unpublished change: nobody is told until a manager publishes the week in the Timeclock.Kiwi portal. A shift ending at or before its start ends the next day.

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": {
      "roster_id": "<roster_id>",
      "person_id": "<person_id>",
      "date": "<date>",
      "start_time": "<start_time>",
      "end_time": "<end_time>"
    },
    "name": "add_roster_shift"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesYYYY-MM-DD
noteNo
end_timeYesHH:mm, 24 hour
person_idYes
roster_idYesWhich roster (from get_roster's rosters)
start_timeYesHH:mm, 24 hour

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare a non-destructive, non-idempotent, closed-world write, and the description adds genuinely new behavior: the write lands as an unpublished change and no one is notified until a manager publishes the week. The cross-midnight rule further discloses how ambiguous times are resolved. It does not mention permissions or duplicate-shift handling, keeping it below a 5.

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 action and its id sources, then the side effect, then the time edge case. No filler or restatement of the title.

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 6-parameter mutation with annotations and no output schema, the description covers the essential unknowns: id provenance, publication gating, notification suppression, and time ambiguity. Only permission requirements and what happens on duplicate or overlapping shifts are unaddressed.

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 67%, so the description needs to compensate on the undocumented parts, and it does add real meaning: where roster_id/person_id values come from and the cross-midnight interpretation of start_time/end_time ('a shift ending at or before its start ends the next day'). The note parameter remains unexplained in both places.

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 ('Adds a shift to a roster week') scoped to scheduled/rostered work, which distinguishes it from the worked-shift sibling by implication of the resource itself. It also says where the ids come from, so an agent knows the object graph without opening another 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?

Gives concrete prerequisite guidance ('ids from get_roster and list_people'), which is clear context for how to call it correctly. It does not explicitly contrast with add_worked_shift or state when not to use it, so it stops short of full routing guidance.

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