Skip to main content
Glama

fresha_search_count

Read-only

Count the Fresha venues that match one search filter set, without fetching any venue: returns the venue count (and Fresha's display string such as 5.9K+), the search centre the gateway used and the normalized filters. Use it for market sizing and territory analysis instead of paging fresha_search_venues; the count equals that tool's count for the same filters. Accepts the same filters: latitude/longitude, query, min_price, max_price, distance_max_km (0-1000), service_gender and awards (comma-separated enum lists), verified_only, has_deals, has_group_appointments, availability_date (YYYY-MM-DD), availability_start_time_from/to (HH:MM) with availability_time_zone (IANA), and the treatment ids from fresha_taxonomy. A zero count is a valid answer.

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

Input Schema

NameRequiredDescriptionDefault
queryNoOptional free-text query matched by Fresha's own venue search.
awardsNoOptional award filter: one or more of BEST_IN_CLASS, HIGHLY_RECOMMENDED, comma-separated.
latitudeNoOptional latitude of the search centre. Supply it together with longitude; with neither, the gateway uses its own default centre.
has_dealsNoOptional: true counts only venues advertising deals.
longitudeNoOptional longitude of the search centre. Supply it together with latitude.
max_priceNoOptional maximum service price in the market's own currency. Must not be negative or below min_price.
min_priceNoOptional minimum service price in the market's own currency.
verified_onlyNoOptional: true counts only Fresha-verified venues.
service_genderNoOptional venue gender focus: one or more of EVERYONE, MALE, FEMALE, comma-separated.
distance_max_kmNoOptional maximum distance in kilometres from the search centre, greater than 0 and at most 1000. Narrows or widens the gateway's default search area.
treatment_tag_idNoOptional taxonomy tag id in the form tag:<slug>, from fresha-taxonomy.
availability_dateNoOptional date YYYY-MM-DD: count only venues with an open slot that day.
treatment_type_idNoOptional taxonomy treatment id in the form treatment:<category-slug>/<type-slug>, from fresha-taxonomy.
treatment_category_idNoOptional taxonomy category id in the form category:<slug>, from fresha-taxonomy.
availability_time_zoneNoOptional IANA time zone for the availability window.
has_group_appointmentsNoOptional: true counts only venues accepting group appointments.
availability_start_time_toNoOptional latest appointment start time, 24-hour HH:MM.
availability_start_time_fromNoOptional earliest appointment start time, 24-hour HH:MM.

Output Schema

NameRequiredDescriptionDefault
dataYesThe tool result payload (shape varies per tool; see each tool's docs resource).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, and the description adds genuinely new behavior: no venue records are fetched, and the response carries the count, Fresha's display string (e.g. 5.9K+), the resolved search centre and the normalized filters. That tells the agent both the cost profile and that the gateway may resolve defaults on its behalf. Nothing contradicts the annotations, and the non-idempotent hint is not undermined since the description promises nothing about repeat-call stability.

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 correctly: the purpose, the alternative it replaces and the return shape all come before the filter enumeration. The long inline filter list is largely duplicated by the fully documented schema, so a sentence or two could be trimmed without losing meaning.

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?

For an 18-parameter, all-optional search-count tool with an output schema, the definition covers what an agent needs: what is counted, what comes back, how defaults resolve when no centre is supplied, and when to prefer this over paging. Nothing material is left to inference.

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, and much of the filter list restates what the schema already documents. It earns above baseline by framing the parameters as the same filter set used by fresha_search_venues and by pointing at the fresha_taxonomy sibling as the source of treatment ids, which is semantic guidance the schema fields only imply individually.

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?

Opens with a specific verb and resource ('Count the Fresha venues') and pins the scope ('that match one search filter set, without fetching any venue'). It explicitly contrasts with the sibling it could be confused with, fresha_search_venues, so an agent can choose between them without opening either schema.

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

Usage Guidelines5/5

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

States the intended use case directly ('market sizing and territory analysis') and names the alternative it replaces ('instead of paging fresha_search_venues'), plus the equivalence guarantee that the count matches that tool's count for the same filters. It also pre-empts a likely misread by noting a zero count is a valid answer.

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.