Skip to main content
Glama

Search Records

search
Read-only

Find a Contact, Company or Deal by part of its name, a Contact's email or a Company's domain, when you do not yet have its id or do not know which kind it is. Returns up to 5 hits per kind, each with its kind, id and label; pass the id to get_contact, get_company or get_deal. Use list_contacts, list_companies or list_deals to filter, sort or page. Deals are left out when the Workspace lacks that module.

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

Input Schema

NameRequiredDescriptionDefault
qNoAt least 2 characters; shorter text returns no hits.
wordsNoAlso search Brands, Structs, Knowledge documents and Ads briefs by their text. Off by default.
switcherNoAlso search Leads, Files by name, Saved items and public bids. Off by default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / switcher / description
      Added value: +"Also search Leads, Files by name, Saved items and public bids. Off by default."
    • addedInput schema / properties / words / description
      Added value: +"Also search Brands, Structs, Knowledge documents and Ads briefs by their text. Off by default."
  2. Changed2 schema fields changed
    • removedInput schema / properties / leads
      Removed value: -{
      -  "default": false,
      -  "type": "boolean"
      -}
    • addedInput schema / properties / switcher
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / leads
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / words
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
  5. Changed1 schema field changed
    • addedInput schema / properties / q / description
      Added value: +"At least 2 characters; shorter text returns no hits."
  6. First observed

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, openWorldHint=false and destructiveHint=false, so safety is covered. The description adds real behavioral context beyond that: a cap of 5 hits per kind, the shape of each hit (kind, id, label), and the conditional case where Deals are omitted because the Workspace lacks that module. Only minor traits like result ordering are unstated.

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?

Three tight sentences: what it finds and when, what comes back and how to continue, then which sibling to use instead. No repetition of the tool name or title and no filler.

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?

There is no output schema, and the description compensates by describing the hit shape and per-kind cap. Combined with the usage routing and the module-availability caveat, an agent has everything needed to call it and interpret the response.

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 coverage is 100%, so the baseline is 3. The description earns an increment by explaining what q actually matches against (partial name, Contact email, Company domain), which the schema's 'At least 2 characters' note does not convey; the words and switcher toggles are left to the schema but are already fully documented there.

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 (find) plus the exact resources (Contact, Company, Deal) and the matching fields (partial name, email, domain). It explicitly separates itself from the id-based get_* siblings and the filter-oriented list_* siblings, so an agent can select it without opening another schema.

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?

Gives an explicit when: 'when you do not yet have its id or do not know which kind it is'. It also names the follow-up path (pass the id to get_contact/get_company/get_deal) and the alternative for filtering/sorting/paging (list_contacts/list_companies/list_deals), which is a complete routing story.

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.