Skip to main content
Glama
EfrainTorres

ArmaVita Meta Ads MCP

read_ad_set

Retrieve comprehensive details for a specific Meta Ads ad set to analyze performance, targeting, and configuration directly from the Meta Marketing API.

Instructions

Fetch full details for one ad set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ad_set_idYes
meta_access_tokenNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The handler for 'read_ad_set', which fetches detailed information about a specific ad set from the Meta Graph API.
    @mcp_server.tool()
    @meta_api_tool
    async def read_ad_set(ad_set_id: str, meta_access_token: Optional[str] = None) -> str:
        """Fetch full details for one ad set."""
        if not ad_set_id:
            return _json({"error": "No ad set ID provided"})
    
        payload = await make_api_request(
            ad_set_id,
            meta_access_token,
            {
                "fields": (
                    "id,name,campaign_id,status,frequency_control_specs{event,interval_days,max_frequency},"
                    "daily_budget,lifetime_budget,targeting,bid_amount,bid_strategy,bid_constraints,"
                    "optimization_goal,billing_event,start_time,end_time,created_time,updated_time,"
                    "attribution_spec,destination_type,promoted_object,pacing_type,budget_remaining,"
                    "dsa_beneficiary,is_dynamic_creative"
                )
            },
        )
    
        if isinstance(payload, dict) and "frequency_control_specs" not in payload:
            payload["_meta"] = {
                "note": "No frequency_control_specs were returned. Either none are set or the API omitted the field."
            }
    
        return _json(payload)
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states 'Fetch full details,' implying a read-only operation, but doesn't specify authentication needs (e.g., the meta_access_token parameter), rate limits, error conditions, or what 'full details' entails. This leaves significant gaps for a tool that likely interacts with an external API.

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 a single, efficient sentence with zero waste—it directly states the tool's purpose without fluff. It's appropriately sized and front-loaded, making it easy to parse quickly.

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?

Given the tool's moderate complexity (2 parameters, no annotations, but with an output schema), the description is incomplete. It lacks parameter explanations and behavioral details, though the output schema may cover return values. For a read operation in a sibling-rich environment, more context on usage and parameters would improve completeness.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for undocumented parameters. It doesn't mention any parameters, failing to explain the required 'ad_set_id' or optional 'meta_access_token'. This leaves the agent without semantic context for the two parameters, beyond what the schema's titles minimally suggest.

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?

The description clearly states the action ('Fetch full details') and resource ('for one ad set'), making the purpose specific and understandable. However, it doesn't differentiate this tool from similar siblings like 'read_ad' or 'read_ad_creative', which follow the same pattern for different resource types.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing an ad set ID), exclusions, or comparisons to siblings like 'list_ad_sets' for multiple items or 'update_ad_set' for modifications, leaving the agent to infer usage from context alone.

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/EfrainTorres/armavita-meta-ads-mcp'

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