Skip to main content
Glama

stat_path

Read-only

File or folder details: size, modified/created times, mode, text line count and appendPosition, or spreadsheet sheet sizes. Returns JSON. A missing path is an error unless missingOk is true; to check whether a path exists, pass missingOk: true and read exists.

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

Input Schema

NameRequiredDescriptionDefault
pathYes
deviceIdNoComputer name or id
missingOkNoReturn {"exists": false} instead of an error when the path does not exist.
workSessionIdNoFrom create_work_session

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id; optional with one computer or a default"New value: +"Computer name or id"
  2. Changed2 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id from list_devices. Optional with one computer online or a default set."New value: +"Computer name or id; optional with one computer or a default"
    • changedInput schema / properties / workSessionId / description
      Previous value: -"Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work."New value: +"From create_work_session"
  3. Changed1 schema field changed
    • addedInput schema / properties / missingOk
      Added value: +{
      +  "default": false,
      +  "description": "Return {\"exists\": false} instead of an error when the path does not exist.",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / workSessionId
      Added value: +{
      +  "description": "Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work.",
      +  "format": "uuid",
      +  "type": "string"
      +}
  5. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds genuine behavioral detail on top: missing paths raise an error rather than returning empty results, missingOk converts that to {"exists": false}, and the response is JSON. It does not describe pagination, error types, or behavior for special file kinds, but that is minor for a read-only stat call.

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?

Front-loaded with the resource and its returned fields, followed by the return format and then the one non-obvious error rule. Three sentences, each earning its place. The field enumeration is slightly run-on but well justified given there is no output schema.

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?

With no output schema, the description compensates by naming what comes back, and it covers the only failure mode that would otherwise trip an agent (missing path). Combined with annotations covering safety, an agent has everything needed to call it correctly and interpret the result.

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 coverage is 75% (deviceId, missingOk and workSessionId are documented in the schema), so the schema already carries most parameter meaning. The description reinforces missingOk and adds the interpretive hint that the response contains an 'exists' field, but it says nothing about the format of the required path argument or the semantics of deviceId. Baseline 3 is appropriate.

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 opening phrase 'File or folder details' plus an enumeration of the returned fields (size, times, mode, line count, appendPosition, sheet sizes) makes it unambiguous that this is a read-only metadata inspection tool, clearly distinct from the mutating siblings like copy_path, move_path and remove_path. It lacks an explicit verb and never names a sibling, so it stops short of a 5.

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 context for use is clear: inspect metadata of a known path. It also gives a concrete conditional workflow — pass missingOk: true and read exists when you only need to test existence — which steers the agent away from treating a missing path as an exception. It offers no exclusions or named alternatives (e.g. disk_usage or listing tools), so it is not a 5.

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