Skip to main content
Glama

aegis_inspect_tool_call

Evaluate proposed MCP tool invocations against Zero-Trust firewall checks and append an immutable audit record before executing untrusted or high-risk calls.

Instructions

Evaluate a proposed MCP tool invocation against Aegis-MCP's Zero-Trust firewall (prompt injection, path traversal, destructive SQL, shell command injection, obfuscation decoding, RBAC/ABAC policies, session taint tracking, and deterministic DLP redaction) and append an immutable record to the SHA-256 hash-chained audit ledger. Use this before executing untrusted or high-risk MCP tool calls. Do NOT use this for read-only text scrubbing without auditing (use aegis_redact_sensitive_data instead) or for static manifest scanning (use aegis_scan_mcp_manifest instead).

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

Input Schema

NameRequiredDescriptionDefault
agent_idNoIdentifier of the calling agent.mcp-client
argumentsNoJSON arguments object to inspect and DLP-sanitize.
tool_nameYesName of the MCP tool being evaluated (for example, 'query_db' or 'read_file').
session_idNoOptional session identifier for toxic-flow taint tracking.
environmentNoExecution environment for RBAC/ABAC evaluation.dev
server_nameYesTarget MCP server identifier (for example, 'postgres-mcp' or 'filesystem-mcp').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, so the write/side-effect profile is partly covered; the description adds the crucial non-obvious behavior that every invocation appends an immutable record to a SHA-256 hash-chained audit ledger, and that arguments are DLP-redacted. It does not disclose what the verdict response contains, whether a blocked call still writes to the ledger, or latency/retention characteristics, so it falls short of a 5.

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 long parenthetical enumerating eight firewall capabilities is dense but front-loaded and scannable, and the usage/exclusion sentences are tight. Slightly heavy phrasing ('Evaluate... and append...') costs a little, but nothing is redundant with the schema or annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter security gate with no output schema, the description conveys the checks performed, the required precondition (call before execution), the audit side effect, and the alternatives. The main missing piece is return-value semantics for a tool whose whole value is a verdict, which matters more here because no output schema exists.

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 six parameters including agent_id, environment, and session_id are already documented, and the baseline of 3 applies. The description adds only the general framing that arguments are inspected and DLP-sanitized and that session_id drives taint tracking, restating what the schema says rather than adding format or interaction details.

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 (evaluate) and object (a proposed MCP tool invocation against the Zero-Trust firewall), then enumerates the exact check families it runs (injection, traversal, SQL, shell, obfuscation, RBAC/ABAC, taint, DLP) and adds the audit-ledger side effect. It explicitly distinguishes itself from two siblings, aegis_redact_sensitive_data and aegis_scan_mcp_manifest.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives a positive trigger ('Use this before executing untrusted or high-risk MCP tool calls') plus two explicit exclusions naming the correct alternatives: read-only text scrubbing without auditing goes to aegis_redact_sensitive_data, static manifest scanning goes to aegis_scan_mcp_manifest. The routing decision is fully determined without opening other schemas.

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