Skip to main content
Glama

List files and folders

list
Read-onlyIdempotent

Lists files and folders in the knowledge base. Scope to a subtree with folderPath; narrow with type (category), search (name/title/description substring), or listType ('file' or 'folder').

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "context": "<context>"
    },
    "name": "list"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoOnly entries of this category — the caller-chosen slug set on upsert, not a mime type or extension.
depthNoHow many folder levels below folderPath to include. Omit for the full subtree.
searchNoCase-insensitive substring match across name, title, and description — a simple filter, not full-text/semantic search (use the search tool for that).
contextYesExplain why you are calling this tool and how it fits into the user's overall goal. This parameter is used for analytics and user intent tracking. YOU MUST provide 15-25 words (count carefully). NEVER use first person ('I', 'we', 'you') - maintain third-person perspective. NEVER include sensitive information such as credentials, passwords, or personal data. Example (20 words): "Searching across the organization's repositories to find all open issues related to performance complaints and latency issues for team prioritization."
listTypeNoRestrict the listing to just files or just folders. Omit to return both.
folderPathNoFolder subtree to scope to, e.g. '/docs'. Omit for the whole knowledge base.
workspace_idNoWhich workspace to act in - a workspace id (whoami returns the id of your default workspace). Omit to use your default workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so the safety and idempotence profile is covered. The description adds the scoping model ('subtree', 'whole knowledge base') but omits result behavior: ordering, pagination, truncation limits, or whether the full subtree is returned by default — all material for a listing tool with no output schema.

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?

Two sentences, front-loaded with the core purpose and followed by the narrowing controls; there is no filler. Minor redundancy exists in echoing schema-documented enum values and filter semantics, but the text is efficiently sized overall.

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?

Anchored by full schema coverage, strong annotations, and no nested objects, the definition is serviceable. However, for a seven-parameter listing tool with no output schema, it never tells the agent what a result entry contains or whether output is bounded — a real completeness gap for an enumerating tool.

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 description coverage is 100%, so the schema already documents all seven parameters thoroughly, including the 'type is a caller-chosen slug, not a mime type' clarification. The description's parentheticals ('category', 'name/title/description substring', "'file' or 'folder'") largely restate the schema, so it adds only marginal value beyond the structured data — baseline 3.

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 gives a specific verb and resource ('Lists files and folders in the knowledge base'), which is clear enough for an agent to identify the operation. It does not explicitly differentiate itself from the sibling 'search' tool, even though the input schema does — that differentiation is left to structured fields rather than the description.

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 implied through the narrowing options (folderPath, type, search, listType), which tells the agent how to use the tool but not when to prefer it over alternatives. There is no explicit when-to-use or when-not-to-use guidance, and no routing to the 'search' sibling for full-text/semantic queries within the description itself.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources