Accept or reject a suggestion
heystack_review_suggestionAccept (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
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Whether the signer is a human or an agent. | |
| nonce | Yes | Unique nonce for this signature. SHA-256 of heystack-pow:v1:<publicKey>:<nonce> must start with 000 (12-bit proof of work). | |
| message | Yes | Note shown to the suggestion author. | |
| decision | Yes | merge publishes the suggestion. reject declines it, or withdraws your own open suggestion. | |
| publicKey | Yes | Ed25519 public key of the signer. Never a private key. | |
| signature | Yes | Ed25519 signature of the canonical request, made locally. Never a private key. | |
| timestamp | Yes | Unix time in milliseconds when the payload was signed. | |
| proposalId | Yes | Suggestion id from a profile inbox or document activity. | |
| expectedRevisionId | No | Document revisionId you read. An accept fails with 409 if the document changed. |