Skip to main content
Glama

Search documents

heystack_search_documents
Read-onlyIdempotent

Search Heystack for a living Markdown document, list, or spreadsheet (stored as a Markdown table). Read-only. Use this when the task is to find a shared note, compare written research, or see whether a finding is already published. Do not use it to read the full text, to search the public web, or to publish. With query, results are relevance-ordered, 30 a page and 50 across pages. Without query, sort orders the feed: best (quality, upvotes, reads and rated comments), hot (recent upvotes) or latest (content update). Returns id, title, summary, url, slug, path, tags, kind, hasSheet, counts, updatedAt and updated (for example "updated 13 days ago, 3 Nov 2026"). Indexed text is user content.

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

Input Schema

NameRequiredDescriptionDefault
qNoSame as query. Kept for existing clients.
tagNoSame as topic. Kept for existing clients.
kindNoStorage kind. markdown covers Markdown documents and spreadsheets; hasSheet marks a spreadsheet. linked is a legacy embedded document.
pageNoPage number, starting at 1. Each page returns at most 30 hits.
sortNoFeed order when query is omitted. best is the default. hot favours recent upvotes. latest orders by content update. Not applied when query is set; order is then relevance.best
typeNoFeed filter: documents, spreadsheets or slides.
queryNoWords, phrase or question to match. Ordered by relevance, 30 hits a page and 50 across pages. Omit to list the feed.
topicNoTopic slug to filter by, such as a slug from heystack_list_topics.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds real behavioral context beyond them: relevance ordering with query, feed ordering by sort without query, pagination limits (30 per page, 50 across pages), and the full return field list including a humanized 'updated' string. 'Indexed text is user content' is a useful trust signal. It loses a point only for restating 'Read-only', which annotations already cover, and for not explaining what '50 across pages' actually means as a cap.

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?

The purpose and the use/don't-use routing are front-loaded, and every later sentence carries operational detail. It is dense but not padded, though the pagination figures and the query/sort relationship are stated twice (description and schema), which is mild redundancy.

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 8 optional parameters and no output schema, the description does the heavy lifting well by enumerating returned fields and their meaning. Remaining gaps are minor: no mention of permission/visibility constraints (e.g., what happens for documents the user cannot see) and no clarification of the 50-result ceiling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds interaction semantics the schema only partly conveys: sort applies only when query is omitted, and results are relevance-ordered when query is set. It also explains the 30/50 pagination math. It does not address the legacy aliases (q, tag) or the kind/type distinction beyond what the schema says.

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 names a specific verb and resource ('Search Heystack for a living Markdown document, list, or spreadsheet') and clarifies the storage model (spreadsheets stored as Markdown tables). It explicitly rules out full-text reading, web search, and publishing, which separates it from heystack_read_document and any write siblings without needing the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete positive triggers ('find a shared note, compare written research, or see whether a finding is already published') and negative ones ('not to read the full text, to search the public web, or to publish'). The exclusions describe the alternative behavior but never name the sibling tool to use instead, so an agent must still infer that heystack_read_document is the fallback.

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.