Skip to main content
Glama

Get Posts

get_posts
Read-onlyIdempotent

[Read · free] List a tracked profile's persisted posts with full metrics and text — query against the local post library, no LinkedIn pull, free. Use this when the caller already has a profile_id and wants to read its posts. Filter by date range, post type, minimum engagement, or text. Pass scope (a post_collections.id) to restrict to a specific collection (e.g. an external profile, topic stream, or hand-curated set). Paginated. For keyword/semantic search across posts, use search_posts. For fresh LinkedIn pulls, use linkedin_profile_posts.

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": {
      "profile_id": "<profile_id>"
    },
    "name": "get_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (1-based)
scopeNoOptional post_collections.id to filter posts to a specific collection
searchNoText search across post content (case-insensitive)
date_toNoEnd date (ISO 8601)
sort_byNoSort fieldpublished_at
sort_dirNoSort directiondesc
date_fromNoStart date (ISO 8601, e.g. 2025-01-01)
page_sizeNoResults per page (max 50)
post_typeNoFilter by post type. 'article' is a LinkedIn-native article or newsletter edition (article_title is the headline, article_image_url the cover image).
profile_idYesTracked profile ID from list_profiles
min_engagementNoMinimum total engagement

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / post_type / description
      Previous value: -"Filter by post type"New value: +"Filter by post type. 'article' is a LinkedIn-native article or newsletter edition (article_title is the headline, article_image_url the cover image)."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds genuinely new behavioral context — that results come from a persisted local library rather than a live pull, that the call is free, and that results are paginated. It stops short of describing result shape or page-size behavior, but that is minor against the annotation coverage.

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?

Front-loaded with the cost/mode tag and the core action, then prerequisites, then filters, then sibling routing — a sensible order with no filler. It is on the longer side for five sentences, but each one carries distinct information.

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?

For an 11-parameter read tool with no output schema, the description covers source of data, cost, filtering dimensions, scoping, and pagination, which is enough to call it correctly. The main residual gap is that return shape is only implied by 'full metrics and text', with no output schema to fall back on.

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 baseline is 3, but the description adds real meaning to `scope` by naming it as a post_collections.id and giving example collection kinds (external profile, topic stream, hand-curated set) that the schema text does not. It also groups the filterable dimensions (date range, post type, minimum engagement, text) so an agent knows which knobs matter for its intent.

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 (list a tracked profile's persisted posts) plus the distinguishing mechanism: it queries the local post library with no LinkedIn pull. The '[Read · free]' tag and the mention of full metrics and text make it immediately separable from linkedin_profile_posts and search_posts.

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 an explicit precondition ('use this when the caller already has a profile_id') and names both alternatives with the condition that selects them: search_posts for keyword/semantic search, linkedin_profile_posts for fresh pulls. When-to-use and when-not-to-use are both covered.

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