Skip to main content
Glama

Suggest an edit

heystack_suggest_edit

Propose a change to a document or a spreadsheet (stored as a Markdown table) for the owner to review. Write. Use this to build on someone else's document. Do not use it to replace a document you own (heystack_edit_document) or to comment. Pass url, slug or documentId from heystack_search_documents or heystack_read_document, and baseRevisionId from that read. Pass markdown to replace the body, title to rename it, or both. Omit markdown for a title-only suggestion. New Markdown must be 24,000 bytes or smaller. A larger stored document may be resubmitted or shrunk, and is rejected if it grows. Legacy linked documents do not accept suggestions; use heystack_comment. Sign action "propose" with an Ed25519 signature and 12-bit proof of work on the nonce. On success, result.id is the suggestion id. The published document stays as it is until the owner merges it. Never send a private key. Requires MCP 2026-07-28. On older protocol versions this tool returns setup steps and writes nothing.

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": {
      "baseRevisionId": "<baseRevisionId>",
      "publicKey": "<publicKey>",
      "kind": "<kind>",
      "timestamp": "<timestamp>",
      "nonce": "<nonce>",
      "signature": "<signature>"
    },
    "name": "heystack_suggest_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic document URL, such as https://heystacks.com/doc/{id}/{slug} or that path plus .md.
kindYesWhether the signer is a human or an agent.
slugNoDocument slug from the URL. If several documents share it, the call returns their URLs.
nonceYesUnique nonce for this signature. SHA-256 of heystack-pow:v1:<publicKey>:<nonce> must start with 000 (12-bit proof of work).
titleNoReplacement title. Omit to keep the current title.
messageNoNote to the owner about the suggestion.
markdownNoReplacement Markdown. Omit for a title-only suggestion.
publicKeyYesEd25519 public key of the signer. Never a private key.
signatureYesEd25519 signature of the canonical request, made locally. Never a private key.
timestampYesUnix time in milliseconds when the payload was signed.
documentIdNoDocument UUID. The signed payload uses this id. Omit it when url or slug is set and the signature already covers the resolved id.
baseRevisionIdYesrevisionId from a read of the document this suggestion is based on.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -{}
    • addedInput schema / properties / baseRevisionId
      Added value: +{
      +  "description": "revisionId from a read of the document this suggestion is based on.",
      +  "format": "uuid",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +  "type": "string"
      +}
    • addedInput schema / properties / documentId
      Added value: +{
      +  "description": "Document UUID. The signed payload uses this id. Omit it when url or slug is set and the signature already covers the resolved id.",
      +  "type": "string"
      +}
    • addedInput schema / properties / kind
      Added value: +{
      +  "description": "Whether the signer is a human or an agent.",
      +  "enum": [
      +    "human",
      +    "agent"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / markdown
      Added value: +{
      +  "description": "Replacement Markdown. Omit for a title-only suggestion.",
      +  "maxLength": 1000000,
      +  "type": "string"
      +}
    • addedInput schema / properties / message
      Added value: +{
      +  "description": "Note to the owner about the suggestion.",
      +  "maxLength": 500,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / nonce
      Added value: +{
      +  "description": "Unique nonce for this signature. SHA-256 of heystack-pow:v1:<publicKey>:<nonce> must start with 000 (12-bit proof of work).",
      +  "type": "string"
      +}
    • addedInput schema / properties / publicKey
      Added value: +{
      +  "description": "Ed25519 public key of the signer. Never a private key.",
      +  "type": "string"
      +}
    • addedInput schema / properties / signature
      Added value: +{
      +  "description": "Ed25519 signature of the canonical request, made locally. Never a private key.",
      +  "type": "string"
      +}
    • addedInput schema / properties / slug
      Added value: +{
      +  "description": "Document slug from the URL. If several documents share it, the call returns their URLs.",
      +  "maxLength": 500,
      +  "type": "string"
      +}
    • addedInput schema / properties / timestamp
      Added value: +{
      +  "description": "Unix time in milliseconds when the payload was signed.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / title
      Added value: +{
      +  "description": "Replacement title. Omit to keep the current title.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
    • addedInput schema / properties / url
      Added value: +{
      +  "description": "Public document URL, such as https://heystacks.com/doc/{id}/{slug} or that path plus .md.",
      +  "maxLength": 500,
      +  "type": "string"
      +}
    • addedInput schema / required
      Added value: +[
      +  "baseRevisionId",
      +  "publicKey",
      +  "kind",
      +  "timestamp",
      +  "nonce",
      +  "signature"
      +]
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnly=false, destructive=false, idempotent=false, openWorld=false; the description adds far more — the published document stays unchanged until the owner merges, suggestions are rejected if the stored document grows, a 24,000-byte cap on new Markdown, Ed25519 signing plus 12-bit proof of work, and a protocol-version gate that silently writes nothing on older MCP versions. The 'never send a private key' warning and the setup-steps failure mode are precisely the behavioral traits annotations cannot express.

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, then the negative case, then parameter sourcing, then constraints and failure modes — a sensible priority order with dense, earning sentences. It is on the long side and mixes operational warnings (protocol version, private keys) into the same block as parameter guidance, which slightly dilutes scanability.

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?

For a 12-parameter, 6-required mutation tool with no output schema, the description covers success shape (result.id is the suggestion id), failure modes, size limits, and signing prerequisites. The remaining gap is the canonical-request format to be signed, which the agent must obtain elsewhere; that is the only thing keeping it from complete.

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 earns above baseline by explaining the provenance and coupling of identifiers (ids come from a prior read, baseRevisionId must come from that same read) and the markdown-vs-title contract including the omit-markdown title-only case. It does not fully specify what the canonical signed payload contains, which the schema leaves implicit.

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 ('Propose a change to a document or spreadsheet stored as a Markdown table') and immediately scopes the outcome ('for the owner to review'). It explicitly contrasts with heystack_edit_document (replacing a document you own) and heystack_comment, so an agent can distinguish it from siblings without opening their schemas.

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 an explicit positive case ('use this to build on someone else's document'), two explicit exclusions with the alternative named for each, and a fallback path for legacy linked documents ('use heystack_comment'). It also prescribes where to source url/slug/documentId and baseRevisionId, which is exactly the routing guidance 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.