Skip to main content
Glama

Read document activity

heystack_read_activity
Read-onlyIdempotent

Read suggestions, published revisions, or the discussion on one public document. Read-only. Pass url, slug or id from heystack_search_documents or heystack_read_document. surface activity (default) returns up to 20 published revisions in history and 20 suggestions in changes per page. Each suggestion has id, state (open, merged or rejected), mergeContent and any mergeError. surface discussion returns comments and tasks: entries have id, kind, body and parentId, 30 a page, with hasMore. Use a comment id (kind comment) as parentId for heystack_comment or as commentId for heystack_delete. Do not use this to read the document body. The owner reviews an open suggestion with heystack_review_suggestion.

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_read_activity"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoDocument id, a UUID or a legacy number. A /doc/ URL in this field is accepted. Kept for existing clients.
urlNoPublic document URL, such as https://heystacks.com/doc/{id}/{slug} or that path plus .md.
pageNoPage number, starting at 1.
slugNoDocument slug from the URL. If several documents share it, the call returns their URLs.
surfaceNoactivity returns suggestions and published revisions. discussion returns comments and tasks.activity

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description only needs to add context — and it does: per-page limits (20 revisions + 20 suggestions; 30 discussion entries), a hasMore flag, suggestion fields (id, state open/merged/rejected, mergeContent, mergeError), and discussion entry shape (id, kind, body, parentId). That is meaningful behavioral detail an agent cannot get from the annotations or 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?

Front-loaded with purpose, exclusion, and identifier sourcing before the per-surface detail, with no filler sentences. It is dense and slightly run-on in the middle, packing field lists into long clauses, but nearly every clause carries operational information.

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

Completeness5/5

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

There is no output schema, so the description carries the burden of describing return shape, and it does so for both surfaces, including pagination and error fields. Combined with the cross-tool id guidance, an agent has everything needed to call it correctly and interpret the result.

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; the description adds value by explaining what the 'surface' enum actually yields on each branch and by clarifying how comment ids are reused across tools. It does not add much on url vs slug vs id precedence, leaving that to the schema's own descriptions.

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 ('Read suggestions, published revisions, or the discussion on one public document') and explicitly bounds itself against the sibling heystack_read_document with 'Do not use this to read the document body.' An agent can distinguish it from read_document, comment, and review_suggestion without opening any 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?

Gives concrete routing: identifiers come from heystack_search_documents or heystack_read_document, and a comment id (kind comment) feeds heystack_comment as parentId or heystack_delete as commentId. It also names the exclusion (not for document body) and points suggestion review to heystack_review_suggestion, covering when-to-use, when-not, and alternatives.

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.