Skip to main content
Glama

get_keyword_performance

Retrieve keyword spending performance metrics—cost, clicks, CTR, CPC, and conversions—over a specified date range, and filter by campaign to analyze and optimize ad spend.

Instructions

Get keyword spending performance — cost, clicks, CTR, CPC, conversions over a date range. Filter by campaign.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_keyword_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
date_rangeNoDate range: LAST_7_DAYS, LAST_30_DAYS, etc.LAST_30_DAYS
campaign_idNoFilter to a specific campaign ID
customer_idNoGoogle Ads customer ID (no dashes). Uses active account if not provided.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.1

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description must carry the behavioral burden. 'Get' implies a read-only operation and the description discloses which metrics are returned, but it does not explicitly confirm read-only behavior, authentication needs, rate limits, or data freshness. These are moderate gaps for a read-only reporting tool.

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?

The description is a single, front-loaded sentence with zero waste. It states the core operation, the metrics, and the filtering scope immediately.

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?

The tool is simple: three optional parameters, full schema coverage, and an output schema. The description covers the core operation, returned metrics, and filtering. It is nearly complete, though it could say more about when to choose this over sibling performance tools.

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 the schema already documents date_range, campaign_id, and customer_id. The description reinforces date-range filtering and campaign filtering, but it does not add syntax or meaning beyond what the schema provides. The baseline score of 3 is appropriate when the schema does the heavy lifting.

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?

The description states a specific verb and resource: 'Get keyword spending performance.' It also names the metrics returned (cost, clicks, CTR, CPC, conversions) and the date-range scope. It does not explicitly distinguish this from sibling performance tools such as get_campaign_performance or get_ad_group_performance, so sibling differentiation is only implicit in the word 'keyword.'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'Filter by campaign' implies a use case for narrowing results, but there is no explicit guidance on when to use this tool versus campaign-level or ad-group-level performance tools. The usage context is inferable but not clearly stated.

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

Deploy Server

Other Tools