Skip to main content
Glama

list_docs

Read-only

List document metadata for a repository, showing paths, section counts, formats, sizes, and modification times to quickly assess indexed docs without loading content.

Instructions

v1.55+ — flat per-doc inventory of an indexed repo: doc_path, section_count, format, byte_size for each indexed document. Lighter than get_toc_tree (which returns full section trees per doc). Sorted by doc_path. Inventory only; it returns no section titles and no content. Each doc also carries mtime when one is known — as of the last indexing pass, omitted when unknown rather than null — and _meta.docs_with_mtime says how many have one, so a partially filled or pre-1.144 index is distinguishable from a complete one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoYesRepository identifier

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.118.0
  2. Removedv1.99.0
  3. First observedv1.66.3

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses sorting behavior, the absence of section titles/content, version constraints, conditional mtime omission, and the _meta.docs_with_mtime counter. It also explains how to distinguish a partial index, adding substantial behavioral context.

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 front-loaded with the core purpose and feature version, then uses tightly scoped sentences to add comparison, output fields, and edge-case behavior. Every sentence carries distinct information with no filler.

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?

Given there is no output schema, the description thoroughly compensates by listing returned fields, conditional mtime behavior, sorting, and metadata. The single required parameter is already covered by the schema, so nothing essential is missing for invoking this tool correctly.

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?

The single required parameter `repo` is fully described in the schema as 'Repository identifier', so schema coverage is 100%. The tool description adds no additional parameter-level detail, which is acceptable at the baseline since no semantic gap exists.

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?

The description states a specific verb and resource: it lists a flat per-doc inventory with exact fields (doc_path, section_count, format, byte_size). It explicitly contrasts itself with get_toc_tree, making sibling differentiation unambiguous.

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

Usage Guidelines4/5

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

The description names get_toc_tree as the heavier alternative and characterizes this tool as lighter and inventory-only, clarifying when it is appropriate. It does not give exhaustive when-not-to-use conditions, but the context is clear enough for routing.

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