Get ranking advice
get_ranking_adviceRead-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
| Name | Required | Description | Default |
|---|---|---|---|
| brand | Yes | Brand name from ``list_tracked_brands``. | |
| limit | No | Max 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. | |
| offset | No | Rows 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_id | Yes | Opaque token from ``list_prompts``. Required. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||