Skip to main content
Glama

Find a business category

find_category
Read-onlyIdempotent

Finds the category_id for a kind of business (plumber, dentist, restaurant...). Categories are named in English. Results are ranked by match_rank (0 = exact match); substring_only marks hits where the term only appears inside another word. Several categories can be counted together with filters.category_ids.

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": {
      "query": "<query>"
    },
    "name": "find_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYesEnglish category term, e.g. plumber, dentist.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower, and the description still adds real substance: categories are English-named, results are ordered by match_rank with 0 meaning exact, and substring_only flags incidental matches. That ranking/provenance detail is genuine behavior beyond the annotations, though result fields and pagination are not described.

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?

Three tight sentences with no filler, led by the core purpose. The trailing sentence about counting categories together is a slight tangent but earns its place by explaining why the returned IDs matter.

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?

For a two-parameter lookup with no output schema, the description supplies the important return semantics (match_rank ordering, substring_only meaning) that would otherwise be missing. The remaining gap is the undocumented limit parameter and the exact shape of returned records.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%: query is documented but limit (default 20, max 50) is not explained in either place. The description constrains query semantics usefully by stating terms are English and giving examples, but adds nothing about the limit parameter or about how match_rank affects truncated result sets.

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 states a specific verb and resource ('Finds the category_id for a kind of business') with concrete examples (plumber, dentist, restaurant) that remove ambiguity about what the tool returns. It is clearly distinguishable from siblings like find_location or preview_businesses because it resolves a term to a category identifier.

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?

Usage is implied rather than stated: the agent can infer this is a lookup step for resolving a business type to an ID, and the closing note hints the IDs feed filters.category_ids elsewhere. There is no explicit when-to-use/when-not guidance or named alternative for related lookups.

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