Sample AI answers
get_sample_runsSample 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
| Name | Required | Description | Default |
|---|---|---|---|
| brand | Yes | Brand name from ``list_tracked_brands``. | |
| limit | No | Page size. Default 5, max 100. | |
| 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 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_date | No | ||
| mentioned | No | Optional. ``True`` → only runs where this brand was mentioned. ``False`` → only runs where it was not. ``None`` (default) → all runs. | |
| start_date | No | ||
| llm_provider | No | ``openai`` | ``claude`` | ``gemini`` | ``perplexity`` | ``grok``. | |
| excerpt_chars | No | Optional 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_id | No | Optional opaque token from ``list_prompts``. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||