Skip to main content
Glama

Get Keyword Rank & Fit History

get_keyword_history
Read-onlyIdempotent

Retrieve daily historical snapshots for a single keyword—including Google rank, on-page fit score, clean UV, AI referrals, and release pins—to diagnose trends and performance changes.

Instructions

Retrieve daily historical snapshots (Google rank, on-page fit score, clean UV, AI referrals) and deployed release pins for a single keyword_id. Use for trend diagnostics on one keyword; for current summary rows across all keywords, use list_keywords. Read-only via read token; HTTP 404 if unknown keyword_id.

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": {
      "site_id": "<site_id>",
      "keyword_id": "<keyword_id>"
    },
    "name": "get_keyword_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNoNumber of trailing days to include in daily history (default 30).
site_idYesPrismUV site slug identifier (e.g. "prismuv-abc123") returned by list_sites.
keyword_idYesKeyword identifier obtained from list_keywords.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.1.1
    • addedInput schema / properties / days / default
      Added value: +30
    • changedInput schema / properties / days / description
      Previous value: -"Window days 7..180 (default 30)"New value: +"Number of trailing days to include in daily history (default 30)."
    • addedInput schema / properties / days / maximum
      Added value: +180
    • addedInput schema / properties / days / minimum
      Added value: +7
    • changedInput schema / properties / days / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / keyword_id / description
      Added value: +"Keyword identifier obtained from list_keywords."
    • addedInput schema / properties / site_id / description
      Added value: +"PrismUV site slug identifier (e.g. \"prismuv-abc123\") returned by list_sites."
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description still adds value with the auth mechanism ("read-only via read token") and the concrete failure mode ("HTTP 404 if unknown keyword_id"), which an agent needs to handle errors. It stops short of describing response shape or whether history is truncated or backfilled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero filler. The payload contents and scope lead, followed by the sibling routing and the error case, so the most decision-relevant information is front-loaded.

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 job of telling the agent what comes back, and it does so by naming the four per-day metrics and the release pins. Scope, auth mode and the 404 case are covered; only windowing behavior (e.g. what happens when days exceeds available history) is left implicit.

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%: days, site_id and keyword_id are all documented in the schema, including the 7–180 range and defaults. The description reinforces that keyword_id must identify a single keyword but adds no syntax or format detail beyond what the schema already supplies, 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 description names a specific verb and resource ("Retrieve daily historical snapshots") and enumerates exactly what a snapshot contains: Google rank, on-page fit score, clean UV, AI referrals, plus deployed release pins, all scoped to a single keyword_id. That level of detail lets an agent separate it from list_keywords without opening either schema.

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?

It states the intended use case ("trend diagnostics on one keyword") and explicitly routes the agent to the alternative for the other case ("for current summary rows across all keywords, use list_keywords"). The when-to-use and the competing option are both named, leaving nothing to infer.

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