Skip to main content
Glama

Search brands

sightglass_search_companies
Read-onlyIdempotent

Search Sightglass companies — what users call brands: the business behind one or more Meta advertiser pages, keyed on its domain. search is semantic, so describe the business (what it sells and to whom). Pass similarToCompanyId to find a company's nearest competitors instead. To look a brand up by its website pass domainSearch; when that finds nothing the brand is not tracked yet, so read its site or use the user's words, write one sentence on what it sells and to whom, and pass that as search: the results are tracked brands competing for the same customers. Each result carries store facts (platform, estimated monthly sales, products, employees, follower counts with 30-day change — all vendor estimates, never reported revenue), rank and rank movement by active ads, and momentum: a transparent 0-100 score whose components[].text say why a brand is growing (ad launches vs last month, active-ad change, follower growth, catalog activity, stack upgrades). Sort by momentum for who is blowing up, most_estimated_sales for the biggest, most_active_ads for who runs the most ads. Trends come from ad start/stop dates and only cover ads Sightglass has seen. Fields the user's Replo plan doesn't include come back null and are named in that item's locked list (estimates = sales, visits and traffic); lockedCount is how many more results a higher plan shows. Say the data is on a higher plan; never estimate it yourself. Returns data only: nothing is shown to the user yet. Once you know the answer, call sightglass_show once with this call's resultId to show it as cards; the show call does not search again. Works without a Replo account: call it before asking the user to sign in.

Input Schema

NameRequiredDescriptionDefault
sortNo
limitNoResults per page: 20 by default, up to 40. Use the user's number when they give one; for more than 40, page with cursor.
cursorNonextCursor from the previous page of this same call, to get the next page. Keep every other argument the same.
searchNoSemantic by default: describe the business (what it sells, to whom), not one keyword.
projectIdNoReplo project id, from list_projects: where the charge or the asset lands. Its workspace's plan applies.
searchModeNo
categoryIdsNoCSV of category ids from sightglass_search_companies results; a node matches its whole subtree.
workspaceIdNoReplo workspace id, from list_workspaces. Sets which workspace's plan applies; required when the user has more than one workspace.
domainSearchNoA brand's website, e.g. example.com or a full URL, to find that brand when Sightglass tracks it.
activeAdsCountGteNo
similarToCompanyIdNoFind the nearest competitors of this company instead of searching.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / search / maxLength
      Previous value: -200New value: +1000
  2. Changed4 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / projectId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / similarToCompanyId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / workspaceId / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  3. 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"
  4. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/no-destruction, but the description adds far more: results are vendor estimates and never reported revenue, trends only cover ads Sightglass has seen, plan-gated fields return null and are named in `locked` with `lockedCount`, and data is never rendered to the user until sightglass_show is called with the resultId. That last point is critical behavioral context no annotation conveys.

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 definition and no filler sentences, but it is a single dense paragraph where the untracked-domain fallback is buried mid-sentence and runs long. Every clause carries information; the structure, not the length, is what costs a point.

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?

With 11 parameters, no output schema, and no required fields, the description must explain both how to call it and what comes back — and it does: result fields (platform, estimated sales, products, employees, followers, rank/momentum with component explanations), locking behavior, and the mandatory sightglass_show handoff.

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?

At 73% schema coverage the schema carries much of the load, but the description adds real meaning for the ambiguous parameters: `search` is semantic and should describe the business rather than a keyword, `similarToCompanyId` replaces searching entirely, and `domainSearch` targets a specific tracked brand. `searchMode`, `categoryIds`, and `activeAdsCountGte` are left to the schema, so it stops short of full coverage.

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 Sightglass companies') and immediately disambiguates the domain vocabulary ('what users call brands: the business behind one or more Meta advertiser pages, keyed on its domain'), which separates it from sightglass_get_company and sightglass_find_ads.

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 explicit routing rules: use `similarToCompanyId` for competitors, `domainSearch` for website lookups, and a concrete fallback procedure when the domain is untracked (read the site, write one sentence, pass it as `search`). It also names sort values for common intents ('who is blowing up', 'the biggest', 'most ads') and states the tool works before sign-in.

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