Skip to main content
Glama

Search companies

search_companies
Read-only

List and search this workspace's companies, filtered by industry/status/owner, sorted and paginated. Returns summary rows (id, name, industry, size, status, owner, contactCount) plus pagination { page, perPage, total }. Use get_company to fetch one company's full detail by id.

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_companies"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoFree-text search over the company name. Omit for no text filter.
pageNo1-based page number of results to return. Default 1.
statusNoFilter by relationship status. Omit for any. Allowed: prospect, active, inactive.
ownerIdNoFilter to companies owned by this workspace member's user id.
perPageNoNumber of companies per page (1-100). Default 25.
sortDirNoSort direction by name. Default asc.asc
industryNoFilter to companies in this industry. Omit for any industry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed7 schema fields changed
    • addedInput schema / properties / industry / description
      Added value: +"Filter to companies in this industry. Omit for any industry."
    • addedInput schema / properties / ownerId / description
      Added value: +"Filter to companies owned by this workspace member's user id."
    • addedInput schema / properties / page / description
      Added value: +"1-based page number of results to return. Default 1."
    • addedInput schema / properties / perPage / description
      Added value: +"Number of companies per page (1-100). Default 25."
    • addedInput schema / properties / q / description
      Added value: +"Free-text search over the company name. Omit for no text filter."
    • addedInput schema / properties / sortDir / description
      Added value: +"Sort direction by name. Default asc."
    • addedInput schema / properties / status / description
      Added value: +"Filter by relationship status. Omit for any. Allowed: prospect, active, inactive."
  3. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false. The description adds valuable context: it returns summary rows with specific fields, includes pagination info, and scopes to the current workspace. This goes beyond the annotations by clarifying the return shape and scope, though it doesn't address auth or rate limits, which annotations partially cover.

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?

Two sentences that front-load the core function, then provide return format and a pointer to the sibling tool. Every word serves a purpose; no filler or repetition of schema details.

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?

Despite having 7 parameters and no output schema, the description explains the return format (summary rows + pagination) and the tool's scope. It also mentions how to get full details, covering the typical use cases. The description is complete enough for an agent to select and invoke the tool correctly.

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 description coverage is 100%, so baseline is 3. The description adds meaning by grouping parameters into 'filtered by industry/status/owner' and 'sorted and paginated', giving context that the schema alone doesn't provide. It also mentions the pagination response object, tying together perPage/page.

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 clearly states 'List and search this workspace's companies' with specific filters, sorting, and pagination. It also distinguishes itself from get_company by noting that full detail is retrieved there, making the purpose and scope evident.

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?

The description explicitly directs the user to 'Use get_company to fetch one company's full detail by id,' providing a clear alternative. It also describes the tool's capabilities (filtering, sorting, pagination), implicitly indicating when to use it for summary lists.

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