Skip to main content
Glama

Google Ads & Meta Ads

Google Ads: Get Resource Metadata

gads_get_resource_metadata
Read-onlyIdempotent

List the fields a Google Ads resource exposes to GAQL, with each field's data type, its enum values, and whether it can be selected, filtered or sorted on. Use it before gads_query when unsure what a resource is called or which fields it has — a guessed field name costs a rejected query. Pass a resource name in snake_case: campaign, ad_group, ad_group_criterion, ad_group_ad, customer, keyword_view, search_term_view, geographic_view, campaign_budget, conversion_action, asset, asset_group. Pass contains to narrow a wide resource, e.g. resource=campaign contains=bidding. Segments and metrics are their own resources: use resource=segments or resource=metrics to list those.

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": "<resource>"
    },
    "name": "gads_get_resource_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax fields, alphabetical. Default 200, max 500.
containsNoOnly fields whose full name contains this text, e.g. "bidding" or "status".
resourceYesResource name in snake_case, e.g. campaign, ad_group_criterion, segments, metrics.

Output Schema

NameRequiredDescriptionDefault
fieldsYesOne row per field.
resourceYesResource the fields belong to.
truncatedYesTrue when the cap was reached, so the resource has more fields than were returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive behavior, so the description focuses on what the agent gets back: per-field type, enum values, and select/filter/sort flags. It also discloses downstream consequences (rejected queries) and the resource/segment/metric distinction. It does not describe pagination or how the `limit` interacts with alphabetical ordering beyond what the schema already says.

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 the purpose, then usage, then parameter guidance — a sensible order with no filler sentences. The long resource-name enumeration and the restated 'snake_case' instruction are mildly redundant with the schema, but each line still carries operational value.

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 three-parameter read-only metadata lookup with a full output schema and complete schema descriptions, the definition covers everything an agent needs: what it returns, when to reach for it, and which resource names are legal. Nothing material is left to inference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds real value beyond it: it enumerates eleven valid resource names versus the schema's four illustrative examples, and gives a worked `contains` example ('resource=campaign contains=bidding') that the schema does not.

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?

States a specific verb and resource: list the fields a Google Ads resource exposes to GAQL, plus their data type, enum values, and select/filter/sort eligibility. It is immediately distinguishable from gads_query, which is named as the consumer of this information.

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?

Gives explicit when-to-use ('before gads_query when unsure what a resource is called or which fields it has') with the concrete consequence of skipping it ('a guessed field name costs a rejected query'). It also handles the edge case that segments and metrics are their own resources, which an agent would otherwise get wrong.

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.

Resources