Skip to main content
Glama

Update an ad account

ads_update_account
Idempotent

Rename an ad account, or set or remove its spending limit. The limit is Meta's hard stop: once the account has spent that much from now on, all its ads stop delivering. spendCap is in whole currency units; null removes the limit.

Input Schema

NameRequiredDescriptionDefault
nameNo
spendCapNo
accountIdNoThe Facebook accountId from list_accounts. Without it, pass profileId to use that profile's Facebook connection.
profileIdNoA profileId from list_profiles. Optional when accountId is given, which names its profile; if both are given they must agree.
adAccountIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / accountId / description
      Previous value: -"The Facebook accountId from list_accounts. Defaults to the profile's Facebook connection."New value: +"The Facebook accountId from list_accounts. Without it, pass profileId to use that profile's Facebook connection."
    • changedInput schema / properties / profileId / description
      Previous value: -"Defaults to the profile your API key is bound to."New value: +"A profileId from list_profiles. Optional when accountId is given, which names its profile; if both are given they must agree."
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and idempotentHint=true, so the safety profile is covered; the description goes further by explaining the operational consequence of spendCap — Meta's hard stop that halts all ad delivery once the cap is reached — and how to clear it with null. It still omits permission/auth requirements and what the update returns, but the added semantic warning is substantive and nothing contradicts the annotations.

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?

Three tight sentences, each earning its place: the capability is front-loaded and the consequential caveat follows. No filler or restatement of the tool name.

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 5-parameter mutation tool with no output schema (so return values needn't be described), the description covers the semantics that matter and the annotations cover idempotency and open-world scope. It does not say whether name and spendCap can be updated together or that adAccountId is the sole required parameter.

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?

Schema coverage is only 40%, so the description must carry weight, and it does the most important lifting: spendCap is 'whole currency units' and null 'removes the limit,' which is not stated in the schema. It leaves name (1-100 chars) and the act_\d+ format of adAccountId unaddressed, but the highest-risk parameter is well explained.

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?

States specific verbs and the exact resources it mutates: the account's name and its spending limit (spendCap). This cleanly separates it from ads_get_account (read), ads_create_account (create) and ads_set_status (status changes only), so an agent can pick it without opening the schema.

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 enumerates the two editable fields but gives no when-to-use guidance, no prerequisites, and never names an alternative (e.g. ads_set_status for delivery status, ads_create_account for provisioning). Usage must be inferred entirely from the field list.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources