Skip to main content
Glama

Draw one figure in Wren

draw_figure
Destructive

Draws one standalone figure in the user's Wren notebook, large on its own page: a graph, labelled diagram, chart, table, timeline, flowchart, mind map, concept map, number line or shapes. Figure only, no text blocks (write_notebook_page pages can hold figure blocks next to text). No target: a new note. target.noteId: a new page at the end of that note; with target.pageNumber: drawn onto that page if Wren wrote it (mode append keeps its ink, replace redraws it). The result includes noteUrl, a private link that opens in the user's Wren account after sign-in. Wren emails the user a link to their first note saved here.

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": {
      "figure": "<figure>"
    },
    "name": "draw_figure"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoA new note's title.
figureYes
targetNo
contextNo
subjectNoSubject a new note is filed under.

Output Schema

NameRequiredDescriptionDefault
okYes
titleNo
noteIdNo
pageIdNo
noteUrlNoPrivate link to the note in the user's Wren account (opens after sign-in).
pageCountNo
figureKindNo
pageNumberNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 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"
      -}
    • addedInput schema / properties / subject / description
      Added value: +"Subject a new note is filed under."
    • changedInput schema / required
      Previous value: -[
      -  "figure",
      -  "llm_model"
      -]New value: +[
      +  "figure"
      +]
    • 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)."
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

Goes beyond the annotations by disclosing the destructive mechanics ('mode append keeps its ink, replace redraws it') and that a page can only be drawn onto if Wren wrote it. It also reveals side effects not in the annotations: noteUrl requires sign-in, and Wren emails the user a link to their first saved note. Return-shape detail is thinner, but killing the biggest unknown for a destructiveHint=true tool.

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 the core definition and the sibling distinction, then the target branches in a compact 'No target: … target.noteId: …' structure that is easy to scan. Dense and slightly run-on in the final sentences, but nearly every clause carries distinct information.

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 destructive, non-idempotent write tool with nested params and an output schema, the description covers the risky decisions (target mode, overwrite behavior) and the caller-visible return (noteUrl, email). Remaining gaps — the exact figure content shapes and context fields — are handled by the schema; the new-note title/subject interplay could be stated more explicitly.

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 only 40%, yet the description meaningfully expands the hardest parameters: the three-way target behavior, the noteId/pageNumber interaction, and the append/replace semantics of mode. It adds nothing for title, context.course/subject/language, or the full enum of figure kinds, but those are documented in the schema or are low-risk.

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 — 'Draws one standalone figure in the user's Wren notebook, large on its own page' — and enumerates concrete figure types (graph, chart, timeline, flowchart, mind map, etc.). It also explicitly contrasts with write_notebook_page ('Figure only, no text blocks'), so an agent can tell the two apart without opening a 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 routing rule: use this for figure-only content, use write_notebook_page when text blocks must sit alongside figures. It then spells out the target branches (no target = new note, noteId = new page at the end, pageNumber = onto an existing Wren-written page) plus the append-vs-replace condition, leaving little to inference.

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