Skip to main content
Glama
get-mcp-ads

Google Ads by Get MCP Ads

google ads get account hierarchy

google_ads_get_account_hierarchy
Read-onlyIdempotent

Discover accessible Google Ads accounts and map manager-client relationships. Falls back to listing accounts when hierarchy data is unavailable.

Instructions

List accessible customers and, where possible, manager/client relationships from GAQL customer_client. Falls back to accessible customers if hierarchy queries are unavailable.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
includeInactiveNoInclude non-ENABLED customer_client links
managerCustomerIdNoMCC Manager account ID (required for sub-accounts managed by an MCC)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesOriginal tool result: parsed JSON when the text is JSON, otherwise the text or multiple MCP content blocks. Provider fields depend on the selected query.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, and idempotent behavior; the description adds meaningful behavioral context by noting it falls back to accessible customers when hierarchy queries are unavailable. This is valuable beyond the annotations and helps set expectations for variable output depending on API availability.

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?

Two focused sentences with no filler. Key behavior is front-loaded, and the fallback note is concise but informative. Every word earns its place.

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 read-only tool with full parameter schema coverage, an output schema, and clear annotations, the description covers the core behavior and edge-case fallback. Nothing essential for an agent to select or invoke the tool correctly 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 the schema already documents both parameters well. The description does not add explicit parameter-level detail, but that is not necessary given complete schema coverage; baseline 3 is appropriate.

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 clearly states the tool lists accessible customers and manager/client relationships from GAQL customer_client, with a specific verb and resource. The fallback behavior further clarifies what the tool does when hierarchy queries are unavailable, distinguishing it from generic account-listing tools.

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 description implies the tool is for retrieving account hierarchy information but does not explicitly state when to use it over siblings like google_ads_list_accounts or google_ads_get_account_details. The use case is reasonably clear from context, but no alternatives or exclusions are named.

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