Skip to main content
Glama

count_companies

按公司关键词、行业、标签、中国/海外地区、成立年份、发展阶段、千里马、独角兽、公司资质等条件统计对外可见公司总数。适合回答多少家公司、总计几家、数量是多少;不要为了计数遍历 search_companies 分页。

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
citiesNo
keywordNo
tag_idsNo
locationNo
provincesNo
scope_idsNo
is_unicornNo
born_year_endNo
is_horse_clubNo
sub_scope_idsNo
tag_match_modeNounion
born_year_startNo
fund_status_idsNo
qualification_type_idsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedOutput schema / additionalProperties
      Added value: +true
    • removedOutput schema / properties
      Removed value: -{
      -  "result": {
      -    "additionalProperties": true,
      -    "title": "Result",
      -    "type": "object"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "result"
      -]
    • changedOutput schema / title
      Previous value: -"count_companies_toolOutput"New value: +"count_companies_toolDictOutput"
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does add one real behavioral fact — the count is restricted to externally visible companies ('对外可见') — and clarifies the output is a total, not a paginated list. It says nothing about permissions, caching, or cost of a 14-filter scan, so it only partly fills the gap left by missing annotations.

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?

Two sentences: purpose-plus-filter-surface first, usage routing second. Front-loaded and free of filler; the long filter enumeration is justified given zero schema coverage, though it is a comma list rather than a structured mapping.

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?

An output schema exists, so return values need not be explained. For a 14-parameter, annotation-free read-only counter the description supplies what an agent must know: it is a total-count operation, scope is limited to visible companies, and it should be preferred over paginating search_companies.

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 description coverage is 0% for 14 parameters, so the description must compensate. It does map most filters to natural-language meaning (keyword, tag_ids, scope/industry, China-vs-overseas location, born_year range, is_unicorn, is_horse_club, qualification types, funding stage), but leaves tag_match_mode (default 'union'), and the distinction between scope_ids and sub_scope_ids, undiscussed — and it omits cities/provinces entirely.

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 opens with a specific verb+resource (统计…公司总数 / count total companies) and enumerates the filterable dimensions (keyword, industry, tags, region, founding year, stage, unicorn, qualifications). It also names the sibling it is not — search_companies pagination — so the agent can separate a counting tool from a listing tool at a glance.

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?

Explicit when-to-use is given ('多少家公司、总计几家、数量是多少' style count questions) plus an explicit when-not: do not iterate search_companies pages to count. Naming the discouraged alternative is exactly the routing guidance an agent needs.

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.