Skip to main content
Glama

monaa-guard

Check Command & Path Safety

monaa_check_command_safety
Read-onlyIdempotent

Evaluate a proposed shell command or file path against MONAA public wire security rules (blocks .env reads, rm -rf, symlink traversal, and RE/MITM probes statelessly at edge).

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": {
      "tool_name": "<tool_name>"
    },
    "name": "monaa_check_command_safety"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoOptional file or directory path to evaluate.
commandNoOptional shell command string to evaluate.
tool_nameYesTool name to check (e.g. bash, shell, read_file, write_file).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, and the description adds real value beyond them: the evaluation is stateless and happens at the edge, and it enumerates the classes of threats caught (.env reads, rm -rf, symlink traversal, RE/MITM probes). What is missing is the shape of the verdict returned (allow/deny plus reasons), which matters since there is no output schema.

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 front-loaded sentence that packs the action, rule set, and examples without filler. The nested parenthetical makes it slightly dense to parse but every clause carries information.

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 simple read-only predicate tool with fully documented parameters this is close to adequate, but with no output schema the description should still indicate what a result looks like (verdict plus matched rule) and how path and command interact when both are passed. Those gaps leave an agent guessing about the response.

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 all three parameters (path, command, tool_name) are already documented in the schema, including examples for tool_name. The description adds no additional semantics such as precedence when both path and command are supplied, so the baseline 3 applies.

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?

States a concrete verb ("Evaluate") and resource ("a proposed shell command or file path") and names the rule set it is checked against ("MONAA public wire security rules"), with concrete examples of blocked patterns. It does not explicitly differentiate itself from siblings like monaa_inspect_policy, so it falls short of 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 Guidelines3/5

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

The word "proposed" implies this is a pre-execution check, which is useful implicit guidance, but there is no explicit when-to-use/when-not statement nor any pointer to an alternative tool for policy inspection. Usage must be inferred.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.