Skip to main content
Glama
google-ads-mcp

google-ads-mcp

by Walma-Labs

Get resource metadata

get_resource_metadata
Read-only

Retrieve selectable, filterable, and sortable fields for a Google Ads resource, including compatible metrics and segments, so you can build accurate queries instead of guessing field names.

Instructions

Retrieves the selectable, filterable and sortable fields for a Google Ads resource, including compatible metrics and segments.

Use this to find out which fields you can select, filter by or sort by when querying a resource (e.g. 'campaign', 'ad_group'). Metrics and segments that can be selected with the resource are included; their names start with 'metrics.' and 'segments.'.

Do not guess fields: you MUST use this tool to discover them before constructing a query for the search tool.

The answer does not change often, so reuse it within a conversation.

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": {
      "resource_name": "<resource_name>"
    },
    "name": "get_resource_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
resource_nameYesThe name of the Google Ads resource (e.g. 'campaign', 'ad_group').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the description does not need to re-establish safety. It does add genuinely useful behavior beyond them: the stability of the answer ('does not change often') and an explicit caching instruction ('reuse it within a conversation'), plus a description of the returned field families. It stops short of covering failure behavior for an invalid resource_name or any latency/rate considerations.

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 short paragraphs: purpose, what is returned, and a mandatory precondition. The most consequential instruction (do not guess fields) is set off in its own paragraph rather than buried, and no sentence is filler.

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?

For a one-parameter, read-only discovery tool with no output schema, the description supplies what the schema cannot: what the response contains, how metric and segment names are prefixed, and that the result is cacheable. Nothing an agent needs in order to call this correctly and reuse it 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% and the single parameter already carries its own description with the same 'campaign'/'ad_group' examples. The description's only added signal is that metrics and segments are reachable through the same call, which is about output rather than the parameter itself. Baseline 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.

Purpose5/5

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

Opens with a specific verb and resource: 'Retrieves the selectable, filterable and sortable fields for a Google Ads resource, including compatible metrics and segments.' It also scopes the output precisely with the 'metrics.' and 'segments.' prefixes, which separates it clearly from the sibling 'search' tool that consumes this metadata.

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 states when to use it ('to find out which fields you can select, filter by or sort by'), imposes a hard precondition ('Do not guess fields: you MUST use this tool... before constructing a query for the search tool'), and names the downstream alternative. There is no ambiguity about ordering relative to the search tool.

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