Skip to main content
Glama

Read prompt metrics

read_prompt_metrics
Read-onlyIdempotent

Find which prompts the brand wins or loses. view list ranks one run's prompts by score, each with its visibility and citation rates, share of voice, average position among the tracked brands, win rate, net sentiment, web search share, the brands its answers named and its change against the previous run, paged (pass next_cursor). view history is one prompt's score per run with the Actions implemented along the way; view answers lists that prompt's answers across runs, newest first, with the brands named, your position, whether you were cited and whether the engine searched, each with a citeladder:// id for fetch. Null rates, win rate or sentiment are unavailable or not applicable, never zero. list defaults to the latest completed run; unavailable no_completed_run means none has finished. Use read_prompt_portfolio for the wording and topic of every tracked prompt, and read_visibility_results for every answer of one run.

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": {
      "project_id": "<project_id>"
    },
    "name": "read_prompt_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewNolist is one run's prompts (the default); history and answers are one prompt across runs and need prompt_id.list
limitNoHow many rows to return; omit for the default page size.
cohortNocore is the scored prompts (the default); comparison is the prompts that also name a competitor, reported separately; all is both.core
cursorNoThe next_cursor a previous page returned.
engineNoRead one engine only; omit for every engine.
audit_idNoWith view list: a run id (audit_id); omit for the latest.
market_idNoA market id from get_project_business_context; omit for the default market. Markets are never pooled.
prompt_idNoA prompt id from read_prompt_portfolio or read_prompt_metrics.
project_idYesA project id that list_projects returned.
baseline_idNoWith view list: an earlier run id to measure change against.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / engine / enum
      Previous value: -[
      -  "chatgpt_search",
      -  "gemini_consumer",
      -  "chatgpt",
      -  "gemini",
      -  "claude",
      -  "google_ai_overview"
      -]New value: +[
      +  "chatgpt_search",
      +  "gemini_consumer",
      +  "chatgpt",
      +  "gemini",
      +  "claude",
      +  "google_ai_overview",
      +  "google_ai_mode"
      +]
  2. Added

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds genuinely useful behavior beyond that: null means unavailable or not applicable, never zero; results are paged via next_cursor; list defaults to the latest completed run and an unavailable no_completed_run means none finished; answers are newest-first. That is real added context rather than restatement, so above baseline.

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?

Front-loaded with purpose, and every clause carries information, but it is a single dense run-on paragraph with semicolon chains that make view and parameter guidance hard to scan. Not padded, but poorly structured for an agent parsing it quickly.

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 no output schema, the description carries the burden of return values and mostly discharges it by enumerating the fields per view plus the error code and null semantics. What is missing is the response envelope itself (item container, where next_cursor sits) and any notion of run staleness beyond the default.

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 100%, so the baseline is 3. The description still adds meaning the schema doesn't fully carry: audit_id vs baseline_id framing as change measurement, cohort 'comparison' being reported separately, and the note that markets are never pooled, which matters for interpretation even though it duplicates the schema hint.

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?

Opens with a concrete outcome ("Find which prompts the brand wins or loses") and then defines the three views (list, history, answers) with the fields each returns. An agent can distinguish this from read_prompt_portfolio and read_visibility_results purely from the description.

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?

Explicitly routes the agent: read_prompt_portfolio for wording/topic of tracked prompts, read_visibility_results for every answer of one run, and this tool for per-prompt score/rank data. Also states the view-selection rule (list = one run, history/answers need prompt_id) and the default (latest completed run).

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