Skip to main content
Glama

note の下書きを更新

update_draft
DestructiveIdempotent

Update an existing note.com draft by replacing its title and body with Markdown using a draft ID; published articles cannot be updated, and it never publishes.

Instructions

既存の下書きのタイトルと本文を、指定した Markdown で丸ごと置き換える。公開済みの記事は更新できない(下書き一覧にある ID だけ受け付ける)。公開はしない。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes下書きの ID(create_draft / list_drafts が返す数字の id)。
titleNo記事タイトル。省略すると Markdown 先頭の「# 見出し」を使い、本文からは除く。
dry_runNotrue なら note に何も送らず、送る予定の内容(タイトル・本文 HTML の先頭・画像数・警告)だけを返す。
base_dirNo画像の相対パスの基準ディレクトリ。省略時は markdown_path のディレクトリ、なければカレントディレクトリ。
markdownNo本文の Markdown。markdown_path と同時には指定できない。
eyecatch_pathNo見出し画像にするファイル(PNG / JPEG / GIF、10MB まで)。base_dir 基準。
markdown_pathNo本文の Markdown ファイルのパス(.md)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is largely covered. The description adds real value on top: the update is a wholesale replacement (丸ごと置き換える), not a patch, and it will not publish — useful specifics about what is destroyed and what side effect is deliberately absent. Remaining gaps (auth requirements, error behavior) are minor given annotation coverage.

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?

Three tight sentences with the core action front-loaded, then the scope constraint, then the non-publish guarantee. No filler and nothing an agent must scan past.

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 seven-parameter mutation tool with no output schema, the description covers the essential action, the destructive full-replacement semantics, and the eligibility constraint; dry_run return behavior is documented in the schema. It could still say more about failure modes or image handling, but nothing critical is missing.

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 description coverage is 100% and all seven parameters (including the markdown/markdown_path mutual exclusion and dry_run semantics) are documented in the schema itself. The description adds no parameter-level detail of its own, so the baseline of 3 is appropriate.

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 precise verb and resource: replaces an existing draft's title and body wholesale with the given Markdown. It also bounds the scope by noting published articles cannot be updated and that only draft-list IDs are accepted, which cleanly separates it from create_draft/list_drafts and from any publish step. An agent can tell exactly what this tool does 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 Guidelines4/5

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

Gives a clear when-not condition (公開済みの記事は更新できない, only IDs present in the draft list are accepted) and clarifies it will not publish. It does not, however, explicitly name an alternative (e.g. create_draft for new drafts or a publish action), so the routing guidance is contextual rather than explicit.

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