Skip to main content
Glama

create_leave_period

Declare a leave period for a user to record holidays or absences. Specify start and end dates, half-days, and optionally delete existing time declarations.

Instructions

Declare a leave period (days off) for a user, the current one by default. Use it for holidays and absences; use update_leave_period to move one and list_leave_periods to check existing ones first. Half days are expressed with start_type and end_type: a single afternoon off is the same day twice, pm to pm. Gryzzly refuses a leave over days that already carry time unless delete_declarations is true, which deletes that time irreversibly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userNoWhose leave it is, by name, email or id. Defaults to the current user.
end_atNoLast day off. Defaults to `start_at`, which is one day off.
end_typeNoHow much of the last day is off. Defaults to `full`.
start_atYesFirst day off.
start_typeNoHow much of the first day is off. Defaults to `full`.
descriptionNoWhy the person is away.
delete_declarationsNoDelete the declarations already made over those days. Defaults to false, which makes Gryzzly refuse the leave when time is already declared.

Output Schema

TableJSON 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

A4.6/5.0
Behavior4/5

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

Adds real behavioral context beyond the annotations: the refusal rule when time is already declared over those days, and that delete_declarations removes that time irreversibly. There is a mild tension with destructiveHint=false, since a conditional irreversible deletion is disclosed, though it defaults to false — the description is more informative than the hint, not contradictory, but the mismatch is worth noting.

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?

Front-loaded with purpose, then alternative routing, then the half-day encoding rule, then the destructive caveat. Four dense sentences with no filler; each clause carries distinct information.

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?

Output schema exists, so return values need no explanation, and the mutation semantics are well covered. Remaining minor gaps: no indication of permission requirements for declaring leave on behalf of another user, and no date/timezone format hint for start_at, though the schema carries the parameter-level detail.

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 the baseline is 3, but the description adds non-obvious semantics: the half-day encoding rule ('a single afternoon off is the same day twice, pm to pm') and the consequence of delete_declarations in relation to the refusal behavior. Those are genuinely useful beyond the per-property descriptions.

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 ('Declare a leave period (days off) for a user'), including the default scope ('the current one by default'). It immediately separates itself from update_leave_period and list_leave_periods, so an agent can route without opening sibling schemas.

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?

Explicitly says when to use it ('for holidays and absences') and names the two most confusable alternatives with their selecting conditions: update_leave_period to move an existing one, list_leave_periods to check existing ones first. That is exactly the routing guidance an agent needs before calling a create tool on a resource that can conflict with existing data.

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