Skip to main content
Glama

auto_structure_thought

会話中にClaudeが考えた階層構造を、既存のマップに追加する。深さは3階層固定ではなく任意。構造化のロジック(何をどう分解するか)はClaude側の判断で行い、このツールはFirestoreへの書き込みだけを行う。追加先(parentElementId)はlist_elementsの結果を見て判断すること。対象は既存マップのみ(新規作成が必要ならcreate_mapを先に呼ぶ)。

Instructions

会話中にClaudeが考えた階層構造を、既存のマップに追加する。深さは3階層固定ではなく任意。構造化のロジック(何をどう分解するか)はClaude側の判断で行い、このツールはFirestoreへの書き込みだけを行う。追加先(parentElementId)はlist_elementsの結果を見て判断すること。対象は既存マップのみ(新規作成が必要ならcreate_mapを先に呼ぶ)。

Input Schema

NameRequiredDescriptionDefault
mapIdYeslist_mapsで得たマップのID
nodesYes追加する階層構造(ルートの配列)
parentElementIdNoこの要素の内側(子)として追加する。マップの最上位に追加する場合はnullまたは省略

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • changedInput schema / properties / nodes / items / properties / detail / description
      Previous value: -"要素の本文"New value: +"要素の本文(1要素5000文字まで)"
  2. First observedv0.1.2

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses that this is a pure write to Firestore ('追加する', additive), that hierarchy depth is arbitrary rather than a fixed 3 levels, and that decomposition logic is the caller's responsibility, not the tool's. Gaps remain around what is returned (created IDs?) and behavior on partial failure or permission errors.

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?

Front-loaded with the core action, then the scope constraint, then the prerequisite routing in the final sentence. No sentence is redundant; every clause adds operational 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 an unannotated mutation tool with a rich nested schema but no output schema, the description covers the essential behavior (write-only, additive, arbitrary depth, existing-map-only, parent selection). It stops short of describing the return value or failure modes, which an agent would need for error handling and follow-up edits.

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 coverage is 100%, so mapId, nodes, and parentElementId semantics are already documented in the schema (including the null/omitted = top level rule). The description adds only that parentElementId should be derived from list_elements output, which is procedural guidance rather than parameter-level meaning — baseline 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 specific verb+resource: appending a hierarchical structure of nodes into an existing map, with the explicit clarification that this tool performs only the Firestore write and no structuring logic. It also distinguishes itself from siblings by naming list_elements (for choosing the parent) and create_map (for new maps).

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?

Explicitly says when to use: existing maps only, and 'create_map first' when a new map is needed. It also gives the precondition for choosing parentElementId — look at list_elements results — so the agent knows which sibling to call before invoking this tool.

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