Skip to main content
Glama
andresthor

Command-Line MCP Server

by andresthor

approve_directory

Grant temporary or persistent directory access permissions within a controlled command-line environment to enable secure file operations during AI-assisted terminal sessions.

Instructions

Approve access to a directory for the current session.

Args: directory: The directory to approve access to session_id: The session ID remember: Whether to remember this approval for the session

Returns: A dictionary with approval status

Input Schema

NameRequiredDescriptionDefault
rememberNo
directoryYes
session_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries full burden but lacks critical behavioral details. It doesn't disclose whether this requires special permissions, if it's idempotent, what happens on failure, or any rate limits. The mention of 'remember this approval' hints at persistence but is insufficient for a mutation 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?

The description is front-loaded with the core purpose, followed by structured parameter and return sections. It's efficient with minimal waste, though the parameter explanations could be more informative to earn a 5.

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?

Given 3 parameters with 0% schema coverage and no annotations, the description is moderately complete but lacks depth for a mutation tool. The output schema exists, so return values needn't be explained, but behavioral and usage gaps remain significant.

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 0%, so the description must compensate. It lists all three parameters with brief explanations, adding meaning beyond the bare schema. However, it doesn't detail format constraints (e.g., directory path syntax) or the implications of 'remember', keeping it at baseline adequacy.

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 description clearly states the action ('Approve access to') and resource ('a directory'), making the purpose understandable. However, it doesn't differentiate from sibling tools like 'list_directories' or 'execute_command', which would require 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like 'list_directories' or 'execute_command'. It mentions 'for the current session' but doesn't explain prerequisites or exclusions, leaving usage context vague.

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