Skip to main content
Glama

Get AI Rankings

get_rankings
Read-onlyIdempotent

Get competitive ranking data in AI search results.

Shows where the brand ranks relative to competitors across all tracked prompts and AI models. Useful for understanding competitive positioning.

Views:

  • 'overall': Aggregate rankings across all prompts.

  • 'by-prompt': Rankings broken down per prompt.

  • 'prompt-trends': Daily average position per prompt, for the brand and the competitors it meets on that prompt. This is the view that answers which specific prompts are being lost and since when. Position is average rank in the answer, so LOWER is better and a positive position_change means the brand slipped down.

Args: brand_id: The brand to check (required). view: 'overall', 'by-prompt' or 'prompt-trends'. Default 'overall'. days: Lookback window, 1-365. Default 30. view='overall' reads at most 90 days and reports what it used in days_effective; view='prompt-trends' uses at least 7 and at most 90. period: A frozen calendar period (YYYY-MM or YYYY-Qn). When given, days is ignored and the response carries a period block. view='overall' only; not found if no rank was archived for that period; win_rate and threat_count come back null. include_volume: Include search volume estimates. tag_ids: Optional. Comma-separated tag IDs from list_tags. Applies to view='overall' and view='prompt-trends'. limit: 'prompt-trends' only: how many prompts to return, most-measured first. 1-100, default 25.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo
viewNooverall
limitNo
periodNo
tag_idsNo
brand_idYes
user_intentNoAnalytics hint: the user's latest request in one short sentence. Omit secrets and prior chat.
include_volumeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-open-world, and the description adds real behavioral context beyond them: days_effective reporting, period-archival 'not found' behavior, nulled fields, and the semantics that LOWER position is better while a positive position_change means the brand slipped.

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-loads the purpose, then organizes the rest into a Views list and an Args list, so scanning is easy. It is fairly long, but nearly every line carries parameter or behavioral meaning; only marginal trimming is possible.

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 an 8-parameter tool with 13% schema coverage and no output schema, the description supplies the missing parameter semantics plus key response-field behavior (days_effective, period block, win_rate/threat_count nulls). Nothing needed to call it correctly appears to be missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 13%, so the description must carry the load and it does: it documents brand_id, view, days (with per-view clamping: overall <=90, prompt-trends 7-90), period (overrides days, overall-only, null win_rate/threat_count), include_volume, tag_ids and limit. Only the schema-documented user_intent is absent. This far exceeds the schema.

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 specific verb and resource ('Get competitive ranking data in AI search results') with scope ('across all tracked prompts and AI models'). It does not explicitly contrast itself with nearby siblings like get_visibility_scores or compare_brands, so it stops short of a 5.

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 context ('understanding competitive positioning') and, crucially, tells the agent which view answers a specific question ('prompt-trends ... answers which specific prompts are being lost and since when'). No explicit when-not-to-use guidance or named alternatives, so not a 5.

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