Skip to main content
Glama

Google Ads & Meta Ads

LinkedIn Ads: List Ad Accounts

linkedin_list_ad_accounts
Read-onlyIdempotent

List the LinkedIn ad accounts connected to this account: the ones that can serve (with id, name, currency and which is the stored default) and, separately, the ones LinkedIn lists as not active or as test accounts. To work in an account, pass its numeric id or name as ad_account_id to linkedin_list_campaigns, linkedin_get_insights, linkedin_analyze_demographics or linkedin_audit_wasted_spend — no dashboard change needed. Filter with name_contains when the list is long. Reads only; changes nothing.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "linkedin_list_ad_accounts"
  }
}

Input Schema

NameRequiredDescriptionDefault
name_containsNoOnly accounts whose name or id contains this text, ignoring case.

Output Schema

NameRequiredDescriptionDefault
adAccountsYesConnected LinkedIn ad accounts that can serve ads.
allSwitchedOffYesTrue when every ad account this connection reaches is unticked, so nothing here can be read until the user switches one back on.
fromLiveLookupYesTrue when the stored account snapshot was empty and the list was read from LinkedIn directly instead.
inactiveAccountsYesAccounts this connection reaches that LinkedIn lists as not ACTIVE or as test accounts. Nothing can be read in them.
switchedOffCountYesAd accounts this connection reaches that the user unticked on the connections page, so they are left out of the list entirely.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so 'Reads only; changes nothing' largely restates them. The description still adds useful behavioral context beyond annotations: it describes the returned fields (id, name, currency, stored default) and that inactive/test accounts are returned separately. It does not cover pagination or rate limits, which keeps it below a 5.

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, both front-loaded with the core scope and the downstream routing. Every clause carries information: what is listed, how results split, where the id goes, and when to filter. There is no filler or repetition.

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

Completeness5/5

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

For a single-optional-parameter read tool with an output schema and full annotations, the description supplies everything an agent needs: result composition, the active/inactive split, downstream tool routing, and filter guidance. Return-value detail need not be repeated because the output schema exists.

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 100%, so the schema already documents name_contains including its case-insensitive name-or-id matching. The description still adds a usage cue absent from the schema: apply the filter when the account list is long. That is a small but genuine semantic addition beyond the parameter definition.

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 opens with a specific verb and resource ('List the LinkedIn ad accounts connected to this account') and immediately distinguishes two result groups: accounts that can serve versus accounts LinkedIn marks as inactive or test. An agent can identify the tool's output scope 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It names exactly how to act on results ('pass its numeric id or name as ad_account_id to linkedin_list_campaigns, linkedin_get_insights, linkedin_analyze_demographics or linkedin_audit_wasted_spend') and when to use the filter ('Filter with name_contains when the list is long'). This is explicit when-to-use and next-step guidance.

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