Skip to main content
Glama
get-mcp-ads

Meta Ads by Get MCP Ads

meta validate query

meta_validate_query
Read-onlyIdempotent

Validate metrics and breakdowns before running a Meta Ads query, returning errors and warnings to prevent failed requests.

Instructions

Validate a metric/breakdown combination BEFORE executing. Returns errors and warnings. Use this to check if your query will work.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
levelNoAggregation level
metricsYesMetric keys to validate
breakdownsNoBreakdown keys to validate

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesOriginal tool result: parsed JSON when the text is JSON, otherwise the text or multiple MCP content blocks. Provider fields depend on the selected query.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, covering the safety profile. The description adds value beyond annotations by stating the tool returns errors and warnings and is meant to run before execution, which clarifies its behavioral role without contradicting the hints.

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 with zero filler. The core purpose is front-loaded ('Validate... BEFORE executing'), and the return type is stated immediately after. Every word earns its place.

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?

For a simple validation tool with only 3 parameters, full schema coverage, a safety profile in annotations, and an output schema present, the description covers purpose, timing, and usage completely. Nothing an agent needs to call it correctly is missing.

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 description coverage is 100%, so the parameters are already well documented. The description mentions 'metric/breakdown combination', which loosely maps to metrics and breakdowns, but adds no additional semantic detail beyond what the schema provides. Baseline 3 applies.

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 uses a specific verb ('Validate') and resource ('metric/breakdown combination'), which clearly states what the tool does. It also adds the temporal context 'BEFORE executing' and names its output ('errors and warnings'), making it unambiguous and distinct from the many get_* 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?

The final sentence, 'Use this to check if your query will work,' gives explicit when-to-use guidance. It doesn't name specific alternatives or exclusions, but the pre-execution validation role is clear enough for an agent to select it over execution tools like meta_get_insights.

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