Skip to main content
Glama

MentionBird

Get ranking advice

get_ranking_advice
Read-only

Read-only: list ranking-advice runs for one prompt.

Returns a paginated-style envelope::

{ "items": [ { "run_id": int, "status": "done" | "running" | "pending" | "error", "providers_scope": [str, …], # provider codes; [] = every AI "covers_all_providers": bool, "summary": str, "recommendations": [ { "action_type": str, "topic": str, "rationale": str, "supporting_evidence": [url, …], "est_difficulty": "low" | "medium" | "high" }, … ], "tool_call_count": int, "started_at": ISO8601, "completed_at": ISO8601 | null, "error_code": str | null }, … ], "total_count": int, # unbounded count (pre-limit) "returned_count": int, "has_more": bool, "offset": int, "note": str, # only while has_more "filters_applied": {…} }

Most-recent first. status=done rows carry the recommendation cards; error rows carry error_code for the rare case the LLM caller wants to surface "your most recent run failed". In practice customers should filter on status == "done" and grab the first row.

providers_scope lists the AI platforms (provider codes such as openai) whose answers the advice was built from. When covers_all_providers is false the advice describes only those platforms: say which ones whenever you relay it, and never present it as advice for every AI. An empty list with covers_all_providers true means it considered every AI platform.

This tool doesn't start runs; start_ranking_advice does.

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_ranking_advice"
  }
}

Input Schema

NameRequiredDescriptionDefault
brandYesBrand name from ``list_tracked_brands``.
limitNoMax rows to return, 1-50. Default 10 — higher than the dashboard's 5 because LLM callers generally want more context per call. Over 50 reads as 50 and sets ``filters_applied.limit_clamped``; 0 or negative gives the default.
offsetNoRows to skip — the cursor for reading past ``limit``. Default 0. No maximum; negatives are treated as 0. ``total_count`` is the true number of runs, so walk by advancing ``offset`` by ``returned_count`` while ``has_more`` is true. The sort is total, so a walk visits every run exactly once **within one snapshot**. This tool takes no date range, so a run completing mid-walk enters at the head and shifts the window by one — re-read from ``offset=0`` if that matters.
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/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint annotation: it discloses most-recent-first ordering, the has_more/offset walk contract, the mid-walk snapshot caveat, error_code semantics, and a safety-relevant constraint that partial providers_scope must never be relayed as advice for every AI. That is exactly the kind of behavioral context an agent cannot recover from the annotation alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The prose that opens and closes the description is tight and front-loaded, but roughly half the text is a full JSON response envelope. Since a structured output schema already exists, that block largely duplicates machine-readable data rather than earning its space.

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 paginated read over an LLM-generated advice dataset, an agent has enough to call it correctly and interpret the results, including paging and provider-scope caveats. The only material omission is disambiguating itself from the similarly named list_ranking_advice sibling.

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 the schema already spells out limit clamping, offset walking, and the opaque brand_prompt_id token. The description adds meaning mainly at the output level (filters_applied, providers_scope, covers_all_providers) rather than deepening the four input parameters, so the baseline 3 applies.

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?

Opens with a specific verb+resource+scope: 'list ranking-advice runs for one prompt', and explicitly says it does not start runs, pointing to start_ranking_advice. The gap is the near-identically named sibling list_ranking_advice, which is never mentioned, so an agent seeing both names still has to guess which one to pick.

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 concrete operational guidance: 'filter on status == "done" and grab the first row', plus an explicit when-not ('This tool doesn't start runs; start_ranking_advice does'). It lacks any exclusion relative to list_ranking_advice, and no guidance on when status=error rows matter beyond a parenthetical.

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