Skip to main content
Glama

Plainlist US business data

Count businesses

count_businesses
Read-only

Count businesses in a category, optionally in one state or city.

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": {
      "category": "<category>"
    },
    "name": "count_businesses"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNo
stateNo
categoryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior2/5

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

The annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description restates that this is a count operation and mentions optional location filtering, but it does not explain the return value, exactness of the count, behavior when no businesses match, or any execution details beyond the annotations.

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 a single front-loaded sentence with no wasted wording. The core operation is stated first, followed by the optional filters.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple counting tool, the description covers the basic purpose and filter scope, and the annotations cover safety. However, with no output schema and 0% parameter description coverage, it should do more to explain the returned count and how state and city filters interact.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate for three undocumented parameters. It identifies category as the primary filter and state/city as optional location filters, which adds some meaning. However, it does not clarify formats, whether state and city can be combined, or case sensitivity, leaving significant parameter ambiguity.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource: "Count businesses." It also states the core scope: by category, optionally narrowed by state or city. It does not explicitly distinguish itself from search_businesses, get_business, or list_categories, but the counting verb makes the purpose clear.

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 when to use the tool: when an agent needs an aggregate count rather than individual business records. However, it does not explicitly say when to prefer search_businesses or list_categories, nor does it state when not to use this tool.

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