Skip to main content
Glama

Get an AI answer

get_ai_answer
Read-only

Retrieve a complete AI answer by ID, including the prompt, generated text, named apps and tone, cited pages, web searches, and follow-up questions for auditing.

Instructions

One answer in full: prompt, the engine's text, the tracked apps it named in order with the tone toward each, pages cited (url, type, passage used), web_searches, follow_ups. answer_id from list_ai_answers or get_ai_sentiment quotes. Read-only.

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": {
      "ai_app_id": "<ai_app_id>",
      "answer_id": "<answer_id>"
    },
    "name": "get_ai_answer"
  }
}

Input Schema

NameRequiredDescriptionDefault
ai_app_idYesid from list_ai_visibility_apps
answer_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.9.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already cover readOnlyHint/destructiveHint/openWorldHint, and the trailing 'Read-only' merely repeats them. The real added context is the return payload breakdown, useful because no output schema exists, but nothing is said about failure modes for an unknown answer_id or identifier mismatches.

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?

A single front-loaded sentence with a compact colon list; no filler beyond the redundant 'Read-only' tag. Dense but scannable, though the telegraphic style takes a moment to parse.

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 two-parameter read tool with no output schema, the description carries the return-shape burden well by naming every field returned. Minor gaps remain around error behavior and how the tone/passage fields are represented.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%: ai_app_id is documented in the schema, while answer_id is undocumented there but explained in the description as coming from list_ai_answers or get_ai_sentiment quotes. That meaning genuinely goes beyond the schema for the uncovered parameter.

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 (retrieve one answer in full) plus the resource, and enumerates the payload (prompt, engine text, tracked apps with tone, pages cited, web_searches, follow_ups), which clearly separates it from list_ai_answers and get_ai_sentiment.

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?

Tells the agent where answer_id comes from (list_ai_answers or get_ai_sentiment quotes), which implicitly routes enumeration/detail to the right siblings. It does not state an explicit 'use this instead of X when...' exclusion, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.