Skip to main content
Glama

Google Ads & Meta Ads

LinkedIn Ads: Select Account

linkedin_select_account
Idempotent

Set the optional default LinkedIn ad account that reads use when they pass no ad_account_id, by numeric id or by account name. Rarely needed: every tool takes ad_account_id (id or name), so switching accounts in a conversation is just passing the other one. The default belongs to the connection and is shared by every chat you have open. Changes nothing in LinkedIn Ads itself.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ad_account_id": "<ad_account_id>"
    },
    "name": "linkedin_select_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
ad_account_idYesNumeric ad account id (or its urn:li:sponsoredAccount: form) or the exact account name, as shown by linkedin_list_ad_accounts.

Output Schema

NameRequiredDescriptionDefault
nameNoIts name.
currencyNoIts currency code.
adAccountIdYesAccount later calls now default to.
previousAdAccountIdNoWhat the default was before this call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the annotations by disclosing the scope of the write: the default is stored on the connection and 'shared by every chat you have open', which matters because readOnlyHint=false but the effect is cross-session. It also clarifies that 'Changes nothing in LinkedIn Ads itself', preventing the agent from treating this as a remote mutation.

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 short sentences ordered by importance: what it does, why it's rarely needed, then side-effect scope. No filler, and the caveat arrives before the agent commits to a call.

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 one-parameter setter with an output schema and full annotation coverage, nothing actionable is missing: identifier source, when to skip it, persistence scope, and the fact that remote state is untouched are all stated.

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 coverage is 100% and the single parameter's description already spells out numeric id, urn form, and exact account name. The description's 'by numeric id or by account name' restates the schema rather than adding format or validation detail, so the baseline 3 applies.

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 a specific verb and resource ('Set the optional default LinkedIn ad account') plus the exact condition under which that default applies ('when they pass no ad_account_id'). It also names the sibling that surfaces the accepted identifiers (linkedin_list_ad_accounts), so an agent can separate this from the listing and read tools.

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 says when NOT to use it: 'Rarely needed: every tool takes ad_account_id ... switching accounts in a conversation is just passing the other one.' That gives the agent both the condition that selects this tool and the cheaper alternative that usually replaces it.

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