Skip to main content
Glama

Search location datasets

search_datasets
Read-onlyIdempotent

Find LocationLists datasets by brand, kind of business or industry (e.g. 'bobcat', 'restaurants', 'bank branches', 'dental practices', 'hardware stores'). Returns every matching dataset, best first, with slug, name, business type, industry, record count, coverage, whether it can be searched by distance (distanceSearch), and page URL. A kind of business or an industry in the query matches every dataset of that kind, and kinds names it as a category that count_locations can combine into one answer. Each brand or chain is its own dataset. After finding one you can filter it by city, state, zip, any column, or a radius around a place (e.g. within 25 miles of Los Angeles, CA) when it has coordinates: use count_locations for how many match, and get_sample with the same filters for that count plus the list's fixed free sample rows, each marked matches_your_question. Both are free. To cover several chains near one place, pass datasets or category and a total to count_locations, and you get one answer, one price and one file. kind "register" searches live public registers instead (a state's licensed child care, liquor licences, SNAP retailers…): each result's source is the key relate_locations takes as a set's opendata {source, state}, compared by distance (mode near). Registers are read live, never sold.

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

Input Schema

NameRequiredDescriptionDefault
kindNolist (default): the lists we sell. register: live public registers read from their publisher, e.g. {"query": "child care", "kind": "register", "state": "NY"} — each result's source goes in relate_locations as {"opendata": {"source": "<source>", "state": "NY"}}.
limitNoMax results (default: every match)
queryNoFree text: brand, kind of business, industry or product
stateNoWith kind "register": prefer registers covering this state, e.g. "NY"
categoryNoRestrict to one catalog category, industry or subcategory

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / kind
      Added value: +{
      +  "description": "list (default): the lists we sell. register: live public registers read from their publisher, e.g. {\"query\": \"child care\", \"kind\": \"register\", \"state\": \"NY\"} — each result's source goes in relate_locations as {\"opendata\": {\"source\": \"<source>\", \"state\": \"NY\"}}.",
      +  "enum": [
      +    "list",
      +    "register"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / state
      Added value: +{
      +  "description": "With kind \"register\": prefer registers covering this state, e.g. \"NY\"",
      +  "type": "string"
      +}
  2. Changed5 schema fields changed
    • changedInput schema / properties / category / description
      Previous value: -"Restrict to one catalog category"New value: +"Restrict to one catalog category, industry or subcategory"
    • removedInput schema / properties / category / enum
      Removed value: -[
      -  "Equipment",
      -  "Retail",
      -  "Hardware",
      -  "Grills",
      -  "Industrial",
      -  "Breakfast",
      -  "Outdoor Furniture",
      -  "Furniture",
      -  "Mattresses",
      -  "Nonprofits",
      -  "Healthcare",
      -  "Financial",
      -  "Government",
      -  "Other Transactions"
      -]
    • changedInput schema / properties / limit / description
      Previous value: -"Max results (default 15)"New value: +"Max results (default: every match)"
    • changedInput schema / properties / limit / maximum
      Previous value: -50New value: +1000
    • changedInput schema / properties / query / description
      Previous value: -"Free-text search: brand, product, or location type"New value: +"Free text: brand, kind of business, industry or product"
  3. Changed1 schema field changed
    • changedInput schema / properties / category / enum
      Previous value: -[
      -  "Equipment",
      -  "Retail",
      -  "Hardware",
      -  "Grills",
      -  "Industrial",
      -  "Breakfast",
      -  "Outdoor Furniture",
      -  "Furniture",
      -  "Mattresses",
      -  "Nonprofits",
      -  "Healthcare",
      -  "Financial",
      -  "Government"
      -]New value: +[
      +  "Equipment",
      +  "Retail",
      +  "Hardware",
      +  "Grills",
      +  "Industrial",
      +  "Breakfast",
      +  "Outdoor Furniture",
      +  "Furniture",
      +  "Mattresses",
      +  "Nonprofits",
      +  "Healthcare",
      +  "Financial",
      +  "Government",
      +  "Other Transactions"
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / category / enum
      Previous value: -[
      -  "Equipment",
      -  "Retail",
      -  "Hardware",
      -  "Grills",
      -  "Industrial",
      -  "Breakfast",
      -  "Outdoor Furniture",
      -  "Furniture",
      -  "Mattresses",
      -  "Nonprofits",
      -  "Healthcare"
      -]New value: +[
      +  "Equipment",
      +  "Retail",
      +  "Hardware",
      +  "Grills",
      +  "Industrial",
      +  "Breakfast",
      +  "Outdoor Furniture",
      +  "Furniture",
      +  "Mattresses",
      +  "Nonprofits",
      +  "Healthcare",
      +  "Financial",
      +  "Government"
      +]
  5. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and openWorld, so the safety profile is covered; the description adds non-obvious behavior instead: results are returned 'best first', registers are 'read live, never sold', and search/count calls are free. It does not discuss rate limits or what happens with zero matches, which keeps it short of a 5.

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 with the core purpose and a return-field list, then the follow-up routing. It is dense and a few sentences sprawl ('Both are free.', 'one answer, one price and one file'), but nearly every sentence carries routing or return-value information rather than filler.

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, the description compensates by enumerating the returned fields (slug, name, business type, industry, record count, coverage, distanceSearch, page URL) and explaining the register-mode `source` value. For a five-parameter, zero-required search tool it covers mode selection, result shape, and hand-off to siblings with nothing an agent needs left out.

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 would be 3, but the description adds real meaning: a business kind or industry in `query` matches every dataset of that kind, `kinds` is the category form count_locations can aggregate, and `state` applies to register mode. It stops short of explaining how `category` and `query` interact or what `limit` ordering means, so not a 5.

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 ('Find LocationLists datasets by brand, kind of business or industry') and gives concrete example queries. It explicitly separates the two modes (list vs. register) and names the sibling tools that follow a search, so an agent can tell it apart from count_locations, get_sample, or relate_locations without opening any 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?

Gives explicit next-step routing: 'use count_locations for how many match, and get_sample with the same filters', plus 'pass datasets or category and a total to count_locations' to cover several chains at one place. It also states the condition that selects the other mode ('kind "register" searches live public registers instead') and where that result's `source` goes. This is when-to-use and when-to-use-the-alternative, spelled out.

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.