Skip to main content
Glama

DoctoFam Medical Clinic

List a patient's or a day's appointments

list_appointments
Read-onlyIdempotent

Use this when someone asks when a patient is booked, or what is booked at the clinic on a given day. Returns appointment ids with patient, clinic and provider ids, times, status, edit time and how many procedures each has, latest first, up to 100. Not for counting how busy days are, nor for procedure names, notes or any medical detail.

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of appointments to return (default 20, maximum 100)
endTimeNoOnly appointments ending before this ISO 8601 time
clinicIdNoOnly appointments at this clinic, by an id from list_clinics; every clinic when absent
patientIdNoOnly appointments of this patient, by an id from find_patient
startTimeNoOnly appointments starting at or after this ISO 8601 time. Without a patientId, give a startTime and endTime at most one day apart

Output Schema

NameRequiredDescriptionDefault
countYes
hasMoreYes
appointmentsYesAppointments, latest start first. Procedure names, notes, reminders, patient names and contact details are never returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the read-only annotations, it discloses returned fields, ordering ('latest first'), a cap of 100, and that procedure counts are included but medical detail is not. It does not discuss permissions or pagination, but those are minor for this read-only list operation.

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?

Three sentences are front-loaded with the use case, then return shape, then exclusions. There is no redundant wording and every sentence adds useful selection or behavioral information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only list tool with rich annotations, full schema coverage, and an output schema, the description covers when to call it, what comes back, ordering, limits, and what it must not be used for. Nothing essential for correct invocation is missing.

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 the input schema already documents limit, time range, clinicId, and patientId thoroughly. The description confirms the two main query modes but adds little parameter-level meaning beyond what the schema provides.

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 states a specific verb and resource: listing appointments by patient or by clinic/day. It also clearly separates this tool from related needs such as counting busy days and retrieving procedure names or medical detail.

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?

It gives explicit when-to-use guidance ('when someone asks when a patient is booked, or what is booked at the clinic on a given day') and clear exclusions. It does not name the specific alternative tools, so an agent still has to infer which sibling handles counting or procedure details.

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.

Resources