Skip to main content
Glama

aegis_scan_mcp_manifest

Read-onlyIdempotent

Scans MCP server manifests to detect tool poisoning, hidden instructions, Unicode smuggling, context-siphoning params, and cross-server shadowing before trusting third-party definitions.

Instructions

Statically scan an MCP server manifest (server instructions, tools, prompts, and resources) for tool poisoning, hidden instruction tags, concealment directives, Unicode bidi/tag smuggling, context-siphoning parameters, and cross-server shadowing. Read-only and deterministic. Use this when auditing third-party or newly discovered MCP server definitions before trusting them. Do NOT use this for live runtime tool-call arguments (use aegis_inspect_tool_call 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>",
      "manifest": "<manifest>"
    },
    "name": "aegis_scan_mcp_manifest"
  }
}

Input Schema

NameRequiredDescriptionDefault
manifestYesServer manifest containing optional 'instructions' (string) and 'tools', 'prompts', 'resources', or 'resourceTemplates' lists.
server_nameYesIdentifier of the MCP server being audited.
foreign_toolsNoOptional tool names from other trusted servers to detect name collisions and cross-server shadowing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds "deterministic" (not an annotation) and, more usefully, discloses the analysis surface — instructions, tools, prompts, resources — and the specific attack classes detected, which tells the agent what signal it will get. It stops short of describing the result shape or severity levels.

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?

Three tight sentences, front-loaded with the action and threat scope, then the usage trigger, then the exclusion with the alternative. No filler; the only near-redundancy is "Read-only" against readOnlyHint=true, which is a negligible fraction of the text.

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 tool with a nested manifest object and no output schema, the description covers input expectations and the analysis surface well, and the schema handles the parameter detail. The remaining gap is that the return value (findings list, verdict, severity) is neither in the description nor an output schema, so the agent cannot anticipate the response shape.

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 coverage is 100%, so all three parameters (server_name, manifest, foreign_tools) are already documented in the schema. The description adds only loose semantic glue — "cross-server shadowing" explains why foreign_tools exists — but gives no syntax or format guidance beyond the schema. Baseline 3 is appropriate 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.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Statically scan an MCP server manifest") and enumerates the threat classes it targets: tool poisoning, hidden instruction tags, concealment directives, bidi/tag smuggling, context-siphoning parameters, cross-server shadowing. It also names the sibling it is not (aegis_inspect_tool_call), so an agent can route without opening a schema.

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 an explicit when-to-use trigger ("auditing third-party or newly discovered MCP server definitions before trusting them") and an explicit when-not with the correct alternative ("Do NOT use this for live runtime tool-call arguments (use aegis_inspect_tool_call instead)"). Both selection conditions are stated rather than inferred.

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