Skip to main content
Glama

x402_lemmy_get_v1_post_id

Retrieve a Lemmy post's details by ID from lemmy.world, returning post content and metadata through the /v1/post/{id} endpoint.

Instructions

lemmy — Lemmy community API (lemmy.world): posts, communities, post detail, and site info [GET /v1/post/{id}] $0.005 USDC on eip155:8453+137+42161+480. Example: /v1/post/1

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

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON body for POST/PUT/PATCH/DELETE
queryNoQuery parameters, e.g. {base:'USD', quote:'EUR'}
restartNoExplicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete.
operationIdNoDurable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.3/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden; it does disclose the two behaviors that matter most for this paid endpoint — the HTTP method/path and the price/chain set ("$0.005 USDC on eip155:8453+137+42161+480"). It says nothing about payment failure handling, whether the charge is per attempt, or the dedupe/retry semantics that the restart/operationId parameters imply.

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?

It is a single compact sentence with the endpoint and price front-loaded, which is good. However, the generic catalog of API resources ("posts, communities, post detail, and site info") consumes space without helping an agent call this specific tool, where the id format would have been more valuable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple read endpoint with no output schema and no annotations, the essentials are mostly present — endpoint, cost, chains, and an example path. The significant omission is how the required post id is supplied, since the schema exposes only body/query/restart/operationId and never a path argument.

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%, so the four declared parameters are already documented, and the description adds essentially nothing about body/query contents. Critically, the path parameter {id} does not appear in the schema at all; only the example "/v1/post/1" hints that the id belongs in the URL rather than in query or body.

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?

The description names a specific resource and endpoint: "post detail" with "GET /v1/post/{id}", plus a concrete example path, so an agent knows this retrieves a single post. It is partially diluted by copy-pasted API-surface text ("posts, communities, post detail, and site info") that describes the whole Lemmy family rather than this one call.

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?

Naming "post detail" alongside "posts" and "communities" implies this is the single-post lookup versus the listing siblings, but no explicit when-to-use or when-not-to-use instruction is given. The agent must infer the routing from the endpoint string and the enumerated resource nouns.

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

Deploy Server

Other Tools