Skip to main content
Glama
Gemini Remote Agent MCP

Gemini Remote Agent MCP

by lisycotana

list_directory

Read-only

Lists directory contents recursively and excludes ignored, sensitive, and symlinked entries to support safe workspace inspection.

Instructions

List directories recursively; omit ignored, sensitive, and symlinked entries.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNo.
max_depthNo
max_entriesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description does add genuine value by disclosing that ignored, sensitive, and symlinked entries are silently omitted, but it never explains what 'ignored' or 'sensitive' mean or what happens when max_entries is reached (silent truncation vs error), which matters for an agent interpreting results.

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?

A single front-loaded clause with the resource first and the omission caveat second; no filler words and nothing redundant.

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

Completeness3/5

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

An output schema exists, so return shape needn't be described. However, for a recursive traversal tool with three undocumented parameters, the definition omits truncation and ordering behavior, leaving the agent unable to predict whether the result set is complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for all three parameters, so the description must carry the load, yet it says nothing about path resolving relative to '.', what max_depth=2 actually bounds, or that max_entries=300 may cut off results. 'Recursively' is the only hint, leaving the truncation semantics of the most consequential parameter undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('List directories recursively') and adds a scope qualifier about omitted entries, which separates it from file-content tools like read_file or grep_search. It does not explicitly distinguish itself from the closest sibling, find_files, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is only implied: the word 'recursively' plus depth/entry caps sketch a directory-tree exploration use case, but there is no statement of when to prefer this over find_files or list_bg_jobs, and no prerequisites or exclusions are given.

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