Skip to main content
Glama

Write to an encrypted note

write_note_ciphertext
Destructive

Adds one encrypted Yjs update, made on the user's side in the read_note_ciphertext format, to an end-to-end encrypted note: the change from an edit, which merges live with people typing in the note. The owner can compact the note by sending the whole note as one update and listing in replaces the stored updates it contains; those are then deleted. Needs edit access. Pro.

Input Schema

NameRequiredDescriptionDefault
idYesThe id at the end of the link, e.g. "k3v9qa" in https://static.md/md/k3v9qa
replacesNoOwner only: refs (from read_note_ciphertext) of the stored updates this update contains in full, to delete once it is stored
ciphertextYesOne encrypted Yjs update: base64 of a 12-byte IV, the AES-256-GCM ciphertext and its 16-byte tag

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, and the description earns credit on top by explaining *what* is destroyed (stored updates listed in replaces are deleted after the write) and the merge-not-overwrite semantics. It also discloses the edit-access and Pro-plan requirements. Missing only failure/conflict behavior when a merge is rejected.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The core action is front-loaded, but it is delivered as one dense run-on sentence, and the clause 'listing in replaces the stored updates it contains' is grammatically tangled enough to slow comprehension. No filler, but readability costs it a point.

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?

With no output schema, an agent can still act correctly: annotations cover the safety profile and the description covers auth, tier, merge semantics, and the compaction path. The only gap is that it never says what a successful write returns or how a ref for later replaces is obtained.

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 clarifying that ciphertext is produced client-side in the read_note_ciphertext format and that replaces is an owner-only compaction mechanism. It doesn't add detail on the id format or size limits, but those are already well covered in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: adds one encrypted Yjs update to an end-to-end encrypted note. It also pins the payload format by referencing the sibling read_note_ciphertext, which separates it from the plaintext update_note and from create_note_ciphertext. It never explicitly contrasts itself with those siblings, so it falls short of a 5.

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 real usage context: the update merges live with concurrent editors, and the compaction path (send the whole note as one update plus replaces) is spelled out for owners. Prerequisites are named ('Needs edit access. Pro.'). It stops short of saying when to use this versus update_note or create_note_ciphertext.

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.

Resources