Skip to main content
Glama

meta_ads_ad_rules_get

Retrieve complete details of a Meta Ads automated rule including evaluation triggers, execution actions, and schedule. Use this before updating a rule to avoid overwriting the full specification.

Instructions

Fetches the full detail record for a single Automated Rule including the full evaluation_spec and execution_spec. Returns id, name, status, evaluation_spec (triggers and filters), execution_spec (action + parameters), schedule_spec (when rule runs), created_by, created_time, and last_evaluated_time. Read-only. Call this before meta_ads_ad_rules_update so you can merge incremental changes rather than overwrite the whole spec.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
account_idNoMeta Ads account ID in the format 'act_XXXXXXXXXX' (e.g. 'act_1234567890'). Optional — falls back to META_ADS_ACCOUNT_ID from the configured credentials. The leading 'act_' prefix is required.
rule_idYesRule ID as returned by meta_ads_ad_rules_list.
Behavior4/5

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

States 'Read-only', which is sufficient for a get operation. No annotations provided, so description covers the behavioral aspect adequately. However, it does not explicitly mention absence of side effects or rate limits, but these are typically understood for reads.

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?

Description is concise (2-3 sentences), front-loaded with purpose, and efficiently lists return fields. No wasted words.

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?

Given no output schema, the description details the return fields comprehensively. It covers purpose, usage, parameters, and output, making it fully actionable for a simple get operation.

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 has 100% coverage with descriptions. Description adds value by explaining account_id optionality with fallback to credentials, and that rule_id comes from meta_ads_ad_rules_list, plus provides format examples. This enhances understanding beyond the schema.

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?

Description explicitly states it fetches a single automated rule's full detail record including evaluation_spec and execution_spec, and lists returned fields. This clearly distinguishes it from sibling tools like meta_ads_ad_rules_list which only lists rules.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly advises to call this before meta_ads_ad_rules_update for merging incremental changes, providing clear when-to-use guidance and a direct alternative. Also notes read-only nature.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/logly/mureo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server