Skip to main content
Glama

Diagnose a change

diagnose_performance
Read-only

First call for any 'why did results / ROAS / CPA / leads drop or rise?' question about a client. Runs Go Shift's diagnosis in one call: compares the period with the one before it from stored history (per platform, with which changes are real: ≥15% on enough volume), reads the client's targets and learnings, the seasons in the period, each platform's tracking audit and recent change history, then names the first broken layer (0 tracking signal, 1 delivery/auction, 2 attention/creative, 3 click quality, 4 conversion, 5 post-conversion, 6 measurement window) with confidence, the evidence, what data was missing and the checks that would confirm it. Read-only. Use its numbers as given; never fill in a missing source.

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": {
      "folder": "<folder>"
    },
    "name": "diagnose_performance"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderYesClient folder name.
accountNoOne ad account of the client (ID or name). Default: all its accounts.
end_dateNoPeriod A end, YYYY-MM-DD. Default: yesterday.
languageNo
platformsNoLimit to these platforms. Default: every platform the client has.
start_dateNoPeriod A start, YYYY-MM-DD. Default: the last 7 finished days.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and destructiveHint=false, yet the description adds substantial behavioral detail: it discloses the ≥15%-on-enough-volume significance threshold used to call a change real, the default comparison window, the seven-layer taxonomy the diagnosis resolves to, and that unavailability is surfaced as missing data rather than imputed. That threshold and the no-fabrication rule are things an agent could not infer from the annotations or schema.

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 correctly with the routing statement first, and no filler sentences. The middle sentence is a long run-on that stacks the comparison logic, the layer taxonomy, and the evidence/missing-data output into one breath, which costs some scanability but every clause carries real information.

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?

With no output schema, the description must carry the return-shape burden, and it does: layer index, confidence, evidence, missing data, and confirming checks. What it leaves underspecified is the output's granularity (one verdict per client versus per platform, given the platforms parameter). For a read-only diagnostic with only one required parameter, that is a minor gap rather than a blocking one.

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 83%, so the schema already documents folder, account, dates, platforms, and language, including defaults. The description adds only indirect meaning — that the date range is 'Period A' compared against the preceding period, and that platform scope is per-platform in the analysis. That is a modest semantic gain over an already well-documented schema, so baseline 3 fits.

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 and resource ('Runs Go Shift's diagnosis') and enumerates exactly what the diagnosis produces: a period-over-period comparison, the broken-layer index (0-6), confidence, evidence, missing data, and confirming checks. It also carves out a clear question class ('why did results / ROAS / CPA / leads drop or rise?') that separates it from the per-platform *_performance siblings.

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?

Strong sequencing guidance: 'First call for any ... question about a client' tells the agent to reach for this before drilling into a single platform. It adds an operating constraint ('Use its numbers as given; never fill in a missing source') that shapes downstream behavior. It stops short of naming which sibling to escalate to when the diagnosis points at a given layer, so the alternative routing is implied rather than explicit.

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