Skip to main content
Glama

MentionBird

Sample AI answers

get_sample_runs
Read-only

Sample what the LLM actually answered, with metadata. Use to eyeball how the LLM answered — prominence and source strategy need context.

raw_response_excerpt is the assistant's answer text, extracted from the stored response — plain prose (markdown as written by the model), not the provider's JSON envelope. Truncated to 4096 characters per item, since whole-prompt answers can be very long; an empty string means the run stored no readable answer. Pass brand_prompt_id (opaque token from list_prompts) to drill into one prompt; combine with mentioned=True/False to find example runs where the brand was mentioned vs. runs where it was not.

web_search_query_count is how many web searches the AI ran before answering. 0 means it answered without searching; null means the number is not recorded — Perplexity never exposes its searches, and runs parsed before we started recording them have no count. The search terms themselves are on get_query_run.

mention_sentiment is how that one answer framed the brand: positive, neutral or negative. It is null when the answer never named the brand and "unknown" when it did but the run predates sentiment tracking — three distinct states, and neither of the last two means the model was neutral. get_query_run carries the same label per mentioned brand plus sentiment_reason, the phrase that drove it.

items holds parsed runs only. unparsed_run_count is how many other runs fall in the same scope (brand, prompt, provider, dates; not mentioned, since an unread answer's mentions aren't known), and unparsed_runs_by_status splits it: pending_parse runs have an answer that hasn't been read yet and usually appear here within 15 minutes; parse_failed and api_failed runs have no answer to show (api_failed never got one from the AI platform). When the count is above 0 the note says so.

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>"
    },
    "name": "get_sample_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
brandYesBrand name from ``list_tracked_brands``.
limitNoPage size. Default 5, max 100.
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 matching runs, so walk by advancing ``offset`` by ``returned_count`` while ``has_more`` is true. The sort is total (``run_at`` then run id), so a walk visits every run exactly once **within one snapshot** — runs parsed mid-walk enter at the head of the order and shift the window, so pass an ``end_date`` in the past to freeze the set for a long walk. Lower ``excerpt_chars`` when walking: at the default a full page carries ~400 KB of answer text, and the walk is a page-count multiple of that.
end_dateNo
mentionedNoOptional. ``True`` → only runs where this brand was mentioned. ``False`` → only runs where it was not. ``None`` (default) → all runs.
start_dateNo
llm_providerNo``openai`` | ``claude`` | ``gemini`` | ``perplexity`` | ``grok``.
excerpt_charsNoOptional cap on ``raw_response_excerpt`` per item. Defaults to the full 4096; values are clamped into 1..4096, so 0 or a negative asks for the *shortest* excerpt, not the longest. Lower it when the caller has a response-size ceiling — the REST/OpenAPI transport passes a small preview and points callers at ``get_query_run`` for the whole answer. MCP clients stream and have no such ceiling, so the default is unchanged for them.
brand_prompt_idNoOptional opaque token from ``list_prompts``.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Goes well past the readOnlyHint/openWorldHint annotations by disclosing edge-case semantics an agent would otherwise get wrong: excerpt truncation at 4096 chars, empty string meaning 'no readable answer', 0 vs null for web_search_query_count with the Perplexity/no-recording causes, and three distinct mention_sentiment states that are explicitly not equivalent to 'neutral'. It also explains that items holds parsed runs only while unparsed_run_count/unparsed_runs_by_status account for the rest, including ~15 minute pending_parse latency.

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?

Purpose and usage are front-loaded in the first two sentences, which is good. After that it becomes a long field-by-field glossary whose content duplicates the parameter schema and largely overlaps the output schema, and it spends several sentences on return-value edge cases rather than tool selection. Informative but noticeably over-long for a read-only sampler.

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 9-parameter, high-complexity tool with an output schema, the description covers everything an agent needs in order to call it correctly: scope, paging/walk behavior, per-field null-vs-value meanings, and where the excluded unparsed runs went. The remaining details live in the schema, and nothing important is left unexplained.

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 high (78%) and the schema already documents limit, offset walking, mentioned, llm_provider, excerpt_chars and brand_prompt_id in detail. The description mostly restates that (4096 truncation, mentioned True/False, brand_prompt_id from list_prompts) and adds only limited new meaning, such as pairing brand_prompt_id with mentioned and lowering excerpt_chars on long walks. Baseline 3 is appropriate; it doesn't compensate further.

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?

Opening line states a concrete verb and object: sample the LLM's actual answers with metadata, for eyeballing *how* the model answered. It repeatedly contrasts itself with get_query_run (full answer, search terms, per-brand sentiment reason), so an agent can place it among siblings. The verb 'Sample' is slightly loose for what is really a paginated run-listing, keeping it from a 5.

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?

Concrete usage patterns are given: pass brand_prompt_id to drill into one prompt, combine it with mentioned=True/False to find example runs, lower excerpt_chars when walking pages, and go to get_query_run for the underlying search terms or sentiment_reason. What's missing is any explicit 'not this tool when…' exclusion, so it stops short of full routing guidance.

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