Skip to main content
Glama

aegis_mcp_audit

Audit a remote MCP server URL or inline tool manifest for OWASP MCP03 tool poisoning, credential theft, stealth Unicode, and SHA-256 rug-pull drift before connecting an AI agent.

Instructions

USE WHEN: Auditing a remote MCP server URL or inline tool manifest for OWASP MCP03 tool poisoning, credential theft, stealth Unicode, and SHA-256 rug-pull drift before connecting an AI agent ($0.01 USDC on Base).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "aegis_mcp_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolsNoOptional inline MCP tools array to audit instead of a remote serverUrl
serverUrlNoPublic https:// Streamable HTTP MCP server or mcp.json manifest URL
baselineManifestHashNoOptional pinned SHA-256 baseline hash to detect silent runtime rug-pull drift

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.2

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden, and it does disclose two things structured data does not: the operation costs $0.01 USDC on Base (a real gating fact an agent must know before calling) and that it performs a remote fetch of a public https:// endpoint. It stops short of stating whether the call is read-only, whether the fetched manifest is retained, what the audit returns, or what happens if both a serverUrl and an inline tools array are supplied.

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 with zero filler: trigger, resource, threat coverage, prerequisites, and cost all appear in one pass. Parenthetical cost placement keeps the action verb first, which is exactly the right structure for a caller skimming for a decision.

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 an audit tool with three optional parameters, no annotations, and no output schema, the description omits the single most decision-relevant fact after cost: what comes back. An agent cannot tell whether to expect a pass/fail verdict, a findings list, a severity score, or raw JSON, which matters when chaining into a connect/no-connect decision. The threat enumeration and pricing partially compensate, keeping this at adequate rather than deficient.

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% and all three parameters are already documented in-schema, including the mutual exclusivity of tools vs. serverUrl and the purpose of baselineManifestHash. The description adds only the framing of what drift detection is for, not parameter syntax, precedence rules, or format examples. Baseline 3 is warranted when the schema does the heavy lifting.

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 names a specific verb (auditing) and specific resources (remote MCP server URL, inline tool manifest), then enumerates the exact threat classes checked: OWASP MCP03 tool poisoning, credential theft, stealth Unicode, and SHA-256 rug-pull drift. That is far more specific than a generic 'scan' claim. It falls short of a 5 only because it does not distinguish itself from siblings such as aegis_token_audit or aegis_priority_audit, which an agent could plausibly confuse it with.

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

Usage Guidelines4/5

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

The 'USE WHEN:' prefix gives an explicit trigger condition, and the temporal qualifier 'before connecting an AI agent' tells the agent exactly where in a workflow this belongs. What is missing is any exclusion or alternative routing — nothing says when to prefer aegis_preflight_bundle or aegis_token_audit instead, so the agent must infer boundaries from sibling names alone.

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