Skip to main content
Glama
Google Ads MCP Server

Google Ads MCP Server

get_account_hierarchy

Retrieves the full Google Ads account hierarchy from a top-level manager account ID, showing manager and client account relationships for clear account structure review.

Instructions

Get the full account hierarchy showing relationships between manager and client accounts.

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": {
      "customerId": "<customerId>"
    },
    "name": "get_account_hierarchy"
  }
}

Input Schema

NameRequiredDescriptionDefault
customerIdYesThe top-level manager account ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. 'Get' implies a read-only operation, which is useful, but it says nothing about return shape (nested tree vs. flat list), hierarchy depth limits, pagination, or permission requirements for manager accounts.

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?

One compact sentence with the resource and scope front-loaded and no filler. It is efficient, though arguably too terse given the ambiguity of what 'hierarchy' returns.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter read tool with no output schema, the description is adequate but leaves the return structure unspecified — an agent cannot tell whether it gets a nested tree or a flat pair list, which matters for how results are consumed.

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 100% and the single parameter customerId is documented as 'The top-level manager account ID.' The description reinforces that the traversal starts at the top-level manager account but adds no format, ID-type, or validation detail beyond the schema.

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 a specific verb and resource: 'Get the full account hierarchy,' plus the meaning of the data — manager/client relationships. It is distinguishable from the many performance and detail siblings, though it does not name any of them explicitly.

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?

Usage is only implied: 'full account hierarchy' suggests it should be used when the whole tree is needed rather than a single account. There is no explicit when-to-use, no exclusion (e.g., 'use get_customer_details for a single account'), and no stated prerequisites such as manager-account access.

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