Skip to main content
Glama

Approve leave request

rotacloud_approve_leave_request
DestructiveIdempotent

WRITE: approve a pending leave request (it becomes booked leave and the employee is notified). POST /leave_requests/{id}/approve.

Input Schema

NameRequiredDescriptionDefault
request_idYesLeave request id.
admin_messageNoMessage to the employee.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare idempotentHint and destructiveHint, so the safety profile is partially covered. The description adds real value beyond that: it flags the operation as a WRITE, states the resulting state transition to booked leave, discloses the employee notification side effect, and gives the underlying endpoint.

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 with the WRITE label first, then the effect, then the endpoint. No filler or redundancy; every clause earns its place.

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 two-parameter mutation with no output schema and existing annotations, the description covers operation type, effect, side effect, and endpoint. Adequate to call correctly; only minor gaps (e.g. permission/auth requirements, what an already-approved request yields) remain.

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 both request_id and admin_message are already documented in the schema. The description adds no syntax, format, or constraint detail beyond what the schema provides, which is the expected baseline when the schema carries the load.

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 (approve a pending leave request) and names the resulting state change (becomes booked leave). This clearly distinguishes it from the sibling rotacloud_deny_leave_request and from rotacloud_create_leave_request.

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?

The word 'pending' supplies a precondition that tells the agent when this tool applies, giving clear usage context. It stops short of explicitly naming the alternative (deny_leave_request) as the action for non-approval cases, so it is not a full when/when-not statement.

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.