Skip to main content
Glama

Execute Microsoft Ads report query

ms_ads_execute_report_query
Read-only

Execute a Microsoft Ads performance report query for one account over a date range, returning JSON Lines (every line is a JSON object): the first line is a JSON Schema of the columns (carrying a "metadata":"schema" marker), then one JSON object per row with autodetected value types. Requires startDate, endDate and reportAggregation (performance data is time-bound). Covers metric reports over a date range, not entity/configuration snapshots (campaigns, ad groups, keywords with no metrics and no date range).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reportYesMicrosoft Ads report name.
columnsYesReport columns to select.
endDateYesReport end date (yyyy-MM-dd).
accountIdYesTrueClicks account id (the numeric Id field from the account listing, not the Microsoft customer id / ClientCustomerId). Must be a Microsoft account accessible by the connector.
startDateYesReport start date (yyyy-MM-dd).
predicatesNoOptional filter predicates, each with a column Name and one or more Values.
reportAggregationYesReport aggregation, e.g. "Summary", "Daily", "Weekly", "Monthly".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / accountId / description
      Previous value: -"Ad platform account ID to query (must be a Microsoft account accessible by the connector)."New value: +"TrueClicks account id (the numeric Id field from the account listing, not the Microsoft customer id / ClientCustomerId). Must be a Microsoft account accessible by the connector."
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish read-only and non-destructive behavior. The description adds meaningful behavioral detail by documenting the JSON Lines output contract: a schema-carrying first line, one JSON object per row, and autodetected value types. It does not mention pagination, limits, or failure modes, but for a read-only report query the added detail is strong.

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 dense but efficient: three sentences each carry real value, covering the output contract, mandatory parameters, and scope exclusions. The information is front-loaded and there is no filler.

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 description compensates well for the missing output schema by specifying the exact response shape and compensates for sibling ambiguity by scoping metric reports versus entity snapshots. Minor gaps remain around pagination, limits, and error handling, but the tool is adequately documented for correct invocation.

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 for parameters is 100%, so the baseline is 3. The description mostly reiterates that startDate, endDate, and reportAggregation are required and time-bound, without adding significant new meaning beyond the already-detailed schema descriptions for accountId, report, columns, and predicates.

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 states the exact action (execute), the resource (Microsoft Ads performance report query), and the scope (one account over a date range). It also explicitly distinguishes itself from entity/configuration snapshots, differentiating it from sibling report-list and bulk-query tools.

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

Usage Guidelines4/5

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

The description gives clear when-to-use guidance: performance/metric reports bound by a date range. It also states what it is not for (entity/configuration snapshots without metrics or date range), but it does not name the specific sibling tool to use instead, so it falls just short of the strongest routing guidance.

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