Skip to main content
Glama

Connect LinkedIn's official API

connect_linkedin_api
Idempotent

Connect your own LinkedIn developer app to publish posts through LinkedIn's official API instead of the browser; this opens the consent page and returns while authorization completes.

Instructions

Optional. Connects the user's own LinkedIn developer app so posts publish through LinkedIn's official API instead of the browser. Opens LinkedIn's consent page in the user's browser and returns straight away; after the user clicks Allow, session_status shows the connection. Needs the app's Client ID and Secret in the config (the connect-api terminal command walks through creating the app). Connections last 60 days.

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": "connect_linkedin_api"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only say this is a non-read-only, open-world, idempotent, non-destructive action. The description goes well beyond that: it is asynchronous and returns immediately, the user must complete a consent click in the browser, verification happens via session_status, and the resulting connection expires after 60 days. That is exactly the operational context an agent needs before invoking it.

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 short sentences, front-loaded with the 'Optional' status and the effect, followed by mechanics, prerequisites, and duration. No sentence is redundant and none bury the key point.

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?

With no input parameters and no output schema, the description carries the whole burden and does so: it explains the trigger, the async return, how to confirm success (session_status), the prerequisite config, and the lifetime of the connection. Nothing needed to call it correctly is missing.

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?

There are zero parameters, so the baseline is 4. The description still adds useful out-of-band context by noting the Client ID and Secret must already be in config and pointing to the `connect-api` command that produces them, which prevents a pointless call.

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 states a specific verb and resource ('Connects the user's own LinkedIn developer app') and pins down the effect precisely ('posts publish through LinkedIn's official API instead of the browser'). An agent can distinguish this from ordinary posting tools without opening any schema.

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?

It opens with 'Optional', which signals this is not part of the default path, and it names the prerequisite (Client ID and Secret in config, plus the `connect-api` terminal command). It implies the browser-posting default it replaces, but never states an explicit when-not or a concrete decision rule for choosing it.

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