Skip to main content
Glama

Write a handwritten Wren notebook page

write_notebook_page
Destructive

Writes handwritten pages into the user's Wren notebook: editable real ink, not the user's own handwriting. A page block starts the next page: one call = a whole note. target.noteId adds to that note; else a new note. Wren emails the user a link to their first note saved here. notes = any shape or length. A full page (not for verbatim): 110-140 words in 6-8 blocks (a table/figure = ~40 words), a heading per part, 3-6 key terms marked (underline/highlight; a mark's text is exact words of its own block), every number+unit and formula marked as math (its latex keeps every word: 20\ \text{m/s}), one accent, <=1 short marginNote, the takeaway in a callout (key_answer, key_idea) or summary. layoutHint side_by_side pairs two <=12-word callouts. worked_example = problem callout (box) + 3-4 steps (1-2 sentences + equation each) + Check heading+paragraph + common_mistake & key_answer callouts. concept_summary = definition callout + boxed equation or table/flowchart + 2 headings with 2-sentence paragraphs + key_idea callout. comparison_sheet = 1-sentence intro + 5-6 row table + heading+paragraph on why it matters + common_mistake & key_idea callouts (side_by_side). process_walkthrough = overview + 4-6 steps, each with label (stage name) + 1-2 sentences, optional flowchart + key_idea or summary. revision_sheet = 2-3 headings with paragraphs/equations + common_mistake & remember callouts (side_by_side) + 4-item checklist. verbatim = the user's own text, unchanged and once, in paragraph/heading blocks, nothing added.

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": {
      "title": "<title>",
      "pageKind": "<pageKind>",
      "blocks": "<blocks>"
    },
    "name": "write_notebook_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesPage title.
accentNoNew note only; an existing notebook keeps its accent.
blocksYes
targetNo
contextNo
subjectNoSubject the note is filed under.
pageKindYesnotes | worked_example | concept_summary | comparison_sheet | process_walkthrough | revision_sheet | verbatim: layouts above.
planSlotNoContent page k of the plan (cover not a slot); needs target.noteId only.
noteTitleNoNew title for the note and its cover.

Output Schema

NameRequiredDescriptionDefault
okYes
hintNoSet when the page came out short: what to add.
modeNo
planNo
titleNo
noteIdNo
pageIdNo
noteUrlNoPrivate link to the note in the user's Wren account (opens after sign-in).
outlineNo
locationNo
pageKindNo
pageCountNo
pageNumberNo
strokeCountNo
pagesWrittenNoA call with page blocks: every page it wrote, in order.
semanticTypeNo
strokeGroupIdNo
pagesNotWrittenNoPages that could not be written, and why.
conversationNoteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • addedInput schema / properties / blocks / items / properties / pageKind
      Added value: +{
      +  "description": "page only.",
      +  "maxLength": 24,
      +  "type": "string"
      +}
    • changedInput schema / properties / blocks / items / properties / title / description
      Previous value: -"Caption of a callout, summary, checklist, steps, equation or figure."New value: +"Caption of a callout, summary, checklist, steps, equation or figure; a page's title."
    • changedInput schema / properties / blocks / items / properties / type / enum
      Previous value: -[
      -  "heading",
      -  "paragraph",
      -  "steps",
      -  "equation",
      -  "callout",
      -  "figure",
      -  "checklist",
      -  "summary"
      -]New value: +[
      +  "heading",
      +  "paragraph",
      +  "steps",
      +  "equation",
      +  "callout",
      +  "figure",
      +  "checklist",
      +  "summary",
      +  "page"
      +]
    • changedInput schema / properties / blocks / maxItems
      Previous value: -24New value: +144
    • changedInput schema / properties / pageKind / description
      Previous value: -"worked_example | concept_summary | comparison_sheet | process_walkthrough | revision_sheet | verbatim: layouts above."New value: +"notes | worked_example | concept_summary | comparison_sheet | process_walkthrough | revision_sheet | verbatim: layouts above."
    • changedInput schema / properties / pageKind / enum
      Previous value: -[
      -  "worked_example",
      -  "concept_summary",
      -  "comparison_sheet",
      -  "process_walkthrough",
      -  "revision_sheet",
      -  "verbatim"
      -]New value: +[
      +  "worked_example",
      +  "concept_summary",
      +  "comparison_sheet",
      +  "process_walkthrough",
      +  "revision_sheet",
      +  "verbatim",
      +  "notes"
      +]
    • changedOutput schema / properties / pageKind / enum
      Previous value: -[
      -  "worked_example",
      -  "concept_summary",
      -  "comparison_sheet",
      -  "process_walkthrough",
      -  "revision_sheet",
      -  "verbatim"
      -]New value: +[
      +  "worked_example",
      +  "concept_summary",
      +  "comparison_sheet",
      +  "process_walkthrough",
      +  "revision_sheet",
      +  "verbatim",
      +  "notes"
      +]
    • addedOutput schema / properties / pagesNotWritten
      Added value: +{
      +  "description": "Pages that could not be written, and why.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "reason": {
      +        "type": "string"
      +      },
      +      "title": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "title",
      +      "reason"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / pagesWritten
      Added value: +{
      +  "description": "A call with page blocks: every page it wrote, in order.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "pageId": {
      +        "type": "string"
      +      },
      +      "pageKind": {
      +        "type": "string"
      +      },
      +      "pageNumber": {
      +        "type": "number"
      +      },
      +      "title": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "title"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Changed15 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / context / properties / course / description
      Added value: +"Course name, printed on the notebook cover."
    • removedInput schema / properties / context / properties / coveredSoFar
      Removed value: -{
      -  "maxLength": 300,
      -  "type": "string"
      -}
    • removedInput schema / properties / context / properties / goal
      Removed value: -{
      -  "enum": [
      -    "exam_revision",
      -    "homework",
      -    "lecture_notes",
      -    "self_study",
      -    "teaching",
      -    "copy_text",
      -    "other"
      -  ],
      -  "type": "string"
      -}
    • addedInput schema / properties / context / properties / language / description
      Added value: +"BCP-47 language tag of the page text; sets the writing direction (right-to-left or left-to-right)."
    • removedInput schema / properties / context / properties / level
      Removed value: -{
      -  "enum": [
      -    "primary",
      -    "middle",
      -    "high_school",
      -    "undergraduate",
      -    "graduate",
      -    "professional",
      -    "other"
      -  ],
      -  "type": "string"
      -}
    • addedInput schema / properties / context / properties / subject / description
      Added value: +"Subject, printed on the notebook cover and used to file the note."
    • removedInput schema / properties / context / properties / userRequest
      Removed value: -{
      -  "maxLength": 300,
      -  "type": "string"
      -}
    • removedInput schema / properties / conversation_id
      Removed value: -{
      -  "description": "Pass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request.",
      -  "type": "string"
      -}
    • removedInput schema / properties / llm_model
      Removed value: -{
      -  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      -  "type": "string"
      -}
    • changedInput schema / properties / noteTitle / description
      Previous value: -"Rename the note (and its cover) when this page widens its topic."New value: +"New title for the note and its cover."
    • changedInput schema / properties / pageKind / description
      Previous value: -"worked_example | concept_summary | comparison_sheet | process_walkthrough | revision_sheet | verbatim: recipes above."New value: +"worked_example | concept_summary | comparison_sheet | process_walkthrough | revision_sheet | verbatim: layouts above."
    • addedInput schema / properties / subject / description
      Added value: +"Subject the note is filed under."
    • changedInput schema / required
      Previous value: -[
      -  "title",
      -  "pageKind",
      -  "blocks",
      -  "llm_model"
      -]New value: +[
      +  "title",
      +  "pageKind",
      +  "blocks"
      +]
    • changedOutput schema / properties / noteUrl / description
      Previous value: -"Link that opens the note on any device."New value: +"Private link to the note in the user's Wren account (opens after sign-in)."
  3. Changed20 schema fields changed
    • addedInput schema / properties / accent / description
      Added value: +"New note only; an existing notebook keeps its accent."
    • addedInput schema / properties / blocks / items / additionalProperties
      Added value: +false
    • changedInput schema / properties / blocks / items / properties / equation / description
      Previous value: -"LaTeX or plain math."New value: +"LaTeX."
    • changedInput schema / properties / blocks / items / properties / figureContent / description
      Previous value: -"table: {\"headers\":[\"Feature\",\"A\",\"B\"],\"rows\":[[\"x\",\"1\",\"2\"]]}; others: get_drawing_guide. title=caption."New value: +"table {headers,rows}; flowchart {nodes:[{id,label}],edges:[{from,to}],cycle:true only if it repeats}; timeline {events:[{id,at,label}]}; bar_chart {bars:[{label,value}]}; graph_2d {curves:[{expr}]}."
    • addedInput schema / properties / blocks / items / properties / items / items / additionalProperties
      Added value: +false
    • changedInput schema / properties / blocks / items / properties / marginNote / description
      Previous value: -"Short fact in right margin."New value: +"Short fact beside this block."
    • changedInput schema / properties / blocks / items / properties / marks / description
      Previous value: -"3-6 key terms per page; every formula, symbol and number+unit (20 m/s) as math."New value: +"On paragraph, callout, summary, checklist, steps, table."
    • addedInput schema / properties / blocks / items / properties / marks / items / additionalProperties
      Added value: +false
    • removedInput schema / properties / blocks / items / properties / marks / items / properties / as / description
      Removed value: -"underline/highlight term; math draws latex."
    • changedInput schema / properties / blocks / items / properties / marks / items / properties / latex / description
      Previous value: -"LaTeX drawn for math."New value: +"math only."
    • changedInput schema / properties / blocks / items / properties / steps / description
      Previous value: -"Ordered steps (label = stage name, explain, optional equation)."New value: +"label = stage name."
    • addedInput schema / properties / blocks / items / properties / steps / items / additionalProperties
      Added value: +false
    • changedInput schema / properties / blocks / items / properties / style / description
      Previous value: -"box=problem, key_answer=answer, definition, key_idea, example, warning/common_mistake, remember, highlight."New value: +"callout: box=problem, key_answer, definition, key_idea, example, warning, common_mistake, remember, highlight."
    • changedInput schema / properties / blocks / items / properties / text / description
      Previous value: -"heading, paragraph, callout, summary text."New value: +"heading, paragraph, callout, summary."
    • changedInput schema / properties / blocks / items / properties / title / description
      Previous value: -"Caption above callout, summary, checklist or figure."New value: +"Caption of a callout, summary, checklist, steps, equation or figure."
    • addedInput schema / properties / context / additionalProperties
      Added value: +false
    • addedInput schema / properties / noteTitle
      Added value: +{
      +  "description": "Rename the note (and its cover) when this page widens its topic.",
      +  "maxLength": 160,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / pageKind / description
      Previous value: -"worked_example problem + 3-4 steps + Check + key_answer; concept_summary definition + equation/figure + 2 headed parts + key_idea; comparison_sheet intro + 5-6 row table + paragraph + 2 callouts; process_walkthrough intro + 4-5 steps + paragraph + summary; revision_sheet 3 headed sections + 2 callouts + 4-item checklist; verbatim user's own text."New value: +"worked_example | concept_summary | comparison_sheet | process_walkthrough | revision_sheet | verbatim: recipes above."
    • changedInput schema / properties / planSlot / description
      Previous value: -"1-based slot from plan_notebook."New value: +"Content page k of the plan (cover not a slot); needs target.noteId only."
    • addedInput schema / properties / target / additionalProperties
      Added value: +false
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: an outbound email ('Wren emails the user a link to their first note saved here'), accent persistence ('an existing notebook keeps its accent'), page-block semantics ('A page block starts the next page: one call = a whole note'), and hard limits on marginNote and callout pairing. It does not disclose the destructive path implied by target.action=replace_page, which is the one behavior an agent most needs warned about given destructiveHint=true.

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 target behavior, then layout recipes, and there is essentially no filler — every clause is an actionable constraint. The weakness is form: one long run-on paragraph of semicolon-separated rules where the per-pageKind recipes would be far more scannable as a list.

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 nine-parameter nested tool with seven pageKinds, the description supplies the layout contracts an agent actually needs, and the output schema covers return values. It stops short on the mutation controls (replace_page consequences, planSlot, noteTitle, context.language direction handling), which leaves a complex write tool slightly under-specified at the edges.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%, and the description compensates well for the block-level fields it does cover: marks must be 'exact words of its own block', math latex 'keeps every word', layoutHint side_by_side 'pairs two <=12-word callouts', marginNote is '<=1 short'. However it says nothing about target.action (new_note/add_page/replace_page), planSlot, noteTitle, subject, or context.language, leaving several documented-but-unexplained parameters untouched.

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 ('Writes handwritten pages into the user's Wren notebook') and immediately qualifies the output ('editable real ink, not the user's own handwriting'), which tells an agent exactly what artifact is produced. It also carves out the verbatim mode as a distinct behavior, so the tool is distinguishable from a plain note-creation sibling.

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 explicit routing rules for the main modes: 'target.noteId adds to that note; else a new note', 'A full page (not for verbatim)', and a per-pageKind recipe for worked_example, concept_summary, comparison_sheet, process_walkthrough, revision_sheet and verbatim. The gap is that it never names a sibling (e.g. draw_figure for standalone figures, plan_notebook for planning) or says when not to use this tool at all.

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