Skip to main content
Glama

workspace_file_info

Read-only

Retrieve a single file's creation and modification times, byte size, and owner to inspect workspace file metadata.

Instructions

Read creation/modification times, byte size, and owner of one file.

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": "workspace_file_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Output Schema

NameRequiredDescriptionDefault
pathYes
ownerYes
resourcesNo
created_atYes
size_bytesYes
modified_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.1
    • addedInput schema / additionalProperties
      Added value: +false
  2. Addedv0.2.2

TDQS

B3/5.0
Behavior3/5

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

Annotations already establish readOnly, non-destructive, and closed-world, so the safety profile is covered. The description usefully enumerates the returned fields, but says nothing about error behavior for missing paths, symlink handling, or whether the path is workspace-relative or absolute. Adequate but with real gaps for a filesystem-touching tool.

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?

One tightly written sentence with no filler, and the returned fields are listed up front. It is appropriately sized for a trivial single-parameter read, though the space saved isn't spent on the missing path semantics.

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?

An output schema exists, so return values needn't be documented, and the description does list them anyway. For a simple stat-style read this is nearly sufficient, but the absence of path format guidance and missing-file behavior leaves an agent short of fully confident invocation.

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 0%, so the description carries the full burden for the single `path` parameter. It only implies the argument points to one file (not a directory or glob) and gives no format guidance such as relative vs absolute paths or whether a workspace prefix is required.

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?

A specific verb ("Read") plus the exact resource: timestamps, byte size, and owner of a single file. This implicitly separates it from workspace_read_file (which returns contents), but it never names that sibling, so the differentiation must be inferred rather than stated.

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 when-to-use guidance, no when-not-to-use, and no mention of workspace_read_file or workspace_list as alternatives. The only hint is that it returns metadata rather than contents, which an agent must deduce.

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