Skip to main content
Glama

Get market rankings

sightglass_get_rankings
Read-onlyIdempotent

The market view: who holds what share of active ads, week by week. pulse is the headline numbers for the scope (brands, active ads, launches, video and advertorial share). share is the weekly share of the top groups, grouped by company (default), category, platform, country or plan. categories lists the categories under the scope so you can drill in with categoryId; with a categoryId, leaders is that category's top companies. Share is share of ads Sightglass has seen, not spend or revenue. 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
limitNo
weeksNo
groupByNoWhat to rank by share of active ads: company (default), category, platform, country or plan.
projectIdNoReplo project id, from list_projects: where the charge or the asset lands. Its workspace's plan applies.
categoryIdNoScope to one category's subtree; ids come from the `categories` in this tool's result. With a category, `leaders` lists its top companies.
workspaceIdNoReplo workspace id, from list_workspaces. Sets which workspace's plan applies; required when the user has more than one workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / properties / categoryId / 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 / 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 / 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)$"
  2. 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"
  3. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent, and the description layers substantial extra behavior on top: plan gating returns nulls with a per-item `locked` list (`estimates` = sales, visits, traffic), `lockedCount` signals more results on a higher plan, and the agent must say data is on a higher plan rather than estimating it. It also discloses that the call returns data only and that nothing is shown to the user until sightglass_show, which is exactly the kind of non-obvious side effect an agent would otherwise miss.

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?

Purpose is front-loaded in the first sentence and every subsequent sentence carries real information (view list, plan-locking rules, show workflow, no-account note). It is a single dense paragraph with several run-on clauses, so structuring into distinct points would improve scanning, but there is little filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter read tool with no output schema, the description covers the crucial pipeline (get data -> sightglass_show with resultId), plan-gating semantics, and auth independence. It falls short on the biggest remaining ambiguity: how to choose among the four named views, which is the primary thing an agent must decide before calling.

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 67% and the schema already documents groupBy's enum, projectId, categoryId and workspaceId. The description reinforces groupBy options and the categoryId drill-in, but it introduces view concepts (`pulse`, `share`, `categories`, `leaders`) that do not correspond to any parameter, leaving ambiguity about how to actually select a view, and it says nothing about `limit` or `weeks` boundaries beyond 'week by week'.

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?

It names a specific verb and resource ('who holds what share of active ads, week by week') and enumerates the sub-views (pulse, share, categories, leaders), which distinguishes it from siblings like sightglass_find_ads or sightglass_arena_compare. The only weakness is that those view names never map to a schema parameter, so the agent learns there are modes but not how to request one.

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?

It gives concrete routing guidance: use `categories` to obtain a categoryId, then pass that categoryId to reach `leaders`; call sightglass_show once with the resultId to display; and it works before sign-in so it can be called before asking the user to authenticate. It lacks explicit 'when not to use this / use sibling X instead' exclusions for research-type siblings.

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