Skip to main content
Glama

delete_elements

Deletes specified elements and their descendants from a mind map, requiring confirmation to prevent irreversible removal. First call returns targets for approval; then confirm to execute.

Instructions

既存マップから要素を削除する。指定した要素とその配下(子孫)を丸ごと削除する。削除は取り返しがつかないため、まずconfirmedを省略(またはfalse)で呼び、返ってくる削除対象の一覧(パスと配下件数)をユーザーに提示して明示的な同意を得てから、confirmed: trueで呼び直すこと。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mapIdYeslist_mapsで得たマップのID
confirmedNotrue以外(省略時false)は削除対象の確認情報だけを返し、実際には削除しない
elementIdsYeslist_elementsで得た要素のID(複数可)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it discloses irreversibility (削除は取り返しがつかない), cascade deletion of descendants, and the dry-run semantics of confirmed, including that the dry run returns the paths and descendant counts. It stops short of stating permission requirements or limits on how many elements may be deleted at once.

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 sentences, front-loaded with the destructive action and cascade scope, then the safety workflow. Every sentence carries required information and nothing is padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, annotation-free tool with no output schema, the description supplies the missing safety profile and explains what the dry-run returns (paths and descendant counts). An agent has everything needed to call it safely and correctly.

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%, so the schema already documents mapId, elementIds and the dry-run meaning of confirmed. The description restates the confirmed workflow rather than adding syntax, format, or edge-case detail beyond it, so the baseline 3 is right.

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 ('既存マップから要素を削除する') and immediately clarifies scope via the cascade rule (指定した要素とその配下(子孫)を丸ごと削除する). This clearly separates it from siblings like edit_element and move_element, which touch the same resources without removing them.

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?

Prescribes an explicit two-call workflow: first call with confirmed omitted/false to obtain the target list, present it to the user for explicit consent, then re-call with confirmed: true. The when-not condition (do not delete before consent) and the alternative call mode are both spelled out.

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