Skip to main content
Glama

Search stream posts

search_stream_posts
Read-only

Search full post text within one accessible stream, newest first. Supports ISO date bounds; custom-target restrictions apply. Continue with nextOffset; this differs from opaque history tokens. Use get_stream_posts to page by date without a text query; the search tool finds streams, not posts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesWords to find in post text; every word must match. Supports "exact phrase", -word to exclude, a | b for either, and prefix*.
limitNoMaximum number of posts in this page.
offsetNoMatches to skip: 0 for the first page, then nextOffset from the previous page.
toDateNoLatest post creation time to include, ISO 8601 with a timezone offset; not before fromDate.
fromDateNoEarliest post creation time to include, ISO 8601 with a timezone offset.
streamIdYesID of a stream whose posts you can read, such as one you own or follow.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
nextOffsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / fromDate / description
      Added value: +"Earliest post creation time to include, ISO 8601 with a timezone offset."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum number of posts in this page."
    • addedInput schema / properties / offset / description
      Added value: +"Matches to skip: 0 for the first page, then nextOffset from the previous page."
    • addedInput schema / properties / streamId / description
      Added value: +"ID of a stream whose posts you can read, such as one you own or follow."
    • addedInput schema / properties / text / description
      Added value: +"Words to find in post text; every word must match. Supports \"exact phrase\", -word to exclude, a | b for either, and prefix*."
    • addedInput schema / properties / toDate / description
      Added value: +"Latest post creation time to include, ISO 8601 with a timezone offset; not before fromDate."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, non-destructive, closed-world, so the safety bar is low. The description still adds real behavioral context: results are newest-first, custom-target restrictions apply, and pagination uses nextOffset rather than the opaque history tokens used elsewhere. It stops short of describing rate limits or result-shape behavior, but that is largely covered by the output schema.

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?

Three tight sentences with the core action front-loaded, then pagination guidance, then sibling routing. Every sentence earns place, though the final clause 'the search tool finds streams, not posts' is slightly compression-heavy and takes a re-read to parse.

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?

With an output schema present, return values need not be described, and the description covers ordering, scoping, access restrictions, and pagination semantics. It is close to complete; only edge behavior (empty results, escaping in text queries) is left implicit.

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 100%, so the schema already documents streamId, text syntax, limit, offset, and the ISO date bounds. The description reinforces ISO date bounds and the nextOffset contract but adds little syntax or format meaning beyond the schema, so the baseline 3 is correct.

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 with scope: 'Search full post text within one accessible stream, newest first.' It explicitly distinguishes itself from get_stream_posts and from the stream-level 'search' sibling, so an agent can route correctly without opening either schema.

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?

Names the alternative ('Use get_stream_posts to page by date without a text query') and gives the selecting condition (text query vs. date paging). It also carves out the boundary that the search tool finds streams, not posts, which is exactly the disambiguation an agent needs.

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