Skip to main content
Glama
opuhassan001-alt

AgentSentinel MCP Gateway

sentinel_safe_fs

Perform sandboxed filesystem reads, writes, lists, and stats with strict chroot containment and zero-trust secret masking to prevent path traversal and secret exposure.

Instructions

Perform sandboxed filesystem operations (read, write, list, stat) with strict chroot directory containment and zero-trust secret masking.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesFile or directory path relative to the sandboxed workspace root
actionYesFilesystem operation to perform
contentNoContent to write (required for "write" action)
encodingNoOptional file encoding (default: "utf8")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose two meaningful traits: strict chroot containment and zero-trust secret masking. However, it omits mutation semantics for 'write' (overwrite vs append, irreversibility), permission requirements, and anything about return payloads, leaving notable gaps for a tool that includes a write action.

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 that names the resource, enumerates the actions, and appends the two key safety constraints. Nothing is wasted and the core purpose leads.

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 4-parameter tool with no annotations and no output schema, the description covers containment and masking but leaves write semantics, error behavior, and return shape unaddressed. Adequate but with clear gaps given the mutation capability.

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 description coverage is 100%, so path, action, content, and encoding are all documented in the schema itself. The description only restates the action set and adds no format, encoding, or path-syntax detail beyond the schema, so the baseline of 3 applies.

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

Purpose5/5

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

States a specific verb (perform filesystem operations) and resource (sandboxed filesystem), and enumerates the four supported actions (read, write, list, stat). The 'sandboxed/chroot' framing clearly distinguishes it from sentinel_safe_exec, sentinel_safe_fetch, and the policy/audit siblings.

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?

The description implies usage (sandboxed file operations) but never states when to choose this tool over sentinel_safe_exec or sentinel_safe_fetch, nor any prerequisites or exclusions. Usage context is inferable from the action enum but not stated.

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