Skip to main content
Glama

file_op

Perform file operations, directory navigation, permission changes, disk usage checks, and inotify event monitoring.

Instructions

File system operations, directory navigation, permissions, disk usage, and inotify monitoring.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoPermissions octal (e.g. '755').
pathNoTarget path.
eventsNoinotify mask ('all', 'modify', 'create', 'delete', 'write', 'move').all
targetNoText to replace.
contentNoContent to write.
patternNoGlob search pattern.*
end_lineNoEnd line (1-indexed).
operationYesFile/Directory/Storage operation.
recursiveNoRecursive watch flag.
start_lineNoStart line (1-indexed).
replacementNoReplacement text.
timeout_secondsNoTimeout in seconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.3/5.0
Behavior1/5

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

No annotations are present, so the description carries the full burden of behavioral disclosure. It discloses no side effects, no permission requirements, no read-only vs mutating distinction, and no inotify lifecycle behavior. The phrase 'File system operations' gives no behavioral grounding for a tool that can write, replace, chmod, and watch.

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?

The description is one compact sentence that lists the major capability areas without padding. It is easy to scan, though broader than a single-action tool and partly restates the tool name.

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?

With 12 parameters, 17 operations, no output schema, and no annotations, this description is severely under-specified. It does not connect operations to required parameters, indicate return shapes, or explain watch/data-flow semantics, so an agent cannot reliably call this tool from the description alone.

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 100%, so each parameter already has a description in the input schema. The tool description itself adds no parameter-level meaning, but the baseline of 3 applies because the schema handles the semantic burden.

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 names broad capability areas ('File system operations, directory navigation, permissions, disk usage, and inotify monitoring'), which conveys the subject domain. However, it lacks a specific verb and does not distinguish file_op from the many dedicated sibling tools like file_read, file_write, inotify_watch, or storage_disk_usage.

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 guidance about when to use this generic dispatcher versus the specialized sibling tools. The description provides no 'use this when' or 'prefer alternative when' information, leaving the agent to infer usage from the operation enum alone.

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