Skip to main content
Glama

Datamagnet

Search posts

search_posts
Read-onlyIdempotent

Search LinkedIn posts by keyword and/or filters. Returns 10 posts a page with author, text, media and engagement counts.

Costs 10 credits per page that has posts; a page with no posts is free. Ask for page 1 first and only page further (while data.has_more is true) if the user needs more.

  • keyword: quoted phrases, AND / OR / NOT and parentheses, at most 5 boolean operators (more is rejected for free; split the search).

  • date_posted + sort_by="date_posted" is the shape for "what was posted about X recently".

  • People are LinkedIn profile ids (ACoAAA...) or profile URLs that contain one; companies are numeric LinkedIn company ids. Use get_person_profile / get_company_profile to look an id up.

  • from_member / from_company: posts they published.

  • mentions_member / mentions_organization: posts that tag them; no keyword needed.

  • author_company: posts by people who currently work at the company (not the company page's own posts - that is from_company).

  • author_industry: LinkedIn industry ids. author_title: free text matched against the author's current title.

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

Input Schema

NameRequiredDescriptionDefault
pageNo
keywordNo
sort_byNo
date_postedNo
from_memberNo
author_titleNo
content_typeNo
from_companyNo
author_companyNo
author_industryNo
mentions_memberNo
mentions_organizationNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent and openWorld, so the safety profile is covered. The description does add real cost-model behavior — 10 credits per page with posts, empty pages free — plus the hard cap of 5 boolean operators that is rejected for free. It stops short of describing rate limits or result-ordering behavior beyond the sort_by mention.

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?

Front-loaded with purpose, cost and pagination rules, then a tight bulleted filter glossary. Every sentence is actionable — the boolean-operator cap, the empty-page cost exception and the author_company vs from_company distinction each prevent a concrete invocation error.

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?

An output schema exists, so return values and the `data.has_more` field need not be re-explained. For a 12-parameter, zero-coverage search tool this is close to complete; only `content_type` semantics and explicit `page` guidance are absent.

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 0% across 12 parameters, so the description carries the full burden and mostly meets it: it defines id formats (profile ids `ACoAAA...` or URLs, numeric company ids), explains keyword syntax, the date_posted/sort_by pairing, and disambiguates four similar author/mention filters. `content_type` and the `page` parameter are left to the schema, which is a small residual gap.

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+resource ("Search LinkedIn posts") and immediately scopes it to keyword and/or filters. It also pre-empts confusion with siblings by distinguishing `author_company` from `from_company` (the company page's own posts) and by pointing to get_person_profile / get_company_profile for id resolution.

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?

Gives explicit operating procedure: ask for page 1 first and only page further while `data.has_more` is true. It also names concrete use-case shapes ("what was posted about X recently" = date_posted + sort_by), states that mention filters need no keyword, and routes id lookups to named sibling tools.

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.