Skip to main content
Glama

List web search queries from tracked AI answers

get_query_fanout
Read-onlyIdempotent

Read the web search queries captured during tracked AI Search runs. Only active prompts, selected models and runs with captured queries appear. Each row links the queries to a saved answer run and prompt.

Continue with nextOffset using the same dates and filters. Use get_ai_search_prompt_run for the saved answer and citations.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "endDate": "2026-01-31",
      "promptId": 37,
      "startDate": "2026-01-01"
    },
    "name": "get_query_fanout"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoPage size for the matching records. Omit for 20 records per page.
modelNoModel ID shown in list_ai_search_prompt_runs. Omit to include all selected models.
offsetNoSet to the previous page’s nextOffset and keep the filters fixed.
contextNoUser task for usage analytics. Omit private details.
endDateYesInclusive upper bound of the reporting window.
promptIdNoTracked prompt record ID from get_project_prompts.
llm_modelNoExact model ID from the calling runtime. Send on every call when known. Omit if unavailable.
projectIdNoProject ID from list_projects. Omit to use the configured or sole accessible project.
startDateYesInclusive lower bound of the reporting window.

Output Schema

NameRequiredDescriptionDefault
dataNoSaved runs with captured search queries, newest first. Continue with the returned nextOffset.
successYesTrue when the tool returns normally.
executionTimeNoElapsed time, e.g. 0.12s.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedOutput schema / then / properties / category / description
      Removed value: -"Failure class."
    • removedOutput schema / then / properties / error / description
      Removed value: -"Why the call failed."
    • removedOutput schema / then / properties / errorCode / description
      Removed value: -"Stable failure code."
    • removedOutput schema / then / properties / expected / description
      Removed value: -"Known failure."
    • removedOutput schema / then / properties / statusCode / description
      Removed value: -"HTTP error status."
  2. Changed3 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Non-sensitive task summary for usage analytics."New value: +"User task for usage analytics. Omit private details."
    • changedInput schema / properties / llm_model / description
      Previous value: -"Exact model ID from the calling runtime for usage attribution. Send on every call when known."New value: +"Exact model ID from the calling runtime. Send on every call when known. Omit if unavailable."
    • changedInput schema / properties / offset / description
      Previous value: -"For subsequent pages, pass the previous result’s nextOffset and keep the filters fixed."New value: +"Set to the previous page’s nextOffset and keep the filters fixed."
  3. Changed5 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Task label for usage analytics. Omit private details."New value: +"Non-sensitive task summary for usage analytics."
    • changedInput schema / properties / endDate / description
      Previous value: -"Last included day of the reporting period."New value: +"Inclusive upper bound of the reporting window."
    • changedInput schema / properties / limit / description
      Previous value: -"Number of matching rows per response. Defaults to 20."New value: +"Page size for the matching records. Omit for 20 records per page."
    • changedInput schema / properties / offset / description
      Previous value: -"Page offset. Omit for the first page, then supply nextOffset from the previous response with the same filters."New value: +"For subsequent pages, pass the previous result’s nextOffset and keep the filters fixed."
    • changedInput schema / properties / startDate / description
      Previous value: -"First included day of the reporting period."New value: +"Inclusive lower bound of the reporting window."
  4. Changed21 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Call purpose for analytics. Omit private details."New value: +"Task label for usage analytics. Omit private details."
    • addedInput schema / properties / context / examples
      Added value: +[
      +  "compare landing pages"
      +]
    • addedInput schema / properties / llm_model / examples
      Added value: +[
      +  "openai/gpt-5.4-mini"
      +]
    • removedOutput schema / description
      Removed value: -"Tool result. On failure, read error and any recovery message."
    • removedOutput schema / properties / action
      Removed value: -{
      -  "description": "Client response to the project chooser.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / category
      Removed value: -{
      -  "description": "Failure class.",
      -  "type": "string"
      -}
    • changedOutput schema / properties / data / properties / data / items / properties / groups / items / properties / id / description
      Previous value: -"Stable ID for later reads or edits."New value: +"Record ID."
    • changedOutput schema / properties / data / properties / data / items / properties / id / description
      Previous value: -"Stable ID for later reads or edits."New value: +"Record ID."
    • removedOutput schema / properties / details
      Removed value: -{
      -  "description": "Error-specific diagnostics.",
      -  "type": "object"
      -}
    • removedOutput schema / properties / error
      Removed value: -{
      -  "description": "Reason the tool call failed.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / errorCode
      Removed value: -{
      -  "description": "Stable failure code, when available.",
      -  "type": "string"
      -}
    • changedOutput schema / properties / executionTime / description
      Previous value: -"Duration in seconds with an s suffix."New value: +"Elapsed time, e.g. 0.12s."
    • removedOutput schema / properties / expected
      Removed value: -{
      -  "description": "Known failure condition.",
      -  "type": "boolean"
      -}
    • removedOutput schema / properties / message
      Removed value: -{
      -  "description": "Outcome, required input, or recovery instructions.",
      -  "type": "string"
      -}
    • removedOutput schema / properties / projects
      Removed value: -{
      -  "description": "Choose a projectId and retry.",
      -  "items": {
      -    "properties": {
      -      "id": {
      -        "description": "Project ID to pass as projectId.",
      -        "type": "number"
      -      },
      -      "name": {
      -        "description": "Project name to show in the chooser.",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id",
      -      "name"
      -    ],
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedOutput schema / properties / retryable
      Removed value: -{
      -  "description": "Safe to retry unchanged.",
      -  "type": "boolean"
      -}
    • removedOutput schema / properties / statusCode
      Removed value: -{
      -  "description": "HTTP status of the failure, if set.",
      -  "type": "integer"
      -}
    • changedOutput schema / properties / success / description
      Previous value: -"True when the tool ran successfully."New value: +"True when the tool returns normally."
    • removedOutput schema / properties / upgrade
      Removed value: -{
      -  "description": "Plan upgrade options.",
      -  "type": "object"
      -}
    • removedOutput schema / properties / url
      Removed value: -{
      -  "description": "Recovery or completion link.",
      -  "type": "string"
      -}
    • addedOutput schema / then / properties
      Added value: +{
      +  "action": {
      +    "description": "Project chooser action.",
      +    "type": "string"
      +  },
      +  "category": {
      +    "description": "Failure class.",
      +    "type": "string"
      +  },
      +  "details": {
      +    "description": "Error-specific diagnostics.",
      +    "type": "object"
      +  },
      +  "error": {
      +    "description": "Why the call failed.",
      +    "type": "string"
      +  },
      +  "errorCode": {
      +    "description": "Stable failure code.",
      +    "type": "string"
      +  },
      +  "expected": {
      +    "description": "Known failure.",
      +    "type": "boolean"
      +  },
      +  "message": {
      +    "description": "Recovery instructions.",
      +    "type": "string"
      +  },
      +  "projects": {
      +    "description": "Choose a projectId and retry.",
      +    "items": {
      +      "properties": {
      +        "id": {
      +          "description": "Pass as projectId.",
      +          "type": "number"
      +        },
      +        "name": {
      +          "description": "Project name to show in the chooser.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "name"
      +      ],
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "retryable": {
      +    "description": "Safe to retry unchanged.",
      +    "type": "boolean"
      +  },
      +  "statusCode": {
      +    "description": "HTTP error status.",
      +    "type": "integer"
      +  },
      +  "upgrade": {
      +    "description": "Plan upgrade options.",
      +    "type": "object"
      +  },
      +  "url": {
      +    "description": "Recovery or completion link.",
      +    "type": "string"
      +  }
      +}
  5. Changed16 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "endDate": "2026-01-31",
      +    "promptId": 37,
      +    "startDate": "2026-01-01"
      +  }
      +]
    • changedInput schema / properties / context / description
      Previous value: -"Short reason for this call in the activity log, e.g. \"check landing page traffic\". Leave out private data."New value: +"Call purpose for analytics. Omit private details."
    • changedInput schema / properties / limit / description
      Previous value: -"Rows to inspect per page. The default page size is 20."New value: +"Number of matching rows per response. Defaults to 20."
    • changedInput schema / properties / llm_model / description
      Previous value: -"Exact model ID from the calling runtime for usage attribution. Include it on every call when known."New value: +"Exact model ID from the calling runtime for usage attribution. Send on every call when known."
    • changedInput schema / properties / model / description
      Previous value: -"Filter runs to the exact saved model ID."New value: +"Model ID shown in list_ai_search_prompt_runs. Omit to include all selected models."
    • changedInput schema / properties / offset / description
      Previous value: -"Use nextOffset from the preceding page to continue with the same filters. Start without a cursor."New value: +"Page offset. Omit for the first page, then supply nextOffset from the previous response with the same filters."
    • changedInput schema / properties / projectId / description
      Previous value: -"Atomic project ID from list_projects. Omit to use the configured project. If asked to choose, retry with an accessible ID."New value: +"Project ID from list_projects. Omit to use the configured or sole accessible project."
    • addedInput schema / properties / projectId / examples
      Added value: +[
      +  42
      +]
    • changedInput schema / properties / promptId / description
      Previous value: -"Saved tracked prompt ID from get_project_prompts, not a one-off test run ID."New value: +"Tracked prompt record ID from get_project_prompts."
    • changedOutput schema / description
      Previous value: -"Read data for the tool result. On failure, read error and any recovery message."New value: +"Tool result. On failure, read error and any recovery message."
    • changedOutput schema / properties / data / description
      Previous value: -"Saved prompt runs with their captured search queries. Null queries indicate unavailable capture."New value: +"Saved runs with captured search queries, newest first. Continue with the returned nextOffset."
    • addedOutput schema / properties / data / properties / data / items / properties / groups / description
      Added value: +"Prompt topic IDs and names for the tracked prompt."
    • removedOutput schema / properties / data / properties / data / items / properties / groups / items / description
      Removed value: -"Operation-specific object."
    • addedOutput schema / properties / data / properties / data / items / properties / groups / items / properties
      Added value: +{
      +  "id": {
      +    "description": "Stable ID for later reads or edits.",
      +    "type": "number"
      +  },
      +  "name": {
      +    "description": "Display name.",
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / data / properties / data / items / properties / groups / items / required
      Added value: +[
      +  "id",
      +  "name"
      +]
    • addedOutput schema / properties / data / properties / data / items / properties / queries / description
      Added value: +"Search phrases captured during this answer run."
  6. Changed26 schema fields changed
    • changedOutput schema / description
      Previous value: -"On success read data. On failure read error and errorCode."New value: +"Read data for the tool result. On failure, read error and any recovery message."
    • addedOutput schema / else
      Added value: +{
      +  "required": [
      +    "data"
      +  ]
      +}
    • addedOutput schema / if
      Added value: +{
      +  "properties": {
      +    "success": {
      +      "const": false
      +    }
      +  }
      +}
    • addedOutput schema / properties / action
      Added value: +{
      +  "description": "Client response to the project chooser.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / data / properties / data / description
      Previous value: -"Result items or operation data inside this returned payload. Pagination fields describe only this result page."New value: +"Items or result for this call."
    • changedOutput schema / properties / data / properties / data / items / properties / createdAt / description
      Previous value: -"Date and time this record was created, serialized as ISO 8601."New value: +"Creation time (ISO 8601)."
    • changedOutput schema / properties / data / properties / data / items / properties / groups / items / description
      Previous value: -"Nested operation-specific fields."New value: +"Operation-specific object."
    • changedOutput schema / properties / data / properties / data / items / properties / id / description
      Previous value: -"Identifier of this returned resource. Use it for subsequent reads or edits of the same resource."New value: +"Stable ID for later reads or edits."
    • changedOutput schema / properties / data / properties / data / items / properties / model / description
      Previous value: -"Model identifier used for the reported generation or AI-search run."New value: +"Model used for this generation or search run."
    • removedOutput schema / properties / data / properties / data / items / properties / queries / anyOf
      Removed value: -[
      -  {
      -    "type": "null"
      -  },
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  }
      -]
    • addedOutput schema / properties / data / properties / data / items / properties / queries / items
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / properties / data / items / properties / queries / type
      Added value: +[
      +  "array",
      +  "null"
      +]
    • removedOutput schema / properties / data / properties / nextOffset / anyOf
      Removed value: -[
      -  {
      -    "type": "null"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
    • changedOutput schema / properties / data / properties / nextOffset / description
      Previous value: -"Offset for the next result page; null means this listing is complete."New value: +"Next offset, or null at the end."
    • addedOutput schema / properties / data / properties / nextOffset / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • changedOutput schema / properties / data / properties / total / description
      Previous value: -"Total number of matching items across all result pages."New value: +"Matching items across all pages."
    • changedOutput schema / properties / details / description
      Previous value: -"Additional diagnostics for the reported failure code."New value: +"Error-specific diagnostics."
    • changedOutput schema / properties / errorCode / description
      Previous value: -"Machine-readable failure code for choosing a recovery action."New value: +"Stable failure code, when available."
    • changedOutput schema / properties / executionTime / description
      Previous value: -"Elapsed seconds with s suffix."New value: +"Duration in seconds with an s suffix."
    • changedOutput schema / properties / projects / items / properties / id / description
      Previous value: -"Project ID for projectId."New value: +"Project ID to pass as projectId."
    • changedOutput schema / properties / projects / items / properties / name / description
      Previous value: -"Project name to show when asking the user to choose."New value: +"Project name to show in the chooser."
    • addedOutput schema / properties / projects / items / required
      Added value: +[
      +  "id",
      +  "name"
      +]
    • changedOutput schema / properties / statusCode / description
      Previous value: -"HTTP-style status."New value: +"HTTP status of the failure, if set."
    • changedOutput schema / properties / statusCode / type
      Previous value: -"number"New value: +"integer"
    • changedOutput schema / properties / success / description
      Previous value: -"Whether the call succeeded."New value: +"True when the tool ran successfully."
    • addedOutput schema / then
      Added value: +{
      +  "required": [
      +    "error"
      +  ]
      +}
  7. Changed4 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Purpose for the activity log, for example \"check landing page traffic\". Exclude private content and personal data."New value: +"Short reason for this call in the activity log, e.g. \"check landing page traffic\". Leave out private data."
    • changedInput schema / properties / limit / description
      Previous value: -"Records per page. Omit for 20 records."New value: +"Rows to inspect per page. The default page size is 20."
    • changedInput schema / properties / llm_model / description
      Previous value: -"Exact model ID from the calling runtime for usage attribution. Report it on every call when known. Omit it if unavailable; never guess or ask the user."New value: +"Exact model ID from the calling runtime for usage attribution. Include it on every call when known."
    • changedInput schema / properties / offset / description
      Previous value: -"Start of the requested slice. Use nextOffset from the previous result."New value: +"Use nextOffset from the preceding page to continue with the same filters. Start without a cursor."
  8. Changed9 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Purpose for the activity log. Exclude private content and personal data."New value: +"Purpose for the activity log, for example \"check landing page traffic\". Exclude private content and personal data."
    • changedInput schema / properties / llm_model / description
      Previous value: -"Exact runtime model ID for usage attribution. Report on every call when known; never guess or ask."New value: +"Exact model ID from the calling runtime for usage attribution. Report it on every call when known. Omit it if unavailable; never guess or ask the user."
    • changedInput schema / properties / projectId / description
      Previous value: -"Accessible Atomic project ID from list_projects. Defaults to the configured project."New value: +"Atomic project ID from list_projects. Omit to use the configured project. If asked to choose, retry with an accessible ID."
    • addedOutput schema / properties / details / description
      Added value: +"Additional diagnostics for the reported failure code."
    • addedOutput schema / properties / error / description
      Added value: +"Reason the tool call failed."
    • addedOutput schema / properties / errorCode / description
      Added value: +"Machine-readable failure code for choosing a recovery action."
    • addedOutput schema / properties / message / description
      Added value: +"Outcome, required input, or recovery instructions."
    • addedOutput schema / properties / projects / items / properties / name / description
      Added value: +"Project name to show when asking the user to choose."
    • addedOutput schema / properties / success / description
      Added value: +"Whether the call succeeded."
  9. Changed5 schema fields changed
    • changedInput schema / properties / endDate / description
      Previous value: -"Last date to include, in YYYY-MM-DD format."New value: +"Last included day of the reporting period."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of records to return. Defaults to 20."New value: +"Records per page. Omit for 20 records."
    • changedInput schema / properties / offset / description
      Previous value: -"Zero-based offset. Use nextOffset from the previous result."New value: +"Start of the requested slice. Use nextOffset from the previous result."
    • changedInput schema / properties / startDate / description
      Previous value: -"First date to include, in YYYY-MM-DD format."New value: +"First included day of the reporting period."
    • addedOutput schema / properties / data / description
      Added value: +"Saved prompt runs with their captured search queries. Null queries indicate unavailable capture."
  10. Added

TDQS

A4.1/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description still adds real value beyond them: the visibility filter (only active prompts, selected models, and runs with captured queries appear) and the pagination contract (carry nextOffset forward with unchanged filters and dates). It stops short of any volume or rate-limit disclosure, which keeps it out of the top band.

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?

Three tight sentences plus a one-line continuation, with the core purpose front-loaded and no filler. The pagination sentence mildly duplicates the offset parameter's schema description, which is the only redundancy.

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?

With nine parameters, a full output schema, and comprehensive annotations, the description supplies the pieces the structured fields cannot: the fanout-to-run-and-prompt linkage and the visibility filter that explains empty results. The presence of an output schema means return values need no explanation, so the remaining omission is minor.

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 every one of the nine parameters is already documented in the schema, including limit, offset, model, promptId and context. The description paraphrases the pagination rule (nextOffset with the same dates and filters) but adds no syntax or semantics beyond what the schema already states, so the baseline of 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?

The first sentence names a specific verb and resource: read the web search queries captured during tracked AI Search runs. It also states the row grain ("Each row links the queries to a saved answer run and prompt"), which makes the tool distinguishable from list_ai_search_prompt_runs, and it names the sibling to use instead when the saved answer and citations are wanted.

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?

Clear routing is provided: use get_ai_search_prompt_run for the saved answer and citations, and resume paging with nextOffset while holding dates and filters fixed. There is no explicit statement of when *not* to call this tool (for example, when no runs have captured queries), but the eligibility caveat ("Only active prompts, selected models and runs with captured queries appear") covers the main failure mode.

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