Skip to main content
Glama
mcp-microsoft-ads

mcp-microsoft-ads

by wvuhskr

get_campaign_performance

Retrieve daily campaign performance metrics for 7, 14, or 30 days, including impressions, clicks, spend, conversions, cost per conversion, click-through rate, and average CPC.

Instructions

How each campaign did, day by day: impressions, clicks, spend, conversions, cost per conversion, click-through rate, average cost per click.

days must be 7, 14, or 30 (one row per day). For any other date range, other columns, or totals instead of daily rows, use run_report.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_campaign_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
daysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations supplied, the definition carries the full burden, and it does disclose real behavior: the exact metric set returned and the row granularity ('one row per day'). It leaves out things an agent might want to know, such as result-size limits, whether the campaign list can be paginated, or data-freshness/attribution caveats, so it falls short of fully descriptive.

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?

Front-loaded with the payload description in one sentence, then the constraint and the sibling routing in two short lines. There is no filler, and the routing rule lands at the end where it is most actionable.

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?

For a single-parameter read tool with no output schema, the description covers what the tool returns and how rows are shaped, which is the important part. It omits edge-case behavior (empty ranges, caps on campaigns per call) that would make it fully self-sufficient.

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 0% and the `days` property has no enum despite only three legal values, so the sentence 'days must be 7, 14, or 30' is the sole source of that constraint — genuinely additive meaning beyond the schema. It does not restate the 30-day default or clarify what happens on an out-of-range value, keeping it just below a top score.

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 names a specific verb/resource pair ('How each campaign did, day by day') and enumerates the returned measures (impressions, clicks, spend, conversions, cost per conversion, CTR, average CPC). It also explicitly distinguishes itself from run_report, so an agent can separate it from the generic reporting sibling without opening a schema.

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?

Usage rules are explicit and directional: 'days must be 7, 14, or 30' and 'For any other date range, other columns, or totals instead of daily rows, use run_report.' Both the when-to-use and the when-to-use-something-else conditions are stated outright.

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