Skip to main content
Glama

Count and preview businesses

preview_businesses
Read-onlyIdempotent

Counts businesses by category and place; free on every plan. Filters cover contact channels (email, phone, email or phone, mobile, website, social profiles), delivery, main activity, named emails and closed businesses: true keeps businesses that have it, false those without. Returns the count (= an export's credit cost), the search in words, what it counts, the country's latest data update, contact_coverage (email, phone, both, either, neither) and an export block with a quote, a confirmation sentence and, on paid plans, contact-only alternatives that cost fewer credits. include_sample adds 10 example businesses (emails and phones hidden); page browses 50 at a time.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "filters": "<filters>"
    },
    "name": "preview_businesses"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoBrowse 50 rows per page (includes samples).
filtersYesWho to find. Ids come from find_category and find_location. Needs category_id or category_ids, and country. Omitted filters mean 'either'.
include_sampleNoAlso return 10 example businesses (emails and phones hidden).
include_contact_coverageNoContact coverage comes with every preview up to 20,000 matches. true adds it on bigger searches too (slower: several seconds on a whole country).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description still adds substantial context: free on every plan, the slow-path cost of contact coverage on country-sized searches, hidden emails/phones in samples, and the contents of the returned export block including lower-credit alternatives.

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?

Purpose and pricing are front-loaded, then filters, then return payload, then sample/paging — a logical order. It is one long paragraph that partially restates boolean semantics already in the schema, but almost every clause carries information.

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?

With no output schema and four top-level parameters including a nested filter object, the description compensates by enumerating the return surface (count, search in words, data update date, contact_coverage, export quote/confirmation) and the sample and paging behavior. An agent can call and interpret it without further sources.

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 earns above that by explaining the shared boolean convention (true keeps businesses that have it, false those without) across the contact-channel filters and by framing closed_businesses and page/50-row browsing as behaviors rather than field definitions.

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 opening clause states a specific verb and resource ("Counts businesses by category and place") plus a commercial property ("free on every plan"). The later mention that the count equals an export's credit cost implicitly separates this preview from the export siblings without needing to name them.

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 establishes clear context: free evaluation before paying for an export, and when to enable include_contact_coverage (searches above 20,000 matches, at the cost of several seconds). It does not explicitly say "use start_export to actually retrieve rows" or name alternatives, so it stops short of full routing guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources