Skip to main content
Glama

update_meta_campaign_budget

Adjust daily budget for Meta campaigns to scale performance or control spending. Changes apply immediately with a $1 minimum requirement.

Instructions

Change the daily budget of a Meta campaign. Takes effect immediately. Increase to scale a winning campaign, decrease to throttle spend. Minimum $1/day. Requires Starter plan or higher.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
campaign_idYesMeta campaign ID.
daily_budget_usdYesNew daily budget in USD. Minimum: 1.

Implementation Reference

  • The implementation handler for the 'update_meta_campaign_budget' tool. It checks for a license, validates input, and makes a POST request to update the campaign budget.
    case 'update_meta_campaign_budget': {
        const denied = licenseCheck('meta');
        if (denied) return fail(denied);
        if (!args.campaign_id || !args.daily_budget_usd) return fail('campaign_id and daily_budget_usd required.');
    
        // Validate budget
        const budgetError = validateMetaBudget(args.daily_budget_usd);
        if (budgetError) return fail(budgetError);
    
        await metaPost(`/${args.campaign_id}`, { daily_budget: Math.round((args.daily_budget_usd as number) * 100) });
        return ok({ success: true, campaign_id: args.campaign_id, new_daily_budget_usd: args.daily_budget_usd });
    }
  • The registration and input schema definition for 'update_meta_campaign_budget'.
    {
        name: 'update_meta_campaign_budget',
        description: 'Change the daily budget of a Meta campaign. Takes effect immediately. Increase to scale a winning campaign, decrease to throttle spend. Minimum $1/day. Requires Starter plan or higher.',
        inputSchema: {
            type: 'object',
            properties: {
                campaign_id:      { type: 'string', description: 'Meta campaign ID.' },
                daily_budget_usd: { type: 'number', description: 'New daily budget in USD. Minimum: 1.' },
            },
            required: ['campaign_id', 'daily_budget_usd'],
        },
    },
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by disclosing key behavioral traits: immediate effect ('Takes effect immediately'), minimum constraint ('Minimum $1/day'), and permission requirements ('Requires Starter plan or higher'). It doesn't cover rate limits or error conditions, but provides solid operational context.

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?

Four concise sentences with zero waste—each adds distinct value: action, timing, usage scenarios, constraints, and requirements. The description is front-loaded with the core purpose and efficiently structured.

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

Completeness4/5

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

For a mutation tool with no annotations and no output schema, the description provides good coverage of what the tool does, when to use it, and key constraints. It could be more complete by mentioning what happens to existing budget settings or potential side effects, but it's substantially adequate given the context.

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 fully documents both parameters. The description adds minimal value beyond the schema—it reinforces the minimum budget constraint but doesn't provide additional semantic context about parameter usage or implications.

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 clearly states the specific action ('Change the daily budget'), resource ('Meta campaign'), and scope ('daily budget'), distinguishing it from siblings like create_meta_campaign or pause_meta_campaign. It goes beyond just restating the name by specifying what aspect of the campaign is being updated.

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 provides clear context on when to use it ('Increase to scale a winning campaign, decrease to throttle spend') and mentions a prerequisite ('Requires Starter plan or higher'). However, it doesn't explicitly state when NOT to use it or name alternatives like update_tiktok_campaign_budget for comparison.

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/Nolas-Shadow/agent1st-ads-mcp'

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