Skip to main content
Glama

Restore Time Off

restore_time_off

Puts back a time-off request the signed-in person withdrew, exactly as it was: the undo for withdrawing it. A pending request goes back to its approvers. Approved leave the person cancelled can be put back only within a few minutes; after that, or when a manager or HR cancelled it, the request has to be filed again.

Input Schema

NameRequiredDescriptionDefault
userIdNoNot needed when signed in: these tools act for the signed-in person, and any other ID is refused. Applies only to a workspace connection with no signed-in user, naming whose time off this is.
requestIdYesThe time-off request id, as a time-off read or a filed request gave it.

Output Schema

NameRequiredDescriptionDefault
statusNo
restoredNo
requestIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare this is not read-only, not destructive, and not idempotent; the description supplies the meaningful behavioral detail behind that profile — eligibility windows, who cancelled, and the re-file fallback. It could add slightly more on whether a repeated restore errors out, which is relevant given idempotentHint=false.

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?

Two sentences, zero filler, with the core action and undo relationship front-loaded before the eligibility caveats.

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?

An output schema exists so return values need no explanation, and the description covers eligibility, destination after restore, and failure path. Nothing an agent needs to call it correctly is missing.

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 description coverage is 100%, so requestId and userId are already fully documented, including the signed-in-user semantics. The description adds no parameter-level syntax or format detail, which is the expected baseline when the schema does the heavy lifting.

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 (restore) and resource (a time-off request), and explicitly frames itself as 'the undo for withdrawing it', which cleanly separates it from the sibling withdraw_time_off.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-it-works conditions: pending requests go back to approvers, person-cancelled approved leave only within a few minutes, and manager/HR-cancelled requests must be refiled. The agent knows both the eligible cases and the fallback.

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