Skip to main content
Glama

Octolane

search_accounts

Read-only

Search accounts (companies) in the CRM by name, domain, or industry. USE FOR: finding a company, looking up an account, checking if a company exists, or searching by domain or industry. PAGINATION: results are one page, not the complete match set. Use limit up to 50 and start with offset: 0; while the number of records read is less than total_count, call this tool again with offset increased by the number of results returned. Ordering is stable across pages. PARAMETER CHOICE: use the top-level semantic params (query, domain, industry) for common filters. Use additional_filters only for custom attributes, interaction dates, employee range, or anything beyond the semantic params. ADDITIONAL_FILTERS PREREQUISITE: for custom attributes, call get_account_fields first to get the correct property_name. Do NOT guess property names. MULTIPLE COMPANY NAMES IN ONE QUERY: use keywords, not query. See the keywords parameter docs for the batching rule. ZERO RESULTS RETRY: if the search returns total_count=0, retry ONCE with a different keyword before telling the user the company does not exist. Drop legal suffixes ("Acme Inc" → "Acme", "OpenAI LLC" → "OpenAI"), try the domain alone when known (works even if the display name differs), or the short / common name when the CSV imported a long-form legal name. Stop after one retry - do not loop.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum results per page (1-50, default 10).
queryNoSearch by company name or domain with fuzzy matching. Use when the user mentions a single company by name (e.g. 'Stripe', 'linear.app'). For multiple companies in one query, use `keywords` instead.
domainNoFilter by company domain (e.g. 'stripe.com').
offsetNo0-indexed row offset for paging. Start at 0, then increase by the number of results returned until `offset + results.length >= total_count`. Ordering is stable across pages, so tied sort values do not repeat or skip records.
sort_byNoSort order. Defaults to `updated_at desc` when omitted.
industryNoFilter by industry (e.g. 'SaaS', 'Fintech', 'Healthcare').
keywordsNoMulti-keyword OR search. Pass up to 10 terms; any account whose name or domain matches at least one term is returned. **Always prefer this over multiple search_accounts calls when the user references more than one company.** Example: "Check Acme, Globex, and Initech" becomes one call with `keywords: ["Acme", "Globex", "Initech"]`, not three calls. Use `query` instead for a single company with fuzzy/partial matching.
session_idNoThe ID of the task this call belongs to. Leave it out on your first call. On every later call for the same task, send the ID an earlier result gave you, and pass it to any subagent working on that task.
additional_filtersNoEscape hatch for filters not covered by the top-level semantic params (custom attributes, interaction dates, employee range, etc.). For a date range, pass TWO filters on the same property with full ISO timestamps including timezone offset. Example for 'today' in PT: `{property_name:company_last_interaction, condition:on_or_after, value:'2026-05-18T00:00:00-07:00'}` AND `{property_name:company_last_interaction, condition:before, value:'2026-05-19T00:00:00-07:00'}`. There is no `between` operator. For a single date, use `condition:is` with a full ISO timestamp. Bare `YYYY-MM-DD` values are interpreted as UTC, which may not match the user's timezone.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the bar is lower, yet the description still adds substantial behavior beyond them: results are a single page not the full match set, ordering is stable across pages, and the retry-once rule prevents looping. It also discloses that domain-alone retries work even when the display name differs, which is non-obvious operational behavior.

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?

Front-loaded with purpose and use cases, then clearly segmented into PAGINATION, PARAMETER CHOICE, PREREQUISITE, MULTI-NAME, and ZERO RESULTS RETRY blocks, so it is scannable despite its length. It loses a point for restating rules that already live verbatim in the schema's keywords and additional_filters descriptions.

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?

For a 9-parameter, all-optional search tool with no output schema, the description covers the things an agent would otherwise get wrong: paging termination via total_count, the get_account_fields dependency, the no-guessing rule for property names, and a bounded zero-result policy. Nothing needed to invoke it correctly is missing.

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%, which sets a baseline of 3, and much of the description's parameter content (keywords batching rule, date-range two-filter pattern, timezone caveat) is duplicated from the schema. It still earns credit above baseline by synthesizing the routing hierarchy — semantic params first, additional_filters only as an escape hatch — and by tying offset to the pagination loop formula rather than leaving it as an isolated field description.

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?

Opens with a specific verb and resource ("Search accounts (companies) in the CRM") plus the filterable dimensions (name, domain, industry), and the USE FOR line enumerates concrete intents (finding a company, checking existence). An agent can distinguish it from search_contacts/search_deals purely by the resource noun without opening any 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?

Explicitly routes between alternatives: top-level semantic params vs additional_filters, keywords vs query for multi-company lookups, and get_account_fields as a hard prerequisite before guessing custom property names. It also defines a bounded failure policy (retry once on total_count=0, with named retry tactics, then stop) — genuinely when-to-use and when-to-stop guidance.

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