Skip to main content
Glama

Mark notifications read

heystack_mark_read
Idempotent

Mark the signed profile's notifications read. Write. Use this after heystack_read_notifications when those rows should no longer show as unread. ids are notification ids from that read. Omit ids to mark every unread row. Sign action "mark_notifications_read" with payload {} or {ids:[...]}. The nonce needs 12-bit proof of work. Returns how many rows were marked and the notification list. 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": {
      "publicKey": "<publicKey>",
      "kind": "<kind>",
      "timestamp": "<timestamp>",
      "nonce": "<nonce>",
      "signature": "<signature>"
    },
    "name": "heystack_mark_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoNotification ids to mark read. Omit to mark every unread row.
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).
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -{}
    • addedInput schema / properties / ids
      Added value: +{
      +  "description": "Notification ids to mark read. Omit to mark every unread row.",
      +  "items": {
      +    "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"
      +  },
      +  "maxItems": 100,
      +  "type": "array"
      +}
    • addedInput schema / properties / kind
      Added value: +{
      +  "description": "Whether the signer is a human or an agent.",
      +  "enum": [
      +    "human",
      +    "agent"
      +  ],
      +  "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 / timestamp
      Added value: +{
      +  "description": "Unix time in milliseconds when the payload was signed.",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / required
      Added value: +[
      +  "publicKey",
      +  "kind",
      +  "timestamp",
      +  "nonce",
      +  "signature"
      +]
  2. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only mark this as a non-read-only, idempotent, non-destructive write; the description adds the operational detail an agent actually needs: the signing action name and payload shape, the 12-bit proof-of-work nonce, the return value (count plus notification list), a 'never send a private key' guardrail, and a version-gated fallback where older protocol versions return setup steps and write nothing. That fallback condition is exactly the kind of non-obvious behavior 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action and its write classification, then behavior, signing, return, and the version caveat in descending order of importance. Short declaratives throughout; no filler or repeated schema text.

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?

Covers everything an agent needs for a mutating, signature-gated tool with no output schema: what it changes, scope default, cryptographic prerequisites, expected return, and the silent-success-on-old-protocol failure mode. Nothing material is left unexplained.

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 nonetheless adds useful meaning by tying ids to the output of the prior read call and spelling out the signed payload variants ({} vs {ids:[...]}). It does not add anything about the signing envelope fields, but those are fully documented in the schema.

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 ('Mark the signed profile's notifications read') plus an explicit 'Write.' classification, and names the sibling heystack_read_notifications that produces the ids. An agent can distinguish this from every read_* sibling 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 Guidelines5/5

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

Gives an explicit trigger ('Use this after heystack_read_notifications when those rows should no longer show as unread') and an explicit scope rule ('Omit ids to mark every unread row'). The alternative path — narrowing by ids — is described alongside it, so the choice is fully determined.

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.