Skip to main content
Glama

MentionBird

Start ranking advice

start_ranking_advice

Start 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 status done;

  • a run for the prompt is already in progress: that run comes back;

  • the workspace can't pay: error_code is insufficient_credits, with credits_needed and credit_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

NameRequiredDescriptionDefault
brandYesBrand name from ``list_tracked_brands``.
providersNoOptional. 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_idYesOpaque token from ``list_queries``.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only give readOnly/destructive/idempotent hints; the description adds the material behavior: credits are charged up front and refunded on failure, cost is looked up via get_account under agents.ranking_advice, the run takes 5-12 minutes and returns immediately with run_id/status. It also discloses dedupe semantics (unchanged sources or an in-flight run return the existing run with zero credits) and that started is true only for a genuinely new run.

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-loaded with purpose, then cost, then no-op conditions, then error cases, with bolded call-outs that scan well. It is on the long side and repeats the cost idea across the opening paragraph and the credits sentence, but nearly every sentence carries decision-relevant information.

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 a credit-spending, slow, asynchronous mutation this is complete: starting behavior, latency, cost source, refund policy, no-op and error paths, and hand-off to the read tool are all covered. The output schema exists, yet the description still clarifies the meaning of run_id, status, started, and credits where it matters.

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 description coverage is 100%, so brand, providers, and brand_prompt_id are already fully documented with their source-list siblings. The description adds little parameter-level detail beyond the credit-cost interpretation of the returned credits value, so baseline 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?

"Start a ranking-advice run for one prompt" names the specific verb and resource, and the follow-on clause ("how to get the brand named in the AI answers to it") states the outcome. The final sentence routes the agent to get_ranking_advice for reading results, so the start/read split with its sibling is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description explicitly covers when to call it (after getting a brand_prompt_id), what to do instead once started (read with get_ranking_advice when status is done), and enumerates the three cases where the call is a no-op. It even names the error conditions (insufficient_credits, PLAN_LIMIT, VALIDATION_ERROR) that tell the agent the call cannot be used.

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