Skip to main content
Glama

get_ad_account_info

Retrieve ad account details including balance, spend, currency, and status to verify account activity and funding before launching campaigns.

Instructions

Get current balance, total spend, currency, and account status for all connected ad accounts (Meta and/or TikTok). Call before creating campaigns to confirm account is active and has sufficient funds. Requires valid license.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler logic for the 'get_ad_account_info' tool, which fetches Meta and TikTok ad account information based on configuration and license tier.
    case 'get_ad_account_info': {
        const denied = licenseCheck();
        if (denied) return fail(denied);
        const tier = getLicenseTier();
        const results: Record<string, unknown> = {};
        if (cfg.hasMeta()) {
            results.meta = await metaGet(`/${cfg.metaAccount()}`, {
                fields: 'name,account_status,currency,balance,amount_spent,spend_cap,timezone_name',
            });
        }
        if (cfg.hasTikTok() && tier !== 'starter') {
            results.tiktok = await tikTokGet('/advertiser/info/', {
                advertiser_id: cfg.tikTokAdvId(),
                fields: '["name","status","currency","balance","timezone"]',
            });
        } else if (tier === 'starter') {
            results.tiktok = { message: 'TikTok requires Pro plan or higher. Upgrade at https://agent1st.io/ads/' };
  • src/index.ts:209-216 (registration)
    Registration of the 'get_ad_account_info' tool definition.
        name: 'get_ad_account_info',
        description: 'Get current balance, total spend, currency, and account status for all connected ad accounts (Meta and/or TikTok). Call before creating campaigns to confirm account is active and has sufficient funds. Requires valid license.',
        inputSchema: { type: 'object', properties: {}, required: [] },
    },
    {
        name: 'list_meta_campaigns',
        description: 'List all campaigns in the Meta (Facebook/Instagram) ad account with campaign ID, name, status (ACTIVE/PAUSED/ARCHIVED), objective, and daily budget. Use campaign IDs to get stats, adjust budgets, or pause/enable. Requires Starter plan or higher.',
        inputSchema: {
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 discloses key behavioral traits: it's a read operation (implied by 'Get'), requires license authentication, and serves a verification purpose. It doesn't mention rate limits or error handling, but covers essential 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?

Two sentences with zero waste: first states purpose and scope, second provides usage context and prerequisite. Front-loaded with core functionality, appropriately sized for a simple tool.

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 zero-parameter tool with no output schema, the description provides complete operational context: what it returns, when to use it, and authentication requirements. It doesn't specify output format details, but given the tool's simplicity, this is adequate.

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?

The tool has 0 parameters with 100% schema coverage, so no parameter documentation is needed. The description appropriately focuses on what the tool returns rather than inputs, establishing a baseline of 4 for zero-parameter tools.

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 ('Get') and resources ('current balance, total spend, currency, and account status for all connected ad accounts'), specifying platforms ('Meta and/or TikTok'). It distinguishes from siblings by focusing on account-level information rather than campaign operations.

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 states when to use ('Call before creating campaigns to confirm account is active and has sufficient funds') and provides a prerequisite ('Requires valid license'), giving clear operational context without alternatives needed since it's the only account info tool.

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