Skip to main content
Glama

list_elements

Retrieve all elements and parent-child relationships from a specified map, including raw checked values. User confirmation is required before first reading maps that may contain sensitive data.

Instructions

指定したマップ内の全要素と親子関係、チェック状態(checked)を返す。checkedは各要素にFirestoreへ実際に保存されている生の値であり、「祖先がチェック済みなら配下も完了とみなす」という加工は行っていない。そう解釈したい場合は、返ってきたツリーを見てこちら(呼び出す側)で判断すること。マップの中身には秘匿情報が含まれ得るため、初めて読むマップでは呼び出し前にユーザー本人の許可が必要。confirmed: trueを付けずに呼ぶと、このツールは実データを返す代わりに確認を促すメッセージだけを返すので、その指示に従ってユーザーに直接確認してからconfirmed: trueで呼び直すこと。アプリ側での直接の編集はこのツールを呼ぶまで反映されないため、ユーザーから進捗や状態を尋ねられたときは記憶に頼らず必ず呼び直すこと。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mapIdYeslist_mapsで得たマップのID
confirmedNoユーザー本人に直接「中身を確認してよいか」と尋ね、同意を得てからtrueを付けて呼ぶこと。確認前にtrueを付けてはならない。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A4.9/5.0
Behavior5/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 so richly: it discloses the confirmation gate (calling without confirmed returns a prompt instead of data), the confidentiality risk of map contents, and the staleness behavior that memory shouldn't be trusted. These are exactly the non-obvious traits an agent needs before invoking.

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?

Return values and the raw-checked caveat are front-loaded, and every sentence carries actionable information. It is dense but never padded, though the single long block could be broken up for faster scanning.

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?

With no output schema, the description adequately describes the return shape (elements, parent-child structure, checked state) plus the gating and staleness behavior. An agent has everything needed to call it correctly and interpret results.

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?

Schema coverage is 100%, so the baseline is 3, but the description goes beyond the schema by explaining the operational semantics of confirmed (must ask the user first, never set true before confirming) and the meaning of mapId's source. This adds real meaning over the field descriptions rather than restating them.

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?

Opens with a specific verb+resource+scope: returns all elements in a given map along with parent-child relationships and checked state. It further sharpens the deliverable by clarifying that checked is the raw stored value, not an inherited-completion interpretation, so an agent knows exactly what it gets versus related read tools like list_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?

Gives explicit when-to-use conditions: obtain the user's own consent before reading an unfamiliar map, and re-call this tool (never rely on memory) whenever the user asks about progress or state because app-side edits are not reflected until invoked. It also states the exact invocation protocol (call without confirmed to get a prompt, then re-call with confirmed: true).

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