Skip to main content
Glama
leomengineer

clinic-mcp-server

by leomengineer

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CLINIC_TZNoTimezone for date windows / naive datetimesAmerica/Los_Angeles
DATABASE_URLNoShared Postgres (same as RAG app)postgresql://rag:rag@localhost:5432/rag
SIMILARITY_FLOORNoDense cosine gate for doc search0.35

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_clinic_docsA

Hybrid-search the clinic knowledge base (pgvector + full-text, RRF-fused).

Returns cited chunks with source filename and scores when the best dense
similarity clears the SIMILARITY_FLOOR gate. Below that floor, returns
status=no_relevant_sources with an empty chunk list — do not fabricate
an answer from weak matches.
get_patient_recordA

Look up a patient by id: name, insurance, last visit, and next confirmed appointment.

Raises a tool error if the patient does not exist or the database is down —
never returns an empty success that could be mistaken for 'no appointments'.
list_appointmentsA

List confirmed appointments between date_from and date_to (inclusive).

date_to must be on or after date_from. Empty list with status=ok means no
confirmed appointments in that window — distinct from a database failure,
which raises a tool error.
create_appointmentA

Propose a new appointment — does NOT confirm it.

Inserts a row into appointment_requests with status=pending and returns
pending_approval. A human must approve before anything lands on the
confirmed appointments calendar. Calling this twice creates two pending
requests; it never silently books.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/leomengineer/clinic-mcp-server'

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