Skip to main content
Glama

scrape_zomato

Search Zomato for restaurants in a city, optionally filtered by cuisine or name, and retrieve structured restaurant data including rating, price, address, and URL.

Instructions

Search Zomato for restaurants in a city and return a list of restaurant records.

Scrapes Zomato's public restaurant listings over the network for the given city, optionally filtered by a cuisine or name term. Each result is a dict with fields such as name, cuisine, rating, price_for_two, address, and url; the exact keys depend on what Zomato exposes for each listing. Returns a list of these dicts ordered as Zomato ranks them, capped at max_results. Returns an empty list if the city is unknown or no restaurants match the query. Requires outbound network access; results reflect live Zomato data at call time and may vary between calls.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityYesString city name to search within. Example: "Bangalore". Required, no default.
queryNoOptional string cuisine or restaurant search term to filter results. Example: "biryani". Defaults to None (returns all restaurants for the city).
max_resultsNoInteger maximum number of restaurants to return. Example: 20. Defaults to 50.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
countNo
errorsNo
scraperNo
source_urlsNo
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It explicitly states network access ('Requires outbound network access'), live data variability ('results reflect live Zomato data at call time and may vary between calls'), and edge-case behavior ('Returns an empty list if the city is unknown'). It does not mention rate limits or potential blocking, but the disclosed behavior is substantial and helpful for an agent.

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?

The description is concise, front-loaded with the core purpose, and every sentence adds value. It covers purpose, method, filters, output format, ordering, caps, edge cases, and network dependency without unnecessary fluff. It is well-structured and easy to parse.

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?

The description provides a complete picture for a scraped-list tool: it states what it does, how it works (network scraping), what output to expect (dict list with example fields, ordering), how to control result count (max_results), and failure modes (unknown city, no matches). Given 3 parameters and no output schema shown, this is sufficiently thorough for an agent to invoke correctly.

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 the baseline is 3. The description adds meaningful context beyond the schema: query is described as 'a cuisine or name term' and max_results is described as capping the list. It also clarifies the output structure (list of dicts with example fields), which indirectly informs parameter meaning. This exceeds baseline.

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 clearly states the tool's function: 'Search Zomato for restaurants in a city and return a list of restaurant records.' It uses a specific verb (search/scrape) with a specific resource (Zomato restaurants) and highlights distinct features like city-based search and optional filters. This distinguishes it from sibling tools such as scrape_url or search_ubereats.

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 description implies usage context ('Search Zomato for restaurants in a city') but does not explicitly mention when to use this tool versus alternatives or provide exclusion criteria. It lacks statements like 'for restaurant listings from Zomato, use this' or 'not for other food delivery services.' No alternatives are referenced, so guidance is only implied.

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

Install Server

Other Tools

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/mldsveda/PyScrappy'

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