Skip to main content
Glama

guard

Run a deterministic pre-ship gate on AI output to detect leaked secrets, prompt injection, and PII, returning safe_to_ship and block reasons.

Instructions

ONE deterministic pre-ship trust gate for AI/agent output. Runs leaked-secret detection (20+ providers), prompt-injection / jailbreak detection, and PII / compliance detection together -> returns safe_to_ship (bool) + block_reasons. No model, no API key, no token cost; same input gives the same verdict every time. Use before sending model output to a user, committing generated code, or forwarding untrusted text into another prompt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesthe text/output to gate before shipping
contextNooptional ground-truth context (reserved)
block_atNoseverity at which to mark unsafe (default medium)
Behavior4/5

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

With no annotations provided, the description fully bears the transparency burden. It discloses key behavioral aspects: determinism, no model/API key/token cost, the combined detection run, and the return value (safe_to_ship + block_reasons). It doesn't cover edge-case error behavior, but for a pure detection gate this is sufficiently transparent.

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?

The description is a single, well-structured paragraph that front-loads the core purpose, then explains the detection types, determinism, and use cases. Every sentence adds value with no redundancy or fluff.

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?

For a tool with 3 parameters, no output schema, and no annotations, the description provides complete context: what it does, what checks it runs, how it behaves (deterministic, no cost), what it returns, and when to use it. It is sufficient for an agent to select and invoke the tool correctly.

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 the baseline is 3. The description adds no additional parameter information beyond what the schema already provides (e.g., it does not explain block_at or context in its own words). Thus it does not elevate the score.

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?

The description clearly identifies the tool as a deterministic pre-ship trust gate for AI/agent output, listing specific detection types (leaked secrets, prompt injection, PII/compliance). It distinguishes itself from the sibling guard_selftest by being the actual gate, not a self-test utility.

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 description explicitly states when to use the tool: before sending model output to a user, committing generated code, or forwarding untrusted text into another prompt. It provides clear usage context but does not mention exclusions or alternatives, so it falls short of the top score.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/spektre-labs/sigma-gate'

If you have feedback or need assistance with the MCP directory API, please join our Discord server