Skip to main content
Glama

list_workspace_files

List available files in the configured workspace directory. Returns empty when no workspace directory is set.

Instructions

List the files available in the configured workspace directory. Returns an empty list when FILE_WORKSPACE_DIR is not set.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations are absent, so the description carries the full burden. It usefully discloses that an empty list is returned when FILE_WORKSPACE_DIR is not set, which adds behavioral context. However, it does not state whether the operation is read-only, what fields are returned for each file, or how the listing is ordered.

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?

The description is a single sentence that front-loads the action and resource, then adds the key edge case. No filler or redundant wording.

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?

Given no output schema and no annotations, the description should compensate by explaining return format. It does not specify what elements the list contains (e.g., relative paths, file names, metadata), leaving an agent uncertain about the result structure. The edge case is helpful but not sufficient for full completeness.

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?

There are zero parameters, and the schema is empty with 100% coverage. Per the rubric, a zero-parameter tool gets a baseline of 4; the description has no parameter semantics to add.

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?

The description states a specific verb ('List') and resource ('files available in the configured workspace directory'), which clearly identifies the tool's function. It distinguishes from task-file tools like get_task_files by referencing a workspace directory, though it does not explicitly name a sibling.

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?

There is no guidance on when to use this tool versus alternatives such as download_file, upload_file, or get_task_files. The only condition mentioned is the FILE_WORKSPACE_DIR unset case, which describes a behavioral outcome rather than a usage criterion.

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