Skip to main content
Glama
Systemores AI Agent & MCP Security Auditor

Systemores AI Agent & MCP Security Auditor

Audit MCP Tool Definitions Integrity

systemores_audit_tool_integrity
Read-onlyIdempotent

Statically audits MCP tool definition JSON arrays for snake_case naming, schema completeness, deceptive annotations, privilege scope, duplicates, and injection risks before deployment.

Instructions

Statically audits an MCP tool definitions JSON array (toolDefinitionsJson, max 100,000 chars; accepts standard tools/list entries) for snake_case naming, schema completeness, deceptive ToolAnnotations, privilege scope, duplicate names, and injection surfaces. Free, deterministic, stateless check with no API key required; set strictMode=true to penalize missing parameter descriptions or annotations (returns FAIL on malformed JSON). Use for MCP JSON schema inspection; do NOT use for system prompts — call systemores_tool_integrity 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": {
      "toolDefinitionsJson": "<toolDefinitionsJson>"
    },
    "name": "systemores_audit_tool_integrity"
  }
}

Input Schema

NameRequiredDescriptionDefault
strictModeNoWhen true, applies stricter scoring thresholds — missing optional fields such as parameter descriptions, inputSchema, and MCP tool annotations are penalized. Defaults to false.
toolDefinitionsJsonYesA JSON-serialized array of tool definition objects to audit. Each object should contain at minimum 'name' and 'description' fields. Accepts standard MCP ListToolsResult format.

Output Schema

NameRequiredDescriptionDefault
summaryYes
findingsYes
overallScoreYes
toolsAuditedYes
integrityRatingYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.2
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "findings": {
      +      "type": "array"
      +    },
      +    "integrityRating": {
      +      "enum": [
      +        "PASS",
      +        "REVIEW",
      +        "FAIL"
      +      ],
      +      "type": "string"
      +    },
      +    "overallScore": {
      +      "type": "number"
      +    },
      +    "summary": {
      +      "type": "string"
      +    },
      +    "toolsAudited": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "overallScore",
      +    "integrityRating",
      +    "toolsAudited",
      +    "findings",
      +    "summary"
      +  ],
      +  "type": "object"
      +}
  2. First observedv1.1.3

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: free, deterministic, stateless, no API key, and 'returns FAIL on malformed JSON'. It does not describe result granularity or failure modes beyond malformed input, which keeps it below 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, both front-loaded with the highest-value facts (what is audited, then cost/behavior/limit, then the alternative). Every clause carries information: constraint, guarantees, strictMode effect, and routing. No filler or hedging.

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

Completeness5/5

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

With an output schema present, return shape need not be explained, and annotations cover the safety profile. What remains necessary — audit scope, input format and size limit, strictMode semantics, cost/statefulness, and the sibling alternative — is all present. An agent can select and call this correctly from the description alone.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description still adds meaning the schema lacks: the 100,000-character input cap and the note that standard tools/list entries are accepted. Its strictMode sentence largely restates the schema's own description, so the net gain is modest but real.

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?

Names a specific verb ('statically audits') and resource ('MCP tool definitions JSON array'), then enumerates the exact check categories: snake_case naming, schema completeness, deceptive ToolAnnotations, privilege scope, duplicate names, injection surfaces. It also explicitly differentiates itself from the similarly named systemores_tool_integrity, which an agent could easily confuse with it.

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?

Contains both an explicit use case ('Use for MCP JSON schema inspection') and an explicit exclusion with a named routing alternative ('do NOT use for system prompts — call systemores_tool_integrity instead'). The only ambiguity left is with other audit siblings not named, but the description's scope is narrow enough that this is not a practical gap.

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