Skip to main content
Glama

Lemmy Search

lemmy_search
Read-onlyIdempotent

Full-text search across a Lemmy instance (default lemmy.world) for posts, comments, communities, or users matching query q. Filter by type (Posts/Comments/Communities/Users), listing (All/Local), and sort order.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "q": "rust programming"
    },
    "name": "lemmy_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYes
pageNo
sortNo
limitNo
type_NoAll | Comments | Posts | Communities | Users | Url
instanceNo
listing_typeNoAll | Local | Subscribed

Output Schema

NameRequiredDescriptionDefault
postsNoSearch results: posts
type_NoSearch type (All, Comments, Posts, Communities, Users, Url)
usersNoSearch results: users
commentsNoSearch results: comments
communitiesNoSearch results: communities

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely new context: the default instance is lemmy.world and results span four distinct entity types. It does not cover pagination behavior, rate limits, or how results are ordered by default when sort is omitted.

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?

Two tightly packed sentences with the core action front-loaded and the filter surface following immediately. No filler, though the second sentence is a dense list that could be slightly more scannable.

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?

An output schema exists, so return shape needn't be described, and the annotations cover safety. For a 7-parameter search tool with low schema coverage, though, the definition leaves pagination, sort values, and sibling-tool routing unaddressed, which is a meaningful gap for an agent choosing among many lemmy_* tools.

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 only 29%, so the description needs to carry weight, and it does partially: it documents the default value of `instance` and names the type and listing filters. However it omits the fact that `type_` also accepts Url, that `listing_type` also accepts Subscribed, and says nothing about `page`, `limit`, or valid `sort` values.

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 verb+resource (full-text search across a Lemmy instance) and enumerates the searchable entity types, plus gives the default instance. It implicitly distinguishes itself from the type-specific siblings (lemmy_posts, lemmy_comments, lemmy_communities) by covering all of them in one call, but never says so explicitly.

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?

Usage is only implied: the enumeration of filters suggests faceted search, and the broad scope suggests a general-purpose entry point. There is no explicit when-to-use, when-not-to-use, or routing to the narrower sibling tools that would return the same entity types.

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.