Skip to main content
Glama

Record Post Published

record_post_published
Idempotent

Records that an approved post Mark doesn't publish itself is live: a LinkedIn Article (channel linkedin_article), or a website post (blog, faq, competitor_page) whose post type no CMS connection maps (get_post handoff reads publish_by_hand, then publish_now from its scheduled time). Pass its id and its live URL: for an Article, the https linkedin.com URL LinkedIn shows for it; for a website post, the page's https address on any host. The post becomes published with publishedAt now and externalUrl the URL, the same as a post Mark published, and Mark sends post_published to the workspace's PostHog project once, on the first recording. For an Article, Mark reads its LinkedIn metrics daily for 30 days, then weekly until 90 days, through the connected LinkedIn account. Mark never publishes an Article itself, since LinkedIn has no API for them; a person copies the approved Article into LinkedIn at its slot time (get_post handoff reads publish_by_hand, then publish_now), then this records it. A website post with no CMS mapping is copied onto the site by hand (title, Markdown body, slug, SEO title and description from get_post), then recorded here. Calling again with the same URL succeeds and changes nothing. Refused for a post that isn't approved, another channel, a website post whose post type a CMS maps (Mark publishes those through the CMS), a URL that isn't https, an Article URL that isn't on linkedin.com or has no urn:li:share: or urn:li:ugcPost: post URN (a /pulse/ address), or a published post with a different URL. To help the person copy an Article, get_post gives the headline (meta.title) and the Markdown body; the cover is the asset meta.cover.assetId names, whose URL get_asset returns. Only use it once the user says the post is live. Related: get_post, get_asset, approve_posts, get_calendar.

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": {
      "postId": "<postId>",
      "url": "<url>"
    },
    "name": "record_post_published"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe live post's https address. For an Article, its post address from LinkedIn with its post URN in it, such as https://www.linkedin.com/feed/update/urn:li:ugcPost:7518698639439978496/ (LinkedIn's … > Embed this post shows it); a /pulse/ address is refused: it has no post URN, so Mark couldn't read the Article's metrics. For a website post, the page's address on your site, any host.
postIdYesThe approved LinkedIn Article, or approved website post with no CMS mapping.

Output Schema

NameRequiredDescriptionDefault
appUrlYes
postIdYes
statusYes
externalUrlYes
publishedAtYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / postId / description
      Previous value: -"The approved LinkedIn Article."New value: +"The approved LinkedIn Article, or approved website post with no CMS mapping."
    • changedInput schema / properties / url / description
      Previous value: -"The live Article's post address from LinkedIn, with its post URN in it, such as https://www.linkedin.com/feed/update/urn:li:ugcPost:7518698639439978496/ (LinkedIn's … > Embed this post shows it). A /pulse/ address is refused: it has no post URN, so Mark couldn't read the Article's metrics."New value: +"The live post's https address. For an Article, its post address from LinkedIn with its post URN in it, such as https://www.linkedin.com/feed/update/urn:li:ugcPost:7518698639439978496/ (LinkedIn's … > Embed this post shows it); a /pulse/ address is refused: it has no post URN, so Mark couldn't read the Article's metrics. For a website post, the page's address on your site, any host."
  2. Changed1 schema field changed
    • changedInput schema / properties / url / description
      Previous value: -"The live Article's URL from LinkedIn, such as https://www.linkedin.com/pulse/..."New value: +"The live Article's post address from LinkedIn, with its post URN in it, such as https://www.linkedin.com/feed/update/urn:li:ugcPost:7518698639439978496/ (LinkedIn's … > Embed this post shows it). A /pulse/ address is refused: it has no post URN, so Mark couldn't read the Article's metrics."
  3. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations, it discloses the resulting state change (publishedAt now, externalUrl set), the one-time PostHog post_published event, LinkedIn metrics polling cadence for Articles, and the fact that Mark never publishes Articles itself. It also explains idempotency (same URL succeeds and changes nothing) and detailed refusal conditions, which are valuable behavioral details not conveyed by the annotations alone.

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

Conciseness3/5

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

The core purpose and required URL semantics are front-loaded, but the description is a dense wall of text with repeated material, especially the get_post handoff and URL constraints already covered by the schema. The complexity justifies substantial detail, yet it could be trimmed and organized more cleanly.

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?

Given the mutation, the output schema, and the idempotent annotation, the description is complete enough to call correctly. It covers supported channels, side effects, post-state changes, idempotency, refusal cases, and the manual-copy workflow that precedes recording.

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 schema already explains the url requirements, including the LinkedIn URN format and the /pulse refusal. The description confirms that postId means the approved Article or approved website post with no CMS mapping, but largely restates schema-provided URL meaning rather than adding new parameter syntax.

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 action and resource: it records that an approved post which Mark does not publish itself is live. It identifies the two supported cases, LinkedIn Articles and website posts whose post type has no CMS mapping, and distinguishes them from posts Mark publishes through the CMS.

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?

It gives explicit timing and workflow guidance: only use once the user says the post is live; for an Article, a person copies it into LinkedIn at its slot time before this records it; for a website post with no CMS mapping, a person copies it onto the site before recording it. It also lists refusal cases and names get_post and get_asset as supporting 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.

Resources