Skip to main content
Glama

update_leave_period

Idempotent

Change an existing leave period by moving, shortening, or converting full days to half days, and optionally delete declarations over affected dates.

Instructions

Change a leave period: move it, shorten it, turn a full day into a half one.

Input Schema

NameRequiredDescriptionDefault
idYesThe leave period's identifier.
end_atNoA new last day.
end_typeNoHow much of the last day is off.
start_atNoA new first day.
start_typeNoHow much of the first day is off.
descriptionNoA new description.
delete_declarationsNoDelete the declarations already made over those days.

Output Schema

NameRequiredDescriptionDefault
idYesThe leave period's identifier.
end_atNoThe last day of the leave.
user_idNoThe user on leave.
end_typeNo`full`, `am` or `pm`.
start_atNoThe first day of the leave.
edited_byNoWho last edited the leave period.
created_atNoWhen the leave period was created.
start_typeNo`full`, `am` or `pm`.
updated_atNoWhen the leave period was last updated.
descriptionNoWhy the person is away.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is largely covered. The description adds the mutation semantics (shifting edges, shortening, half-day conversion) but says nothing about the side effect of clearing existing declarations or about validation/conflict behavior on overlapping periods.

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 front-loaded sentence that names the resource, the verb, and three concrete mutation patterns with zero filler. Nothing could be cut without losing meaning.

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?

With a full output schema, complete parameter descriptions, and rich annotations, the only real gap is that the destructive sub-action (delete_declarations wiping existing declarations) and the effect of omitted optional fields are not surfaced in prose. For an update tool this is close to complete but leaves one behaviorally significant detail to the schema.

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 every parameter is already documented in structured form and the baseline is 3. The description reinforces start_at/end_at/start_type/end_type semantics via 'move it, shorten it, half day', but adds nothing about description or delete_declarations beyond what the schema states.

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?

States a specific verb-resource pair (change a leave period) and enumerates concrete operations: move, shorten, convert full day to half day. The verb 'change' implicitly separates it from create_leave_period and delete_leave_period siblings, though those alternatives are never named.

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

Usage Guidelines3/5

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

Usage is only implied: the required 'id' and the word 'change' signal this operates on an existing leave period rather than creating one. There is no explicit when-to-use/when-not guidance, no mention of reading the period first with get_leave_period, and no pointer to delete_leave_period for removal.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.