Safety and audit framework for autonomous AI agents with transparent proxy policy enforcement and tamper-evident audit logging
AgentGuard MCP server exposes 9 tools focused on shell execution, file operations, policy status, and audit retrieval. Tools have basic descriptions (50-150 chars) and minimal input schemas. However, critical gaps exist: (1) Parameters lack descriptions in most tools, only input type is present, no context for LLMs on what values are valid or what constraints apply. (2) Output schemas are not documented, callers cannot predict return structure. (3) Error handling is mentioned in code but not surfaced in tool definitions. (4) No parameter constraints (enums, ranges, patterns) are declared. (5) Security-critical tools (shell_execute, file_write, file_edit) lack detailed descriptions of denial/failure modes. This is a C-grade server, functional but not production-ready by agentic standards.
Retrieve recorded audit entries from the current session.
Edit a file by replacing a section matching old_text with new_text.
Find files matching a glob pattern.
Search for lines matching a regular expression in a file.
List the contents of a directory.
Read the contents of a file.
Write or overwrite a file with the given contents.
Get the status of loaded policies and their configuration.
Parameter descriptions missing across all 9 tools. LLMs cannot infer valid input ranges, formats, or constraints. E.g., 'path' param in file_read/file_write/file_list has no description explaining absolute vs relative, symlink handling, or behavior on missing paths.
Output schemas undocumented for all 9 tools. LLMs do not know what fields/structure to expect, forcing them to make unsafe assumptions about response format. E.g., does file_read return {content: string} or {text: string, encoding: string}? Does file_glob return a list or a paginated result with {files: [], total: int}?
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 44 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 34 | - | v1 |
Execute a shell command. Runs the command through a policy check first. If any loaded policy denies the command, it is not executed.
No parameter constraints (enums, ranges, patterns) declared. E.g., shell_execute accepts any string; no validation guidance. file_glob 'pattern' has no format description (fnmatch? glob? regex?). audit_entries 'limit' has no documented range (0 - 1000? 1 - 100?).
Destructive tools (shell_execute, file_write, file_edit) lack detailed error recovery guidance in tool descriptions. If policy denies shell_execute, the description does not guide the LLM to check policy_status or understand why the denial occurred.
No pagination guidance for potentially large result sets. file_glob and file_list do not document whether large directories are paginated, capped, or returned in full. file_grep result count limits are not specified.
Tool descriptions are generic and do not answer 'when should I use this instead of a similar tool?' E.g., file_read vs file_grep are both file-access tools, but the descriptions do not guide LLM selection.