Skip to main content
Glama

Buscar decisor e contatos da empresa

find_decision_maker_and_contacts

For small businesses (a school, a market, a clinic), finds in one run who decides there (name and role, with the public source of each fact), that person's mobile, WhatsApp and e-mail, and the business's general mailbox (personal data). Takes 1 to 25 entries in people, looked up 5 at a time. Each business is identified by its name and city, its CNPJ, its site domain or a phone it publishes. First it checks this workspace (people sheets, campaigns and kept briefs): a value already saved comes back free, with savedIn naming where it was saved; refresh true skips that check. Otherwise it asks Nock's data sources one after another and stops at the first that finds it. value holds what was found: decisionMakerName, decisionMakerRole, decisionMakerSource and decisionMakerUrl (the person), decisionMakerPhone, decisionMakerWhatsapp, decisionMakerEmail and companyGeneralEmail (the contacts), each only when found. Each item is charged only when found; a decision maker that comes only from the Receita's partner registry is free (decisionMakerFree true), and the WhatsApp is not charged again when it is the same number as the mobile. not_found is never charged; reason, when present, says why there is nothing to find (a condominium has no partners and its síndico is not in the registry). Nothing is written into a sheet or a campaign. Returns one entry per person or business in the order sent (index), each with person (whose it is), status found, not_found or error, value and creditsCharged, plus the totals found, notFound, failed and creditsCharged. not_found with sourcesUnanswered means some sources did not answer in time and a later try may find it; error means no source answered. The same entry sent twice is looked up once (sameAsIndex). Costs WhatsApp: 6 a 15 créditos por número achado (at most 46 credits per item found). Nothing is charged when it is not found, the lookup fails or the value was already saved. A lookup can take up to about a minute per entry.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "people": "<people>"
    },
    "name": "find_decision_maker_and_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
peopleYesWho to look up, 1 to 25 entries, each with what is known of them.
refreshNoTrue skips what this workspace has saved and looks the value up outside again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Rich disclosure well beyond the annotations: the cache-first behavior with savedIn, source ordering, nothing written to sheets or campaigns, per-item charging, free Receita partner results, dedup via sameAsIndex, ~1 minute per lookup, and the found/not_found/error/sourcesUnanswered distinctions. Against annotations that already declare openWorldHint=true, non-read-only and non-idempotent, this is strong added context but not exhaustive on retry safety or rate limits.

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 the outcome and the identifying inputs, then costs and statuses. However it is one dense block with pricing information partially in Portuguese ("6 a 15 créditos por número achado"), and the charging rules are restated across several sentences, which slightly taxes scanning.

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 shape (index, person, status, value sub-fields, creditsCharged) and the aggregate totals, plus the meaning of each status. For a batched, charged, open-world lookup this covers everything an agent needs to call it and interpret results.

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%, so the two parameters are already documented. The description still adds value by explaining that a business can be identified by any one of companyName+location, cnpj, companyDomain or phone, that entries are processed 5 at a time, and that refresh=true bypasses the workspace cache — real meaning beyond the schema, but no field-level format detail (e.g. CNPJ punctuation, E.164 phones).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and resource: finds the decision maker (name, role, source) plus mobile, WhatsApp, e-mail and the company's general mailbox for small businesses, in one run. The "in one run" framing implicitly separates it from the single-channel siblings (find_decision_maker_email/mobile/whatsapp), but no sibling is named, so the differentiation is left to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear operating context: small businesses only, 1–25 entries, looked up 5 at a time, and refresh=true to skip the workspace cache. It also explains the fallback order (workspace first, then Nock's sources, stopping at the first hit). What is missing is an explicit statement of when to prefer a cheaper single-field sibling or when this tool is overkill.

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.