Skip to main content
Glama

Get Keyword History

get_keyword_history
Read-onlyIdempotent

Returns rank history for one tracked keyword, optionally for a specified competitor app. Available history is limited by plan: up to thirty days on Free and up to 365 days on Unlimited. Read-only.

Input Schema

NameRequiredDescriptionDefault
appIdNoOptional store app id to compute history for. Defaults to the tracked keyword's app.
trackedKeywordIdYesThe tracked-keyword row id (from list_keywords). Not the keyword string.

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
messageNo
successYes
widgetDataJsonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, and non-destructive behavior. The description adds useful behavioral context beyond annotations by disclosing plan-based history limits: 30 days on Free and 365 days on Unlimited. It repeats 'Read-only' but does not contradict annotations.

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?

Three sentences, front-loaded with the core return value and optional competitor scope. The plan-limit sentence earns its place by communicating a real constraint, and the final 'Read-only' note is short despite duplicating an annotation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has an output schema for return shape and rich annotations for safety behavior. The input schema fully documents both parameters, and the description adds the important plan-based history-window constraint. Nothing essential for correct invocation is missing.

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 both parameters are already well documented. The description adds limited semantic context by clarifying that appId is optionally for a competitor app, but it does not provide meaning beyond what the schema already supplies for trackedKeywordId.

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 states a specific verb and resource: returns rank history for one tracked keyword, optionally for a competitor app. This is clearly distinct from sibling list_keywords and list_keyword_competitors, which manage or list keywords rather than return historical rank data.

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?

It gives clear context for when the tool applies: retrieving rank history for a single tracked keyword, with an optional competitor app. It does not explicitly name alternatives or when-not conditions, but the intended usage is unambiguous.

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.