Skip to main content
Glama
EfrainTorres

ArmaVita Meta Ads MCP

create_campaign_budget_schedule

Set a time-based budget schedule for Meta ad campaigns by specifying start and end times with budget amounts to control spending periods.

Instructions

Create a high-demand budget schedule for a campaign.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
campaign_idYes
budget_valueYes
budget_value_typeYes
time_startYes
time_endYes
meta_access_tokenNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The handler function `create_campaign_budget_schedule` which implements the creation logic for a budget schedule, registered as an MCP tool.
    @mcp_server.tool()
    @meta_api_tool
    async def create_campaign_budget_schedule(
        campaign_id: str,
        budget_value: int,
        budget_value_type: str,
        time_start: int,
        time_end: int,
        meta_access_token: Optional[str] = None,
    ) -> str:
        """Create a high-demand budget schedule for a campaign."""
        if not campaign_id:
            return json.dumps({"error": "Campaign ID is required"}, indent=2)
        if budget_value is None:
            return json.dumps({"error": "Budget value is required"}, indent=2)
        if time_start is None or time_end is None:
            return json.dumps({"error": "time_start and time_end are required"}, indent=2)
    
        normalized_type = str(budget_value_type or "").upper().strip()
        if normalized_type not in _ALLOWED_BUDGET_VALUE_TYPES:
            return json.dumps(
                {
                    "error": "Invalid budget_value_type",
                    "details": "budget_value_type must be ABSOLUTE or MULTIPLIER",
                },
                indent=2,
            )
    
        payload = {
            "budget_value": budget_value,
            "budget_value_type": normalized_type,
            "time_start": time_start,
            "time_end": time_end,
        }
    
        result = await make_api_request(f"{campaign_id}/budget_schedules", meta_access_token, payload, method="POST")
        return json.dumps(result, indent=2)
Behavior2/5

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

With no annotations provided, the description carries full burden but offers minimal behavioral insight. It implies a write operation ('create') but doesn't disclose permissions needed, rate limits, whether the schedule is reversible, or what happens upon success/failure. This is inadequate for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with no wasted words. However, it's overly concise given the tool's complexity—front-loaded but lacking necessary detail for a 6-parameter mutation tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with 6 parameters, 0% schema coverage, no annotations, and sibling tools present, the description is incomplete. It doesn't clarify the tool's role in the ecosystem, behavioral expectations, or parameter meanings, despite an output schema existing.

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 but adds no parameter details. It doesn't explain what 'budget_value_type' means, the format of 'time_start'/'time_end', or the purpose of 'meta_access_token'. This leaves all 6 parameters poorly understood.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the action ('create') and resource ('high-demand budget schedule for a campaign'), which is clear but vague. It doesn't specify what makes a schedule 'high-demand' or differentiate from sibling tools like 'create_campaign' or 'update_campaign' that might also involve budgets.

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?

No guidance on when to use this tool versus alternatives is provided. There's no mention of prerequisites, timing considerations, or how this relates to sibling tools like 'create_campaign' or 'update_campaign' that might handle budgets differently.

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