Skip to main content
Glama

Search centers

dt_search_centers
Read-onlyIdempotent

Search hospitals, clinics, laboratories, imaging centers, and pharmacies by city, specialty, service, or location, with filters for 24-hour operation, ownership, and online lab admission.

Instructions

Find hospitals, clinics, infirmaries, laboratories, imaging centers and pharmacies with filters.

Cards have the hash id for dt_center. With near_lat/near_lon: a square around the point sorted by distance (dense areas return part of the centers, the rest counted in more_in_area). Otherwise limit cuts the upstream page (on_page). Next: dt_center, dt_reviews(of='center').

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "dt_search_centers"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoCity slug from dt_cities, e.g. 'tehran'.
nameNoPart of Persian name, e.g. 'قلب'.
pageNo1-based page number.
typeNoKind of center, e.g. 'laboratory'.
limitNoCenters per page.
near_latNoLatitude of a point in Iran, e.g. 35.7575.
near_lonNoLongitude of a point in Iran, e.g. 51.4100.
open_24hNoOnly centers open 24 hours.
ownershipNoState (public) or private.
radius_kmNoWith near_*: half-width of the square, km.
specialityNoDepartment slug from dt_specialities, e.g. 'ophthalmologist'.
service_tagNoTag slug from dt_suggest, e.g. 'mri'.
neighborhoodNoSlug from dt_neighborhoods (needs city), e.g. 'pasdaran'.
online_lab_admissionNoOnly labs with online admission.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed42 schema fields changedv0.5.0
    • removedInput schema / properties / city / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 80,
      -    "pattern": "^[a-z0-9][a-z0-9_-]*$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / city / maxLength
      Added value: +80
    • addedInput schema / properties / city / pattern
      Added value: +"^[a-z0-9][a-z0-9_-]*$"
    • addedInput schema / properties / city / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / limit / description
      Previous value: -"Centers per page (the API pages by 20)."New value: +"Centers per page."
    • removedInput schema / properties / name / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 80,
      -    "minLength": 2,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / name / description
      Previous value: -"Part of the center's name in Persian, e.g. 'قلب'."New value: +"Part of Persian name, e.g. 'قلب'."
    • addedInput schema / properties / name / maxLength
      Added value: +80
    • addedInput schema / properties / name / minLength
      Added value: +2
    • addedInput schema / properties / name / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / near_lat / anyOf
      Removed value: -[
      -  {
      -    "maximum": 40,
      -    "minimum": 24,
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / near_lat / maximum
      Added value: +40
    • addedInput schema / properties / near_lat / minimum
      Added value: +24
    • addedInput schema / properties / near_lat / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedInput schema / properties / near_lon / anyOf
      Removed value: -[
      -  {
      -    "maximum": 64,
      -    "minimum": 44,
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / near_lon / maximum
      Added value: +64
    • addedInput schema / properties / near_lon / minimum
      Added value: +44
    • addedInput schema / properties / near_lon / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedInput schema / properties / neighborhood / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 80,
      -    "pattern": "^[a-z0-9][a-z0-9_-]*$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / neighborhood / description
      Previous value: -"Neighborhood slug from dt_neighborhoods, with city only, e.g. 'pasdaran'."New value: +"Slug from dt_neighborhoods (needs city), e.g. 'pasdaran'."
    • addedInput schema / properties / neighborhood / maxLength
      Added value: +80
    • addedInput schema / properties / neighborhood / pattern
      Added value: +"^[a-z0-9][a-z0-9_-]*$"
    • addedInput schema / properties / neighborhood / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / online_lab_admission / description
      Previous value: -"Only laboratories that take online admission bookings."New value: +"Only labs with online admission."
    • changedInput schema / properties / open_24h / description
      Previous value: -"Only centers open around the clock (pharmacies, hospitals)."New value: +"Only centers open 24 hours."
    • removedInput schema / properties / ownership / anyOf
      Removed value: -[
      -  {
      -    "enum": [
      -      "state",
      -      "private"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / ownership / enum
      Added value: +[
      +  "state",
      +  "private"
      +]
    • addedInput schema / properties / ownership / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / radius_km / description
      Previous value: -"With near_lat/near_lon: half-width of the square searched, in km."New value: +"With near_*: half-width of the square, km."
    • removedInput schema / properties / service_tag / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 80,
      -    "pattern": "^[a-z0-9][a-z0-9_-]*$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / service_tag / description
      Previous value: -"Service tag slug from dt_suggest, e.g. 'mri'."New value: +"Tag slug from dt_suggest, e.g. 'mri'."
    • addedInput schema / properties / service_tag / maxLength
      Added value: +80
    • addedInput schema / properties / service_tag / pattern
      Added value: +"^[a-z0-9][a-z0-9_-]*$"
    • addedInput schema / properties / service_tag / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / speciality / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 80,
      -    "pattern": "^[a-z0-9][a-z0-9_-]*$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / speciality / description
      Previous value: -"Department / speciality slug from dt_specialities, e.g. 'ophthalmologist'."New value: +"Department slug from dt_specialities, e.g. 'ophthalmologist'."
    • addedInput schema / properties / speciality / maxLength
      Added value: +80
    • addedInput schema / properties / speciality / pattern
      Added value: +"^[a-z0-9][a-z0-9_-]*$"
    • addedInput schema / properties / speciality / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / type / anyOf
      Removed value: -[
      -  {
      -    "enum": [
      -      "hospital",
      -      "clinic",
      -      "infirmary",
      -      "laboratory",
      -      "imaging",
      -      "pharmacy"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / type / enum
      Added value: +[
      +  "hospital",
      +  "clinic",
      +  "infirmary",
      +  "laboratory",
      +  "imaging",
      +  "pharmacy"
      +]
    • addedInput schema / properties / type / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Changed16 schema fields changedv0.3.0
    • removedInput schema / properties / city / title
      Removed value: -"City"
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / properties / name / title
      Removed value: -"Name"
    • removedInput schema / properties / near_lat / title
      Removed value: -"Near Lat"
    • removedInput schema / properties / near_lon / title
      Removed value: -"Near Lon"
    • removedInput schema / properties / neighborhood / title
      Removed value: -"Neighborhood"
    • removedInput schema / properties / online_lab_admission / title
      Removed value: -"Online Lab Admission"
    • removedInput schema / properties / open_24h / title
      Removed value: -"Open 24H"
    • removedInput schema / properties / ownership / title
      Removed value: -"Ownership"
    • removedInput schema / properties / page / title
      Removed value: -"Page"
    • removedInput schema / properties / radius_km / title
      Removed value: -"Radius Km"
    • removedInput schema / properties / service_tag / title
      Removed value: -"Service Tag"
    • removedInput schema / properties / speciality / title
      Removed value: -"Speciality"
    • removedInput schema / properties / type / title
      Removed value: -"Type"
    • removedInput schema / title
      Removed value: -"dt_search_centersArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "dt_search_centersDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already establish readOnly, idempotent, openWorld and non-destructive, so safety is covered. The description still adds genuine behavior the annotations cannot: geo queries are proximity-sorted over a square and dense areas truncate results with the remainder counted in `more_in_area`, while non-geo queries cut an upstream page tracked by `on_page`. That is real added context, though return shape and filter interaction remain thin.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the one-line purpose, then the geo-vs-page distinction, then follow-up tools. The telegraphic fragments ('Cards have the hash `id` for dt_center', 'Next: dt_center, ...') are efficient but slightly clipped, costing a bit of readability.

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 14-parameter read-only search with no output schema, the description covers return structure (cards, hash `id`, `more_in_area`, `on_page`) and follow-up calls adequately. Gaps remain around default ordering when no geo point or filters are supplied and around how mutually exclusive filters combine.

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%, so per-parameter meaning is already documented. The description earns above baseline by explaining cross-parameter relationships the schema states only in isolation: near_lat/near_lon must be used together, radius_km is the half-width of that square, and limit interacts with `on_page` differently in each mode.

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 first sentence gives a specific verb ('Find') plus the exact resource set (hospitals, clinics, infirmaries, laboratories, imaging centers, pharmacies) and notes it is filter-driven. That vocabulary cleanly separates it from dt_search_doctors and dt_suggest without requiring the schema to be opened.

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 distinguishes the two search modes explicitly: geo mode when near_lat/near_lon are supplied, paged mode otherwise, and it routes the agent forward with 'Next: dt_center, dt_reviews(of="center")'. It does not say when to prefer dt_suggest or dt_search_doctors instead, so the exclusions are incomplete.

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