Skip to main content
Glama
CompanyEnrich MCP Server

CompanyEnrich MCP Server

Official

Count Companies

count_companies
Read-only

Preview how many companies a search query matches without spending credits. Size or verify a query before running the paid search.

Instructions

Counts the companies a search_companies query would match, without returning them. Free; no credits deducted. Use it to size or check a query before running the paid search. Takes the same filter, semantic and lookalike arguments as search_companies. Returns count, the matches your plan can access, and total, all matches. A semantic query also returns interpretation, the filters inferred from it.

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

Input Schema

NameRequiredDescriptionDefault
filterNoSame as `filter` in search_companies.
semanticNoSame as `semantic` in search_companies.
lookalikeNoSame as `lookalike` in search_companies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.1

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, it discloses cost behavior (free, no credits deducted), that results are not returned, and the exact return shape: `count` (accessible matches), `total` (all matches), plus `interpretation` for semantic queries. That is meaningful behavioral context an agent needs to interpret results correctly.

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?

Five short sentences, front-loaded with purpose, then cost, then usage, then argument parity, then return values. No filler and every sentence contributes distinct 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?

No output schema exists, yet the description enumerates the returned fields (`count`, `total`, `interpretation`) and their distinction, and explains argument parity with search_companies. Nothing essential for correct invocation or interpretation is missing.

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 100% and each parameter already says 'Same as `filter` in search_companies,' so the description's parallel sentence adds little new meaning. Baseline 3 is appropriate when the schema carries the parameter documentation.

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?

States a specific verb and resource ('Counts the companies') plus the key scoping fact that it counts what a search_companies query would match without returning results. This immediately distinguishes it from the sibling search_companies that actually returns records.

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?

Explicitly prescribes when to use it: 'Use it to size or check a query before running the paid search,' and ties that guidance to the cost model ('Free; no credits deducted'). The alternative (search_companies) and the condition that selects this tool over it are both named.

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