Skip to main content
Glama

file_info

Read-onlyIdempotent

Retrieves size, created/modified dates, file type, and note metadata summary for files in an Obsidian vault.

Instructions

Size, created/modified dates, type and (for notes) a metadata summary of a 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": {
      "file": "<file>"
    },
    "name": "file_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYes
vaultNoVault name, id or folder path (see list_vaults). Default: OBSIDIAN_VAULT or the vault open in Obsidian.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered without the description. The description adds only that notes get a metadata summary rather than raw dates, which is genuinely useful context, but says nothing about behavior when the file is missing or about path resolution.

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?

A single compact sentence fragment with the most important output fields front-loaded and no filler. The only cost is that terseness comes at the expense of a clear leading verb.

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?

With no output schema, the description is the sole source of return-value information, and it names the fields but not their format or structure (date format, what 'metadata summary' contains). For a simple two-parameter read tool this is adequate, but the undocumented required `file` parameter and absent error behavior leave real gaps.

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 coverage is 50%: the `vault` parameter is documented in the schema, but `file` is a bare string with no description. The description mentions 'a file' without clarifying whether it is a name, a vault-relative path, or a link, so it does not compensate for the undocumented required parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description enumerates what the tool reports (size, created/modified dates, type, metadata summary for notes), from which an agent can infer a file-metadata lookup. However, it is a bare noun phrase with no verb, and it never distinguishes itself from the adjacent vault_info or other inspect-style siblings. Purpose is inferable but not 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?

There is no when-to-use guidance, no preconditions (e.g. file must exist), and no mention of an alternative such as vault_info for vault-level metadata. The agent must guess that this is the tool for inspecting a single file.

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

Deploy Server

Other Tools