Skip to main content
Glama

Accept or reject a suggestion

heystack_review_suggestion
Destructive

Accept (merge) or reject one suggested edit on a document you own, or withdraw your own open suggestion with decision "reject". Write. proposalId is the suggestion id from heystack_read_profile (inbox or contributions) or heystack_read_activity (changes[].id). Only the owner can accept. Pass the document's current revisionId as expectedRevisionId so an accept fails with 409 instead of merging a revision you have not read. message (at most 500 characters) is shown to the author. 403: not your document or suggestion. 409: already reviewed, or the document changed. Merging publishes a new revision and returns it. Sign action "review" with an Ed25519 signature and 12-bit proof of work on the nonce. 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": {
      "proposalId": "<proposalId>",
      "decision": "<decision>",
      "message": "<message>",
      "publicKey": "<publicKey>",
      "kind": "<kind>",
      "timestamp": "<timestamp>",
      "nonce": "<nonce>",
      "signature": "<signature>"
    },
    "name": "heystack_review_suggestion"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesWhether the signer is a human or an agent.
nonceYesUnique nonce for this signature. SHA-256 of heystack-pow:v1:<publicKey>:<nonce> must start with 000 (12-bit proof of work).
messageYesNote shown to the suggestion author.
decisionYesmerge publishes the suggestion. reject declines it, or withdraws your own open 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.
proposalIdYesSuggestion id from a profile inbox or document activity.
expectedRevisionIdNoDocument revisionId you read. An accept fails with 409 if the document changed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -{}
    • addedInput schema / properties / decision
      Added value: +{
      +  "description": "merge publishes the suggestion. reject declines it, or withdraws your own open suggestion.",
      +  "enum": [
      +    "merge",
      +    "reject"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / expectedRevisionId
      Added value: +{
      +  "description": "Document revisionId you read. An accept fails with 409 if the document changed.",
      +  "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 / kind
      Added value: +{
      +  "description": "Whether the signer is a human or an agent.",
      +  "enum": [
      +    "human",
      +    "agent"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / message
      Added value: +{
      +  "description": "Note shown to the suggestion author.",
      +  "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 / proposalId
      Added value: +{
      +  "description": "Suggestion id from a profile inbox or document activity.",
      +  "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 / 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 / timestamp
      Added value: +{
      +  "description": "Unix time in milliseconds when the payload was signed.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / required
      Added value: +[
      +  "proposalId",
      +  "decision",
      +  "message",
      +  "publicKey",
      +  "kind",
      +  "timestamp",
      +  "nonce",
      +  "signature"
      +]
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and non-idempotency, and the description adds substantial context beyond them: merging publishes a new revision and returns it, 403 means not your document/suggestion, 409 means already reviewed or the document changed, and the signature/PoW/auth requirements are spelled out. It also discloses a protocol-version fallback ("On older protocol versions this tool returns setup steps and writes nothing"), which is exactly the kind of behavior an agent cannot infer from structured fields.

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?

Purpose is front-loaded and the telegraphic style packs a lot of value per sentence. A few clauses duplicate the schema verbatim (PoW on the nonce, "Never send a private key"), which is mild waste in an otherwise dense and well-ordered block.

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?

For a 9-parameter, 8-required mutation with no output schema, the description covers the return value (a new published revision), ownership and revision preconditions, error-code meanings, cryptographic signing requirements, and protocol-version behavior. Nothing an agent needs to call this correctly is missing.

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 still earns a bump by explaining proposalId's provenance across two sibling tools and framing expectedRevisionId as an optimistic-concurrency guard that turns a stale accept into a 409. The nonce/signature/kind details largely restate schema descriptions, which caps it below 5.

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?

Opens with a precise verb pair and resource: "Accept (merge) or reject one suggested edit on a document you own," plus the withdraw variant. This clearly separates it from heystack_suggest_edit (which creates suggestions) and from read tools, so an agent can route correctly without opening 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?

Gives concrete when-to-use context by naming where proposalId comes from (heystack_read_profile inbox/contributions, heystack_read_activity changes[].id) and a when-not constraint ("Only the owner can accept"). It stops short of explicitly naming heystack_suggest_edit as the tool to use instead when creating rather than resolving a suggestion, so it is strong but not fully exhaustive.

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.