Skip to main content
Glama

Audit rule output table (historical)

audit_rule_output_table_historical
Read-only

Get the detailed output rows for one or more audit rules across multiple historical weeks for one account, as multi-block JSONL: one block per rule/week, starting with a JSON Schema line (marked "metadata": "schema", carrying the tooltips and column data types) followed by one JSON object per main row, its detail rows nested under "children". Every main row carries its "ruleKey" and "week", so the whole body is valid JSONL. Use to compare how findings changed over time. Weeks are identified by their Monday start date. Weeks with no completed run for a rule contribute no block.

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": {
      "accountId": "<accountId>",
      "ruleKeys": "<ruleKeys>",
      "weekStartDates": "<weekStartDates>"
    },
    "name": "audit_rule_output_table_historical"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoOptional maximum rows per rule per week.
ruleKeysYesOne or more audit rule key strings, e.g. "QueryMining_InefficientNGrams".
accountIdYesTrueClicks account id to retrieve results for (the numeric Id field from the account listing, not the platform customer id).
campaignIdsNoOptional campaign IDs to filter rows per rule per week. Omit or leave empty to return all rows.
weekStartDatesYesMonday week-start dates (yyyy-MM-dd) identifying the weeks to retrieve.

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 retrieve results for."New value: +"TrueClicks account id to retrieve results for (the numeric Id field from the account listing, not the platform customer id)."
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare it is a safe closed-world read, but the description goes well beyond that by disclosing the exact response shape: one block per rule/week, a JSON Schema header line marked "metadata": "schema" with tooltips and column types, main rows with detail rows nested under "children", and ruleKey/week stamped on every main row. It also discloses a non-obvious edge case — weeks with no completed run for a rule contribute no block — which the agent could not learn from any structured field.

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-loads the purpose and format contract in the first sentence, then adds scoping rules. Dense but nearly every clause carries information an agent needs to parse the output; the 'so the whole body is valid JSONL' clause is slightly redundant given the earlier JSONL framing.

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?

There is no output schema, so the description must carry the entire return-value burden, and it does: block structure, header line, nesting, row keys, and the empty-week behavior. Combined with the annotations covering the safety profile and the fully documented 5-parameter schema, an agent has everything needed to call and parse it.

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 100%, so baseline is 3, but the description adds genuine semantic constraints beyond the schema: weekStartDates must be Monday dates ('Weeks are identified by their Monday start date'), and the limit/row filtering is scoped per rule per week rather than globally. That resolves ambiguity the bare date-format schema leaves open.

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 detailed output rows for one or more audit rules across multiple historical weeks for one account', plus the serialization format (multi-block JSONL). The 'historical'/'multiple weeks' framing separates it from a current-week output-table sibling, though the sibling is never named 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?

Provides one usage cue — 'Use to compare how findings changed over time' — which implies the historical, multi-week case. However, it never states when NOT to use it or names the non-historical alternative (audit_rule_output_table) for a single/current week, so the agent must infer the routing.

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