Skip to main content
Glama

files_stats

Get corpus-level statistics including file node counts, leaf counts, and embedding coverage, organized by file type.

Instructions

Corpus-level counters: file_nodes, leaves, embed coverage, by-filetype.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
corpusNo
databaseNo
Behavior2/5

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

No annotations are present, so the description carries full burden. It only lists what counters are available but does not disclose behavioral traits such as read-only nature, required permissions, performance implications, or side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely brief—one short sentence. While concise, it omits critical information about parameters and usage, making it under-specified and not well-structured.

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

Completeness1/5

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

Given the lack of annotations and output schema, the description fails to provide sufficient context about the tool's behavior, parameter usage, or output structure. It leaves the agent guessing what 'file_nodes', 'leaves', 'embed coverage', and 'by-filetype' mean and how the parameters affect results.

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

Parameters1/5

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

Schema description coverage is 0%, and the description does not mention the two parameters (corpus, database) or explain their purpose. The description adds no value beyond the raw 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?

The description 'Corpus-level counters: file_nodes, leaves, embed coverage, by-filetype' clearly identifies the tool's function as providing aggregated statistics. It distinguishes itself from siblings like files_search and files_get by focusing on counters rather than file retrieval or search.

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 guidance is provided on when to use this tool versus alternatives. There is no mention of prerequisites, context, or scenarios where this tool is preferred over other corpus-related tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/skynetcmd/m3-memory'

If you have feedback or need assistance with the MCP directory API, please join our Discord server