Start ranking advice
start_ranking_adviceStart a ranking-advice run for one prompt: how to get the brand named in the AI answers to it.
Spends credits: a run costs the price get_account lists under
agents.ranking_advice, charged when it starts and refunded if it
fails. It takes 5-12 minutes, so this answers at once with
run_id and status (pending while it waits to start);
read the advice with get_ranking_advice once status is
done. credits is what this call spends: 0 when it starts
nothing.
Nothing new is started, and nothing charged, when:
the prompt's sources haven't changed since a finished run: that run comes back with
statusdone;a run for the prompt is already in progress: that run comes back;
the workspace can't pay:
error_codeisinsufficient_credits, withcredits_neededandcredit_balance.
started is true only when this call started a run. Refused with
PLAN_LIMIT when the plan doesn't include ranking advice, and
VALIDATION_ERROR when the prompt has too few cited sources yet.
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": "start_ranking_advice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brand | Yes | Brand name from ``list_tracked_brands``. | |
| providers | No | Optional. AI platform slugs (from ``list_llm_providers``) to build the advice from, e.g. ``["openai"]`` for ChatGPT only. Omit for every platform the prompt runs on. A platform the prompt doesn't run on is refused. | |
| brand_prompt_id | Yes | Opaque token from ``list_queries``. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||