Skip to main content
Glama

Search posts by content

search_posts
Read-only

Text-search across the user's posts (drafts, scheduled, published). Case-insensitive substring match on post content. Optionally filter by status or platform.

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": {
      "query": "<query>"
    },
    "name": "search_posts"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYesText fragment to search for in post content (case-insensitive). Minimum 3 characters.
statusNo
platformNo

Output Schema

NameRequiredDescriptionDefault
postsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / status / enum
      Previous value: -[
      -  "DRAFT",
      -  "SCHEDULED",
      -  "PUBLISHED",
      -  "FAILED",
      -  "CANCELLED"
      -]New value: +[
      +  "DRAFT",
      +  "SCHEDULED",
      +  "PUBLISHED",
      +  "PARTIAL",
      +  "FAILED",
      +  "CANCELLED"
      +]
  2. Changed1 schema field changed
    • removedOutput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish read-only, non-destructive, closed-world behavior, so the description must add more than safety. It does: "case-insensitive substring match" tells the agent this is literal substring search, not fuzzy or ranked matching, which materially changes how to phrase a query. It does not mention result ordering or how the limit is applied, which keeps it at a 4.

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?

Three short sentences, front-loaded with the verb and scope, then matching semantics, then filters. No filler and nothing out of order.

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 need not be described, and the input surface is small and mostly enum-typed. The remaining gap is pagination/limit behavior and result ordering, which the description leaves silent for a four-parameter search tool.

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 description coverage is only 25% — query is documented, while limit, status, and platform have no descriptions. The description partially compensates by naming status and platform as optional filters (their enums are self-explanatory), but limit, with its default of 20 and max of 100, is never mentioned in prose. Partial compensation warrants a 3.

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?

"Text-search across the user's posts" states a specific verb (search) and resource (posts), and the parenthetical "(drafts, scheduled, published)" scopes which posts are covered. That implicitly separates it from list_drafts / list_scheduled_posts, though neither sibling is named, so it stops short of a 5.

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?

"Optionally filter by status or platform" gives some usage context, but nothing says when to reach for search_posts versus list_drafts, list_scheduled_posts, or get_post. The agent must infer the boundary itself.

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