Skip to main content
Glama

When I Work MCP by usefulapi

Approve, deny or change a time-off request

wheniwork_update_time_off_request
Destructive

Change a time-off request: set its status (0 pending, 1 canceled, 2 accepted/approved, 3 expired, 4 denied) and/or its dates or hours. Reversible — set the status back. start_time and end_time must be given together. When I Work: PUT /2/requests/{request_id}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hoursNoHours of paid time off to use.
statusNoNew status.
end_timeNoNew end, full date-time (give with start_time).
request_idYesThe time-off request id.
start_timeNoNew start, full date-time (give with end_time).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations provide only destructiveHint=true, and the description usefully softens/clarifies that by noting the operation is reversible (set the status back). It also supplies the status code semantics that no structured field carries. It does not discuss permissions, side effects on related shifts, or notification behavior.

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?

A single dense sentence carries the mutable fields, the status table is inline, and the two constraints plus the API endpoint follow without padding. Front-loaded with the core action; nothing is wasted.

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?

No output schema exists, but this is a mutation tool where the important caller knowledge — mutable fields, status values, pairing constraint, reversibility, and endpoint — is all present. It stops short of noting permission requirements or the effect of overwriting existing approved time off.

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 baseline is 3, but the description meaningfully exceeds the schema by decoding the status integer (0 pending, 1 canceled, 2 accepted/approved, 3 expired, 4 denied) — the schema only says 'New status.' with a 0-4 range. It also reinforces the start_time/end_time pairing rule.

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 (Change) and resource (a time-off request), then enumerates exactly what is mutable: status, dates, and hours. It is clearly distinguishable from siblings like wheniwork_create_time_off_request, wheniwork_get_time_off_request, and wheniwork_update_shift.

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 operative context — the full status code mapping, the requirement that start_time and end_time be supplied together, and the fact that the change is reversible. It does not, however, explicitly route the agent away from sibling tools such as the read-only get_time_off_request.

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.