Skip to main content
Glama

MentionBird

Get AI answer

get_query_run
Read-only

Read ONE run in full: the complete answer text, every brand mention, every citation and every web search the AI ran.

get_sample_runs returns a list with a truncated excerpt per item; call this with a run_id from that list when you need the whole answer for a single run. answer_text is the assistant's prose, extracted from the stored response — plain markdown as the model wrote it, never the provider's JSON envelope. An empty string means the run stored no readable answer.

web_search_queries lists the searches the AI ran before answering, in the order it ran them, as plain strings — the terms a brand has to rank for to be found for this prompt. Repeats are kept. Read it with web_search_query_count: an empty list with count 0 means the AI answered without searching; both null means the searches are not recorded (Perplexity never exposes them; runs parsed before we started recording have none).

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": {
      "run_id": "<run_id>"
    },
    "name": "get_query_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYesOpaque token from ``get_sample_runs``.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the readOnlyHint annotation it discloses non-obvious data semantics: answer_text is the model's own markdown, never the provider JSON envelope; an empty string means no readable answer; web_search_queries preserves order and repeats. It also explains that null searches plus null count means the searches were not recorded (Perplexity, older parses), which prevents misreading missing data as 'no searches'. It does not cover auth, rate limits, or error behavior, so it falls short of a 5.

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 the core action and the sibling contrast, then organized into one paragraph per return concept. Some length is spent explaining output fields that the output schema already declares, which is mild redundancy for a one-parameter tool.

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 single-parameter read tool with an output schema and read-only annotations, the description is more than sufficient, and the null-versus-empty distinctions close the main interpretive risk. The remaining detail about field-level return shapes is correctly left to the output schema.

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 run_id is already documented as an opaque token from get_sample_runs, so the description only restates that provenance rather than adding format, validation, or failure semantics. Baseline 3 applies when the schema carries the parameter meaning.

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?

States a specific verb and resource ('Read ONE run in full') and enumerates exactly what comes back: complete answer text, brand mentions, citations, web searches. It explicitly contrasts with get_sample_runs (list with truncated excerpt), so an agent can pick the right tool without opening either schema.

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?

Gives an explicit when-to-use rule: take a run_id from get_sample_runs and call this when you need the whole answer for a single run. The alternative and the selection condition are both named, leaving nothing to inference.

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