Skip to main content
Glama

Search doctors

pz_search_doctors
Read-onlyIdempotent

Search Iranian doctors, hospitals, and clinics by city, specialty, name, gender, visit type, and degree, then compare ratings, insurance, prices, and free appointment slots.

Instructions

Search doctors (or hospitals and clinics) by city, specialty, name, visit type, gender and degree, sorted and paged.

Cards carry url, image, rating, insurances, first free slots, online_visit (price in Toman) and slot-tool ids (missing service_id: pz_doctor).

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": "pz_search_doctors"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoCity slug, e.g. 'tehran' or 'shiraz' (pz_suggest finds others); 'ir' = all Iran.ir
pageNo
sortNo'earliest' drops doctors without free slots.best
textNoPersian doctor name, disease or center.
limitNo
degreeNoAcademic degree, e.g. 'فوق تخصص' (subspecialist).
genderNoDoctor's gender.
center_idNoOnly this hospital or clinic's doctors: center_id from pz_center, e.g. '204'.
specialtyNoSpecialty slug from pz_suggest, e.g. 'cardiovascular' or 'exp-cardiovascular-diseases'.
work_timeNoPart of day worked.
visit_typeNo'in_person' = office booking.any
centers_onlyNoList the city's hospitals and clinics instead (ignores specialty).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv0.5.0
    • changedInput schema / properties / center_id / description
      Previous value: -"Only doctors of one hospital or clinic: its center_id from pz_center, e.g. '204'."New value: +"Only this hospital or clinic's doctors: center_id from pz_center, e.g. '204'."
    • changedInput schema / properties / centers_only / description
      Previous value: -"List hospitals and clinics of the city instead of doctors (ignores specialty)."New value: +"List the city's hospitals and clinics instead (ignores specialty)."
    • changedInput schema / properties / city / description
      Previous value: -"City slug from pz_suggest, e.g. 'tehran'; 'ir' = all of Iran (best for online visits and names)."New value: +"City slug, e.g. 'tehran' or 'shiraz' (pz_suggest finds others); 'ir' = all Iran."
    • removedInput schema / properties / limit / description
      Removed value: -"Results per page (the site caps it at 50)."
    • removedInput schema / properties / page / description
      Removed value: -"1-based page number."
    • changedInput schema / properties / sort / description
      Previous value: -"'earliest' = nearest free slot first (drops doctors without free slots)."New value: +"'earliest' drops doctors without free slots."
    • changedInput schema / properties / specialty / description
      Previous value: -"Specialty slug from pz_suggest: a group ('cardiovascular') or an expertise ('exp-cardiovascular-diseases')."New value: +"Specialty slug from pz_suggest, e.g. 'cardiovascular' or 'exp-cardiovascular-diseases'."
    • changedInput schema / properties / text / description
      Previous value: -"Persian text: doctor name ('هدیه جباری'), disease or center."New value: +"Persian doctor name, disease or center."
    • changedInput schema / properties / visit_type / description
      Previous value: -"'online' = online visit, 'in_person' = office booking."New value: +"'in_person' = office booking."
    • changedInput schema / properties / work_time / description
      Previous value: -"Works in that part of the day."New value: +"Part of day worked."
  2. Changed22 schema fields changedv0.3.0
    • changedInput schema / properties / center_id / description
      Previous value: -"Only doctors of one hospital or clinic: its center_id from pz_center or a center result, e.g. '204'."New value: +"Only doctors of one hospital or clinic: its center_id from pz_center, e.g. '204'."
    • removedInput schema / properties / center_id / title
      Removed value: -"Center Id"
    • removedInput schema / properties / centers_only / title
      Removed value: -"Centers Only"
    • changedInput schema / properties / city / description
      Previous value: -"English city slug from pz_suggest, e.g. 'tehran', 'isfahan', 'mashhad'; 'ir' = all of Iran (best for online visits and name searches)."New value: +"City slug from pz_suggest, e.g. 'tehran'; 'ir' = all of Iran (best for online visits and names)."
    • removedInput schema / properties / city / title
      Removed value: -"City"
    • changedInput schema / properties / degree / description
      Previous value: -"Academic degree, e.g. 'فوق تخصص' (subspecialist), 'متخصص' (specialist), 'فلوشیپ' (fellowship)."New value: +"Academic degree, e.g. 'فوق تخصص' (subspecialist)."
    • removedInput schema / properties / degree / title
      Removed value: -"Degree"
    • removedInput schema / properties / gender / title
      Removed value: -"Gender"
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / properties / page / title
      Removed value: -"Page"
    • changedInput schema / properties / sort / description
      Previous value: -"Order. 'earliest' = nearest free appointment first (drops doctors without free slots); 'cheapest_online' = cheapest online visit first."New value: +"'earliest' = nearest free slot first (drops doctors without free slots)."
    • removedInput schema / properties / sort / title
      Removed value: -"Sort"
    • changedInput schema / properties / specialty / description
      Previous value: -"Specialty slug from pz_suggest: a group ('cardiovascular', 'dermatology', 'general-practitioner') or an expertise ('exp-cardiovascular-diseases')."New value: +"Specialty slug from pz_suggest: a group ('cardiovascular') or an expertise ('exp-cardiovascular-diseases')."
    • removedInput schema / properties / specialty / title
      Removed value: -"Specialty"
    • changedInput schema / properties / text / description
      Previous value: -"Free text in Persian: a doctor's name ('هدیه جباری'), a disease or a center, e.g. 'آزمایشگاه'."New value: +"Persian text: doctor name ('هدیه جباری'), disease or center."
    • removedInput schema / properties / text / title
      Removed value: -"Text"
    • changedInput schema / properties / visit_type / description
      Previous value: -"'online' = doctors with an online visit (phone or messenger), 'in_person' = office booking."New value: +"'online' = online visit, 'in_person' = office booking."
    • removedInput schema / properties / visit_type / title
      Removed value: -"Visit Type"
    • changedInput schema / properties / work_time / description
      Previous value: -"Doctor works in that part of the day."New value: +"Works in that part of the day."
    • removedInput schema / properties / work_time / title
      Removed value: -"Work Time"
    • removedInput schema / title
      Removed value: -"pz_search_doctorsArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "pz_search_doctorsDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so safety is covered. The description does add real behavioral value by disclosing the shape of returned cards (url, image, rating, insurances, first free slots, online_visit price in Toman, slot-tool ids) and the caveat that service_id is absent and must come from pz_doctor. It still says nothing about pagination limits or result-count behavior beyond that.

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?

Two sentences, front-loaded with the verb and facets, with no filler. The second sentence is dense but earns its place by describing card contents; the stray line-break formatting is cosmetic rather than wasteful.

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

Completeness3/5

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

With 12 optional parameters and no output schema, the description carries more burden than usual, and it does cover return-card fields, which is the biggest gap. It remains incomplete on paging behavior (page/limit interaction) and on how the facets interact (e.g. centers_only ignoring specialty, which is only stated in the schema).

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 83%, so the schema already explains nearly every parameter, including defaults and enum meanings. The description adds only a compressed restatement of the same facets and one genuinely useful gap note (missing service_id), so it sits at the baseline rather than enriching parameter meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Search doctors (or hospitals and clinics)") and enumerates the filterable facets: city, specialty, name, visit type, gender, degree, plus sorted and paged. An agent can distinguish it from most siblings, though the description never names the alternatives (pz_first_available, pz_suggest) it should be chosen over.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implicit routing exists: it points to pz_doctor when follow-up detail is needed, and the schema references pz_suggest for city and specialty slugs. However, the description itself gives no explicit when-to-use or when-not-to-use guidance against sibling search/availability tools such as pz_first_available or pz_free_slots, leaving selection to inference.

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