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

Systemores AI Agent & MCP Security Auditor

Evaluate System Prompt Tool Discipline

systemores_tool_integrity
Read-only

Audits system prompts for safe tool-use behavior across API, database, filesystem, and code-execution contexts, scoring tool selection, argument fidelity, and failure resilience.

Instructions

Audits a supplied systemPrompt (max 8,000 chars) for behavioral tool-use safety — scoring tool selection discipline, argument construction fidelity, and failure resilience across toolContext risk profiles (api_calls, database, filesystem, code_execution). Read-only, zero-retention, LLM-backed advisory scoring (variance explains idempotentHint=false); requires a Pro/Trial API key. Use for prompt-level tool-use discipline; do NOT use for MCP tool JSON schemas — call systemores_audit_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": {
      "systemPrompt": "<systemPrompt>"
    },
    "name": "systemores_tool_integrity"
  }
}

Input Schema

NameRequiredDescriptionDefault
toolContextNoThe domain of tool usage being audited. Affects risk weighting.
systemPromptYesThe agent's system prompt to evaluate for tool use safety. Maximum 8,000 characters.

Output Schema

NameRequiredDescriptionDefault
risksYes
statusYes
metricsYes
toolContextYes
recommendationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.2
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "metrics": {
      +      "type": "object"
      +    },
      +    "recommendation": {
      +      "type": "string"
      +    },
      +    "risks": {
      +      "type": "array"
      +    },
      +    "status": {
      +      "enum": [
      +        "PASSED",
      +        "FAILED"
      +      ],
      +      "type": "string"
      +    },
      +    "toolContext": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "status",
      +    "toolContext",
      +    "metrics",
      +    "risks",
      +    "recommendation"
      +  ],
      +  "type": "object"
      +}
  2. First observedv1.1.3

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: zero-retention handling, LLM-backed advisory (non-authoritative) scoring, the reason idempotentHint=false (variance across runs), and the Pro/Trial key requirement. It even reconciles the annotation set for the caller rather than leaving openWorldHint/idempotentHint to be inferred.

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?

Purpose and scoring dimensions are front-loaded, and the routing exclusion lands last where it is most actionable. The single em-dash-heavy sentence packs several claims tightly; the parenthetical about variance is valuable but slightly interrupts scanability.

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?

An output schema exists and parameters are fully documented, so the description only needed purpose, routing, auth, and behavioral caveats — all of which are present. Nothing an agent needs to call this correctly (key requirement, size limit, non-determinism, domain selection) is missing.

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 baseline is 3, but the description adds useful framing by naming the concrete domain values and stating that toolContext drives risk weighting. The 8,000-char cap on systemPrompt is restated rather than expanded, so it does not fully compensate beyond the schema.

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 ("Audits a supplied systemPrompt") plus the exact scoring dimensions (tool selection discipline, argument construction fidelity, failure resilience) across named risk profiles. It also names the sibling it is not for, so an agent can separate this from systemores_audit_tool_integrity 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 positive case ("Use for prompt-level tool-use discipline") and an explicit negative with a redirect ("do NOT use for MCP tool JSON schemas — call systemores_audit_tool_integrity instead"). The prerequisite (Pro/Trial API key) is also stated, so invocation conditions are fully covered.

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