Skip to main content
Glama

Search clinic offers

dt_search_offers
Read-onlyIdempotent

Search clinic offers for fixed-price procedures and packages by city, service, doctor, center, or price range; return prices, discounted prices, deposit availability, and consultation IDs.

Instructions

Search clinic offers: fixed-price procedures and packages (ultrasound, laser, dental, check-ups).

Cards give price and discounted price (Toman), pay_online (deposit if payment is deposit_online) and consultation_id for dt_free_slots. No sort. limit cuts the upstream page (on_page). Next: dt_offer, dt_free_slots.

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_offers"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoCity slug from dt_cities, e.g. 'tehran'.
pageNo1-based page number.
limitNoOffers to return from the page.
queryNoPersian service, e.g. 'سونوگرافی'.
centerNoCenter hash id, e.g. 'ZWpOLy'.
doctorNoDoctor hash id ('xqbEWZ') or page URL.
max_priceNoMax price, Toman.
min_priceNoMin price, Toman.
specialityNoSlug, e.g. 'cardiologist'.
service_tagNoTag slug, e.g. 'rhinoplasty'.
neighborhoodNoSlug, needs city, e.g. 'pasdaran'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed45 schema fields changedv0.5.0
    • removedInput schema / properties / center / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 300,
      -    "minLength": 6,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / center / description
      Previous value: -"Only offers at this place (hash id), e.g. 'ZWpOLy'."New value: +"Center hash id, e.g. 'ZWpOLy'."
    • addedInput schema / properties / center / maxLength
      Added value: +300
    • addedInput schema / properties / center / minLength
      Added value: +6
    • addedInput schema / properties / center / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • 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"
      +]
    • removedInput schema / properties / doctor / anyOf
      Removed value: -[
      -  {
      -    "description": "Doctor hash id ('xqbEWZ') or page URL ('https://doctoreto.com/doctor/dr-kambiz-parazaran/xqbEWZ').",
      -    "maxLength": 300,
      -    "minLength": 6,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / doctor / description
      Previous value: -"Only offers of this doctor (hash id or page URL)."New value: +"Doctor hash id ('xqbEWZ') or page URL."
    • addedInput schema / properties / doctor / maxLength
      Added value: +300
    • addedInput schema / properties / doctor / minLength
      Added value: +6
    • addedInput schema / properties / doctor / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • changedInput schema / properties / limit / description
      Previous value: -"Offers to return from the page (the API pages by about 40)."New value: +"Offers to return from the page."
    • removedInput schema / properties / max_price / anyOf
      Removed value: -[
      -  {
      -    "maximum": 10000000000,
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / max_price / description
      Previous value: -"Maximum price in Toman, e.g. 2000000."New value: +"Max price, Toman."
    • addedInput schema / properties / max_price / maximum
      Added value: +10000000000
    • addedInput schema / properties / max_price / minimum
      Added value: +0
    • addedInput schema / properties / max_price / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • removedInput schema / properties / min_price / anyOf
      Removed value: -[
      -  {
      -    "maximum": 10000000000,
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / min_price / description
      Previous value: -"Minimum price in Toman, e.g. 1000000."New value: +"Min price, Toman."
    • addedInput schema / properties / min_price / maximum
      Added value: +10000000000
    • addedInput schema / properties / min_price / minimum
      Added value: +0
    • addedInput schema / properties / min_price / type
      Added value: +[
      +  "integer",
      +  "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, e.g. 'pasdaran'."New value: +"Slug, 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"
      +]
    • removedInput schema / properties / query / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 80,
      -    "minLength": 2,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / query / description
      Previous value: -"Service in Persian, e.g. 'سونوگرافی' or 'لیزر'."New value: +"Persian service, e.g. 'سونوگرافی'."
    • addedInput schema / properties / query / maxLength
      Added value: +80
    • addedInput schema / properties / query / minLength
      Added value: +2
    • addedInput schema / properties / query / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • 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, e.g. 'rhinoplasty'."New value: +"Tag slug, e.g. 'rhinoplasty'."
    • 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: -"Speciality slug, e.g. 'cardiologist'."New value: +"Slug, e.g. 'cardiologist'."
    • 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"
      +]
  2. Changed14 schema fields changedv0.3.0
    • removedInput schema / properties / center / title
      Removed value: -"Center"
    • removedInput schema / properties / city / title
      Removed value: -"City"
    • changedInput schema / properties / doctor / anyOf
      Previous value: -[
      -  {
      -    "description": "Doctor hash id from a search ('xqbEWZ') or the doctor's page URL ('https://doctoreto.com/doctor/dr-kambiz-parazaran/xqbEWZ'). The slug alone cannot be resolved.",
      -    "maxLength": 300,
      -    "minLength": 6,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Doctor hash id ('xqbEWZ') or page URL ('https://doctoreto.com/doctor/dr-kambiz-parazaran/xqbEWZ').",
      +    "maxLength": 300,
      +    "minLength": 6,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / doctor / title
      Removed value: -"Doctor"
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / properties / max_price / title
      Removed value: -"Max Price"
    • removedInput schema / properties / min_price / title
      Removed value: -"Min Price"
    • removedInput schema / properties / neighborhood / title
      Removed value: -"Neighborhood"
    • removedInput schema / properties / page / title
      Removed value: -"Page"
    • removedInput schema / properties / query / title
      Removed value: -"Query"
    • removedInput schema / properties / service_tag / title
      Removed value: -"Service Tag"
    • removedInput schema / properties / speciality / title
      Removed value: -"Speciality"
    • removedInput schema / title
      Removed value: -"dt_search_offersArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "dt_search_offersDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, open-world, non-destructive, so the safety profile is covered. The description adds genuinely non-obvious behavior: what each card contains (price, discounted price in Toman, pay_online deposit tied to payment=deposit_online, consultation_id), that there is no sort, and that limit truncates the upstream page rather than the result universe.

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?

Very compact and front-loaded: purpose first, then card contents, then the no-sort and limit caveats, then next steps. The backticked tokens and parentheticals are slightly telegraphic but each line carries information; nothing is clearly wasted.

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?

With 11 parameters, no output schema, and no required fields, the definition does well by describing the returned card fields and paging caveat. The main residual gap is that it does not explain how the many optional filters (speciality, service_tag, neighborhood, doctor, center) combine or override each other, leaving an agent to infer filter semantics from the schema alone.

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 baseline is 3. The description goes beyond the schema by explaining that limit cuts the upstream page ('on_page') rather than paging the full result set, which materially changes how an agent should use page+limit together — a real semantic addition.

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?

The description opens with a specific verb+resource ('Search clinic offers') and immediately qualifies what an offer is ('fixed-price procedures and packages') with concrete examples (ultrasound, laser, dental, check-ups). An agent can tell this apart from dt_search_doctors/dt_search_centers by the resource type, though the description never explicitly names those siblings as alternatives.

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?

The 'Next: dt_offer, dt_free_slots' line gives useful follow-up routing, but there is no explicit guidance on when to choose this over sibling search tools or what preconditions exist (e.g., needing a city slug from dt_cities is only in the schema). Usage is implied rather than stated.

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