First call
tools/list returns the tools your credential can use, each with its description, input schema and
annotations. Your client calls it when it connects; you can call it yourself:
200), abridged to one tool:
Time-off tools
Dates are
YYYY-MM-DD. Day types are FULL_DAY, AM (morning) and PM (afternoon), for half days.
get_time_off_balances
Every active policy you are assigned to, with the balance left in the current cycle and the days taken, requested and accrued. Use a policy’sid as policy_id in the tools below.
list_my_time_off
Your requests with their status (pending, approved, declined, cancelled), dates, days, policy, each approver’s decision and attachments.preview_time_off
Which days count against the balance once weekends and public holidays are left out, how many that is, and the balance left afterwards. Nothing is created; call it beforerequest_time_off.
request_time_off
Books time off and notifies the approvers, or approves it straight away when the policy needs no approval. Rejected when it would overdraw the balance, overlaps another request, misses the notice period, or falls outside the dates you may book.update_time_off
Changes a pending or approved request; a changed request goes back to its approvers. Send only what changes. The policy cannot be changed.cancel_time_off
Cancels a pending, approved or declined request and returns its days to the balance. Only an admin can cancel leave that has already started. Marked destructive.approve_time_off
Records your approval when it is your turn as approver. Once every approver has approved, the days are deducted and the employee is notified. An admin can approve in place of the approver whose turn it is. Nobody can approve their own request.decline_time_off
Declines a request waiting on you, returns its days to the balance and notifies the employee. Marked destructive.get_time_off_document
Returns an attachment, or the generated request, approval or decline document, of a request. Open to the request’s employee, its approvers and admins.How it behaves
Your credential decides the catalog
tools/list only returns tools your credential’s scopes allow, capped by your role. A tool you cannot use
is not listed at all, so it never costs the assistant context.
Destructive tools are marked
cancel_time_off and decline_time_off carry destructiveHint: true, and read tools carry readOnlyHint: true.
Clients that honour the hints ask before running a destructive tool and may run read tools without asking.
Errors come back as tool results
A rejected call returnsisError: true with the reason as text, the same message A-Char shows, for example
You already have a time off request for the period 22 December 2026 to 23 December 2026. Please adjust your request. The assistant can explain it or retry with other arguments. An unexpected failure returns
Something went wrong. Try again later.
Documents come back as files
get_time_off_document returns images as MCP image content and PDFs as an embedded resource, so clients
that render them show the document inline.
employee_id acts for someone else
Time-off tools default to you. Passing employee_id acts for that person, and only works when you are an
admin or their approver.
Related
- MCP: a first tool call over plain HTTP and how the server behaves.
- Setup: per-client configuration, API keys, and fixes when it fails.
- API reference: the endpoint behind every tool.