Skip to main content
Glama

file_stat

Read-only

Read file or directory metadata without transferring file bytes

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": {
      "workspaceSlug": "<workspaceSlug>",
      "path": "<path>"
    },
    "name": "file_stat"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
queryNo
workspaceSlugYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds the useful behavioral note that no file content is returned, but says nothing about error behavior (404 vs 204) or what happens on a missing workspace.

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?

A single front-loaded sentence with no filler; the distinguishing clause follows the core action. Nothing could be removed without losing meaning.

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 simple read-only metadata tool with annotations covering safety and no output schema, the description is close to adequate. However, 'metadata' is left undefined (size, type, timestamps?) and the path/workspaceSlug parameters are undocumented, so an agent cannot fully predict the response shape.

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

Parameters2/5

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

Schema description coverage is reported as 0% while three parameters (workspaceSlug, path, query.optional) exist, and the description mentions none of them. Only the nested 'optional' property carries an inline description about the 204 response, so the description does not compensate for the coverage gap on path and workspaceSlug.

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 (read file/directory metadata) and adds the distinguishing constraint 'without transferring file bytes', which implicitly separates it from file_get and file_download_create. It stops short of naming a sibling, so an agent must still infer the contrast.

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?

'Without transferring file bytes' implies when this is preferable to a full fetch, but there is no explicit when-to-use statement, no exclusions, and no named alternative among the many file_* siblings. Usage is inferable rather than stated.

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