Skip to main content
Glama
ads-mcp-readonly

ads-mcp-readonly

by porrasbrand

Read-only GAQL query

run_readonly_query
Read-onlyIdempotent

Executes allow-listed Google Ads Query Language SELECT queries to retrieve ad performance data and rejects account-changing operations before they leave the server.

Instructions

Runs a Google Ads Query Language SELECT on an allow-listed resource. Anything that could change the account is refused before it leaves the server.

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": {
      "account_id": "<account_id>",
      "query": "<query>"
    },
    "name": "run_readonly_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
account_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavioral detail: there is a server-side allow-list and mutating statements are rejected before execution. It omits error shape, row limits, and pagination, which keeps it from a 5.

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?

Two short sentences, no filler, with the read-only guarantee front-loaded in the first clause and the enforcement mechanism second. Every sentence earns its place.

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 two-parameter query tool with no output schema, an agent still doesn't know the result shape, row caps, or how failures surface. The allow-list rule is the important missing-context item and it is covered, but the rest of the calling contract is left implicit.

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 0%, so the description must carry parameter meaning. It clarifies that `query` must be a SELECT against an allow-listed resource, which is real added constraint, but `account_id` is never mentioned, nor is the query format, dialect, or field syntax.

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?

Names a specific verb (Runs) and a specific resource (a GAQL SELECT on an allow-listed resource), which is enough to distinguish it from the higher-level convenience siblings like get_campaign_performance. It never names a sibling or contrasts itself with them explicitly, so it stops short of a 5.

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 implied: use this when you need a custom SELECT rather than a canned report, and only on allow-listed resources. There is no explicit statement of when to prefer the sibling summary/performance tools instead, or what happens when a query targets a non-allow-listed resource.

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