Skip to main content
Glama

btb_list_directory

Lists files and folders in a back-to-the-basics repository directory so agents can inspect project structure before running commands.

Instructions

Lists contents of a directory in the back-to-the-basics repository.

Args: directory: Relative path from BTB root (default: root)

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": "btb_list_directory"
  }
}

Input Schema

NameRequiredDescriptionDefault
directoryNo.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it says nothing about whether listing is recursive, whether hidden or ignored files are included, how entries are sorted, or what happens for a nonexistent path. An output schema exists, so return-value shape need not be explained, but the operational semantics of a filesystem listing remain undisclosed.

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?

Two short components: a front-loaded purpose sentence and a single parameter note. Nothing is padded or repeated, and the parameter hint sits right where an agent needs it.

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?

For a one-parameter read tool with an output schema, the definition covers purpose and parameter meaning adequately, but the behavioral gaps (recursion depth, filtering, error behavior on invalid paths) leave an agent guessing about results. Minimum viable rather than complete.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate, and it does: it clarifies that 'directory' is a relative path from the BTB root and that the default is the root itself. That resolves the main ambiguity an agent would have (relative to what?) beyond the bare string type and default in the schema.

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 ('Lists contents of a directory') scoped to 'the back-to-the-basics repository', which distinguishes it from file-reading or command-execution siblings by naming the repository and the listing action. It stops short of explicitly contrasting with btb_read_file, but the verb/resource pair is unambiguous.

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

Usage Guidelines2/5

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

No when-to-use guidance, no exclusions, and no routing to alternatives such as btb_read_file for reading a single file or btb_execute_command for shell-level listing. Usage is only implied by the tool name and the phrase 'lists contents'.

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