Skip to main content
Glama

MentionBird

Prompt brand leaderboard

get_prompt_brand_leaderboard
Read-only

Per-prompt competitive leaderboard for a single tracked brand.

Returns hero KPIs + a ranked leaderboard of brands named on this prompt in the trailing window:

  • metrics.your_share_of_voice_pct — of every brand mention in the window's answers, the share that's yours. None when total_runs is 0.

  • metrics.your_mention_rate_pct — % of checks (parsed QueryRuns) that named your brand.

  • metrics.your_avg_position — average rank across your ranked / listed mentions only. None when no ranked mention exists; inline mentions don't carry rank and are excluded.

  • metrics.your_rank — 1-based position of your brand in the full sorted entity list. None when your brand was never named in the window.

  • metrics.total_entities — how many distinct brands were named on this prompt at all, i.e. what your_rank is a rank within. Rank 38 of 40 and rank 38 of 300 are opposite findings, so read the two together.

items contains the top-10 entities sorted by mention_rate_pct desc, then times_named desc, then name. Each row includes a rank field (1-based) and seen_on_providers — the LLM providers (openai | claude | gemini | perplexity | grok) that named the brand at least once.

Every row also carries net_sentiment (-100..+100, how the AIs framed that brand) and sentiment_coverage_pct. Read them as a pair. net_sentiment counts labeled mentions only, and 0.0 is returned both for balanced sentiment and for a brand nothing has scored yet; sentiment_coverage_pct is the only thing that separates the two. Coverage is low across the board on windows that reach back before sentiment scoring shipped, and there is no backfill, so it climbs as new checks run. Same contract as get_visibility. Your brand appears at its honest position inside items when metrics.your_rank ≤ 10; when it falls outside the top 10 it is absent from items and metrics.your_rank tells you the true position. The synthetic your_row is always returned regardless so you can always render your KPIs.

Read together with get_visibility (cross-prompt) and list_prompts_by_visibility (find gap prompts): this tool is the per-prompt deep-dive — it explains who is winning a single question.

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": {
      "brand": "<brand>",
      "brand_prompt_id": "<brand_prompt_id>"
    },
    "name": "get_prompt_brand_leaderboard"
  }
}

Input Schema

NameRequiredDescriptionDefault
brandYesBrand name from ``list_tracked_brands``.
window_daysNoTrailing window, integer 1-365 inclusive. Default 30.
brand_prompt_idYesOpaque token from ``list_prompts``. Required.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Far beyond what readOnlyHint/openWorldHint convey: it documents None semantics for every KPI, that items are truncated to top 10 while your_rank gives true position, that your_row is synthesised and always present, that sentiment must be read with coverage because 0.0 is ambiguous, and that pre-scoring windows have no backfill. This is exactly the behavioural context an agent needs to interpret results correctly.

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?

Long but front-loaded and structured: purpose first, then a bulleted metric glossary, then item ordering, then the sentiment-reading caveat, then sibling routing. Every paragraph carries a distinct interpretive rule; the repetition around your_rank/total_entities is justified by the 'rank 38 of 40 vs 38 of 300' warning.

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?

An output schema exists, yet the description still explains the payload's traps (missing top-10 rows, ambiguous 0.0 sentiment, low coverage windows) which the schema alone cannot convey. Complete enough to call and interpret correctly, though it never states error behaviour for an invalid brand_prompt_id or whether the brand must already be tracked.

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% and both required params are already documented at source (brand from list_tracked_brands, brand_prompt_id from list_prompts). The description reinforces the meaning of 'the window' that all metrics aggregate over but adds no format, bounds, or edge-case detail beyond the schema, so the baseline of 3 applies.

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+resource+scope: 'Per-prompt competitive leaderboard for a single tracked brand.' It then explicitly positions itself against siblings — get_visibility is cross-prompt, list_prompts_by_visibility finds gap prompts, and 'this tool is the per-prompt deep-dive' — so an agent can distinguish it 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 Guidelines4/5

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

Gives clear usage context by naming the two complementary tools and stating this one explains 'who is winning a single question.' What's missing is an explicit when-not condition or a note on how it differs from the other brand-listing sibling (get_top_mentioned_brands), so selection is well-informed but not fully closed.

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