Skip to main content
Glama

search_slots

Find available appointment slots by specialty, region, date, and optionally doctor or clinic. Returns booking handles for immediate use.

Instructions

Find available appointment slots for a specialty/region (optionally doctor/clinic).

Each returned slot carries a booking_string — the single-use handle you pass to book_appointment or reschedule_appointment, and a visit_type (Center | Phone | PhoneAdvice). The portal has no visit-type search filter, so to get in-person ("Center") visits, choose an in-person specialty and/or filter the returned slots by visit_type. next_search_date hints the StartTime to use to page further into the future. Re-run this immediately before booking, because a booking_string can expire. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_dateNoOptional latest date (YYYY-MM-DD). Slots after this date are dropped client-side (the portal only honours a start date).
clinic_idsNoOptional clinic IDs.
doctor_idsNoOptional doctor IDs.
patient_idNoMRN; defaults to the account holder.
region_idsYesRegion IDs (e.g. ['204']). Required.
start_dateYesEarliest date to search from, YYYY-MM-DD.
language_idsNoOptional doctor-language IDs (e.g. 4=Polski, 6=Angielski, 60=Ukraiński; resolve others via list_search_filters).
specialty_idsYesSpecialty IDs. Required.
slot_search_typeNoSlot category. 'Standard' (default) for normal consultations; 'DiagnosticProcedure' for diagnostic procedures.Standard

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYes
slotsYes
next_search_dateNoHint for the next StartTime when paging forward in time.
Behavior4/5

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

With no annotations, the description discloses that the tool is 'Read-only', that booking_string is single-use and can expire, that end_date is ignored server-side (dropped client-side), and that next_search_date hints pagination. This provides sufficient behavioral insight beyond the schema.

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?

The description is a single, well-structured paragraph with no redundant sentences. It front-loads the core purpose and follows with necessary details. Every sentence adds value and 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?

Given the complexity (9 parameters, output schema exists), the description covers key aspects: main function, optional filters, pagination hint, expiration, and client-side filtering limitations. It does not explain output schema details (which is acceptable) or error handling, but is complete enough for typical use.

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%, but the description adds value beyond schema descriptions: it explains the purpose of booking_string (carried in each slot), the need for client-side filtering of visit_type, and the expiration hint. This additional context helps the agent understand how to use parameters effectively.

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?

The description clearly states the verb 'Find' and the resource 'available appointment slots', with optional filters. It distinguishes from siblings like book_appointment (which uses the booking_string) and list_appointments (which lists existing appointments). The explanation of booking_string and visit_type further clarifies the tool's role.

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?

Provides explicit usage guidance: 'Re-run this immediately before booking, because a booking_string can expire.' It also advises on filtering visit_type client-side for in-person visits. Although it does not explicitly state when not to use it, the context implies it for finding slots before booking. Alternatives like list_search_filters are mentioned for resolving language IDs.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mattijskersten/medimcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server