Skip to main content
Glama
EfrainTorres

ArmaVita Meta Ads MCP

read_campaign

Retrieve detailed campaign metadata from Meta Ads to analyze performance, monitor settings, and manage advertising strategies.

Instructions

Fetch detailed campaign metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
campaign_idYes
meta_access_tokenNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The implementation of the `read_campaign` tool, registered with the MCP server and decorated to handle Meta API requests.
    @mcp_server.tool()
    @meta_api_tool
    async def read_campaign(campaign_id: str, meta_access_token: Optional[str] = None) -> str:
        """Fetch detailed campaign metadata."""
        if not campaign_id:
            return _json({"error": "No campaign ID provided"})
    
        payload = await make_api_request(
            campaign_id,
            meta_access_token,
            {
                "fields": (
                    "id,name,objective,status,effective_status,daily_budget,lifetime_budget,buying_type,"
                    "start_time,stop_time,created_time,updated_time,bid_strategy,special_ad_categories,"
                    "special_ad_category_country,budget_remaining,configured_status,advantage_state_info"
                )
            },
        )
        return _json(payload)
Behavior1/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states what the tool does ('Fetch detailed campaign metadata') without revealing any behavioral traits such as whether it's read-only, requires authentication (implied by meta_access_token parameter but not explained), rate limits, error handling, or what 'detailed metadata' entails. This leaves critical operational aspects undocumented.

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 wasted words. It's front-loaded with the core action and resource, making it easy to parse quickly. Every part of the sentence contributes directly to stating the tool's purpose.

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 has an output schema (which should define return values), the description's minimalism is somewhat acceptable. However, with no annotations, 0% schema description coverage, and 2 parameters, the description lacks crucial context like authentication needs, error cases, and parameter semantics. It's incomplete for a tool that likely involves API calls and sensitive data, but the output schema mitigates some gaps.

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 schema provides no parameter descriptions. The description adds no information about parameters, failing to explain what 'campaign_id' is (e.g., a unique identifier) or the purpose of 'meta_access_token' (e.g., for authentication). With 2 parameters and no compensation in the description, this is a significant gap in understanding how to invoke the tool correctly.

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') and resource ('detailed campaign metadata'), making the purpose understandable. It distinguishes from siblings like 'list_campaigns' (which lists multiple campaigns) and 'update_campaign' (which modifies campaigns). However, it doesn't explicitly mention it retrieves a single campaign by ID, which could be slightly more specific.

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 a campaign_id), contrast with 'list_campaigns' for multiple campaigns, or specify use cases like viewing campaign details before editing. Without such context, the agent must infer usage from the tool name and schema 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