Skip to main content
Glama
get-mcp-ads

X Ads by Get MCP Ads

x ads get active entities

x_ads_get_active_entities
Read-onlyIdempotent

List ad entities with metric changes in a time window to identify active ones before pulling account stats.

Instructions

List which ads entities had metrics change in a time window (use before requesting account stats) Native X fields and pagination are preserved; monetary fields ending in _micro are millionths of the account currency.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
entityYesEntity type to check for metric activity.
end_timeYesISO 8601 end of the activity window (exclusive); must be a whole hour (minutes and seconds 0).
account_idYesX Ads account ID from X_ADS_ACCOUNT_IDS.
start_timeYesISO 8601 start of the activity window; must be a whole hour (minutes and seconds 0).
campaign_idsNoComma-separated campaign IDs to scope the check to (max 200; exclusive with the other ids filters).
line_item_idsNoComma-separated line item IDs to scope the check to (max 200; exclusive with the other ids filters).
funding_instrument_idsNoComma-separated funding instrument IDs to scope the check to (max 200; exclusive with the other i...

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 observedv1.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 readOnly, openWorld, idempotent, and non-destructive behavior. The description adds useful behavioral context: 'Native X fields and pagination are preserved' and that monetary fields ending in _micro are millionths of the account currency. This goes beyond the annotations without contradicting them.

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?

The description is two concise, front-loaded sentences. The first states the core purpose and usage context; the second adds necessary output-format caveats. Every clause earns its place with no fluff or repetition of schema details.

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?

With a complete input schema, clear annotations, an output schema, and a description that explains the tool's role and key output conventions, nothing essential is missing for an agent to select and invoke this tool correctly.

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 schema already documents all seven parameters, including the entity enum, ISO 8601 time constraints, and ID filter exclusivity. The description's _micro unit note is relevant to output values, not input parameters, so it adds little to parameter semantics beyond the baseline.

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 and resource: 'List which ads entities had metrics change in a time window.' This clearly distinguishes the tool from siblings like x_ads_get_account_stats and x_ads_list_campaigns, and the phrase 'use before requesting account stats' reinforces its role.

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 description explicitly tells the agent when to use this tool: before requesting account stats. It does not spell out when not to use it or name alternative tools, but the intended context is clear and actionable.

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