Skip to main content
Glama

Search LinkedIn posts

linkedin_search_posts
Read-onlyIdempotent

Search LinkedIn posts by keyword, sorted by relevance or newest first and optionally limited to a recent time window. Each result includes the post text, author, link and reaction, comment and share counts. Read-only: returns public data and changes nothing. Costs 1 credit per result returned, with a minimum of 1 credit per request.

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": {
      "keyword": "<keyword>",
      "count": "<count>"
    },
    "name": "linkedin_search_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
countYesNumber of results to return (1–10). Defaults to 10.
startNoNumber of results to skip. Defaults to 0.
keywordYesKeyword(s) to search LinkedIn for, e.g. "openai", "software engineer", "fintech".
cacheOnlyNoReturn only a cached result and never scrape live. With `cacheMaxAgeHours`, only a result that recent is returned; without it, the latest cached result of any age. Responds 404, at no cost, when there is none, e.g. true.
sortOrderNoResult ordering: "date_posted" for newest-first, "relevance" for LinkedIn ranking.
datePostedNoRestrict to posts published within a recent window.
cacheMaxAgeHoursNoAccept a cached result scraped up to this many hours ago. A cached result costs no credits, and its `cachedAt` says when it was scraped. When no cached result is that recent, the data is scraped live at the normal price. Leave it out to always scrape live, e.g. 24.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / cacheMaxAgeHours
      Added value: +{
      +  "description": "Accept a cached result scraped up to this many hours ago. A cached result costs no credits, and its `cachedAt` says when it was scraped. When no cached result is that recent, the data is scraped live at the normal price. Leave it out to always scrape live, e.g. 24.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 9007199254740991,
      +  "type": "integer"
      +}
    • addedInput schema / properties / cacheOnly
      Added value: +{
      +  "description": "Return only a cached result and never scrape live. With `cacheMaxAgeHours`, only a result that recent is returned; without it, the latest cached result of any age. Responds 404, at no cost, when there is none, e.g. true.",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and non-destructiveness, yet the description still adds real value: it discloses the cost model (1 credit per result, minimum 1 per request) and the returned fields. It stops short of describing pagination limits beyond the `start` parameter or any rate limiting.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the core action and scope, then return contents, then cost. The read-only clause partly duplicates the annotations, but it is brief and the billing sentence earns its place.

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?

With seven parameters, no output schema and no nested objects, the description usefully compensates by listing the result fields and the credit cost, which the schema does not cover. The main remaining gap is guidance on pagination depth and on choosing cached versus live scraping.

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 description coverage is 100%, so the schema already explains every parameter including the cache and enum semantics. The description only restates the sorting and time-window behavior at a high level, adding little meaning beyond the schema; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Search LinkedIn posts by keyword') plus the scope modifiers (sort order, recent time window). It implicitly separates itself from author-scoped siblings like linkedin_get_posts_from_company or linkedin_get_post_detail, but never names an alternative, so the differentiation is left partly to inference.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The description makes the use case clear (keyword discovery of posts with optional recency filtering) but gives no explicit when-to-use or when-not guidance relative to siblings such as linkedin_search_all or linkedin_get_posts_from_profile. The cacheOnly/cacheMaxAgeHours trade-off is documented only in the schema, not in the description.

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