Skip to main content
Glama
belsar-ai

joplin-mcp

by belsar-ai

execute_joplin_script

Run JavaScript with write access to Joplin notes: create, update, delete, or modify notes and notebooks. Supports top-level await.

Instructions

Execute JS with global 'joplin' object with write/destructive permissions. Top-level await. Return the result. Supports all read-only methods, search syntax, and call patterns defined in 'execute_joplin_readonly_script', plus the following modifying/destructive methods:

NOTES (write/destructive): createNote(title, body, notebookId?, tags?, isTodo?, todoDue?, todoCompleted?) updateNote(id, { title?, body?, parent_id?, is_todo?, todo_due?, todo_completed? }) appendToNote(id, content) prependToNote(id, content) deleteNote(id) moveNoteToNotebook(noteId, notebookId) editNote(id, oldString, newString, replaceAll?)

RULES:

  • createNote needs notebookId — call listNotebooks() first.

  • editNote returns pre-formatted output: after calling it, respond only "Done." — do not repeat, summarize, or reformat the output.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scriptYesThe JavaScript code to execute.
Behavior4/5

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

Despite no annotations, the description fully discloses the write/destructive nature, lists all destructive methods, mentions top-level await, and provides specific output behavior for editNote. Minor gaps include not addressing error handling or execution limits.

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?

The description is well-structured: start with purpose, then methods, then rules. However, it is somewhat lengthy; each sentence adds value, but could be tightened slightly for better conciseness.

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 tool with one parameter and no output schema or annotations, the description is fairly complete. It covers methods, rules, and return behavior. Missing details include potential execution limits or error handling, but overall adequate.

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

Parameters5/5

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

With 100% schema coverage, the baseline is 3, but the description adds substantial meaning by detailing the expected global 'joplin' object, available methods, and rules, far exceeding what the schema's simple string description provides.

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?

The description precisely states it executes JavaScript with write/destructive permissions using a global 'joplin' object. It distinguishes itself from the sibling readonly tool by explicitly listing the additional destructive methods, making its purpose clear and unique.

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?

The description provides explicit when-to-use guidance, including the rule that createNote requires calling listNotebooks() first, and a special output handling rule for editNote. It also contrasts with the readonly sibling, offering clear alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/belsar-ai/joplin-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server