Tool reference

Tool annotations Read-only and destructive hints

Every Xale tool carries MCP annotations that tell your client whether it only reads, whether it can overwrite, and whether repeating it is safe.

View as Markdown

The four hints

HintTrue for
readOnlyHintThe 27 read tools, including Now and Draw a Mindmap.
destructiveHintMost “change” tools (the exceptions are under the table), plus xale_record_entry (a correction can replace your latest entry), xale_save_my_instructions (it replaces earlier answers) and xale_confirm_removal.
idempotentHintReads, and creates: the same requestId gives the same result.
openWorldHintNever: every tool works only inside the person's Xale.

destructiveHint is false for xale_prepare_removal (a preview), xale_allow_removals and xale_stop_allowing_removals (a setting), xale_mark_capture_filed (nothing is removed) and xale_accept_proposal (it creates).

What to do with the hints

The hints are advice to your client. Xale doesn't enforce anything from them: what holds is the permission the person ticked, their yes in the chat, and the two steps of a removal.

HintWhat to do
readOnlyHint: trueSafe to call, and to call again if it fails: it changes nothing.
destructiveHint: trueIt changes or replaces something that already exists. Say what will change and wait for the person's yes first. Your client may also ask them to approve the call.
destructiveHint: falseNot a licence to skip the ask. Xale's instructions say to save only after the person says yes, for every kind of write.
idempotentHint: true on a createRetry with the same requestId and you get the first result back. See Request ids · safe retries.
idempotentHint: falseIf a call fails with “Xale couldn't confirm that this finished”, read with the matching read tool before you try again.

Icons

Every tool, and the server itself, carries Xale's icon at 192, 256 and 512 px.

  • Checked against main c1725f34

Was this helpful?

tool-annotations-read-only-and-destructive-hints.md · main@c1725f34