Skip to main content
Glama

ADS MCP

Keyword Performance Stats

get_keyword_stats
Read-only

Get performance metrics (clicks, impressions, cost, conversions, absolute top impression %) for all active keywords over a date range. Use this to find top-performing keywords, identify what to bid more aggressively on, or compare short vs long time frames. date_from and date_to are YYYY-MM-DD. Omit campaign_id to get account-wide stats. Results sorted by clicks descending.

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": {
      "user_intent": "<user_intent>",
      "date_from": "<date_from>",
      "date_to": "<date_to>"
    },
    "name": "get_keyword_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoOptional. Max keywords to return. Default 200.
date_toYesEnd date YYYY-MM-DD. Usually today.
date_fromYesStart date YYYY-MM-DD. E.g. 30 days ago for short-term, 180 days for long-term.
campaign_idNoOptional. Filter to one campaign.
customer_idNo
user_intentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds two genuinely useful behaviors: omission of campaign_id yields account-wide stats, and results are ordered by clicks descending. It does not disclose row volume, pagination, or any scope caveat such as keywords with zero impressions.

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?

Front-loaded with metrics and scope, then use cases, then parameter conventions, then output ordering — a sensible order with almost no filler. Slightly longer than needed, since the use-case sentence could be trimmed without losing routing information.

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 read-only 6-parameter tool with no output schema, the description covers filtering scope, date formats, and result ordering adequately. Missing detail on what a returned row contains and the absence of any hint about the required user_intent parameter keep it from being fully complete.

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 coverage is 67%, and the description adds real meaning for two parameters: the YYYY-MM-DD format for date_from/date_to and the account-wide semantics of omitting campaign_id. However, user_intent (a required parameter) and customer_id are explained in neither schema nor description, which is a notable gap for a required field.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States the specific verb and resource plus the exact metric set (clicks, impressions, cost, conversions, absolute top impression %), which no sibling name suggests (get_campaign_stats is campaigns, get_keyword_ideas/metrics are different endpoints). It does not address how it differs from close siblings like get_keyword_metrics, so an agent could still hesitate between the two.

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?

Gives concrete use cases: finding top performers, deciding where to bid more aggressively, and comparing short vs long time frames. There is no explicit when-not guidance or named alternative for overlapping tools, which keeps it below a 5.

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.