Skip to main content
Glama

shield_preflight

Boot-time clearance for a bot or agent: screens its system prompt and tool descriptions for injection, tool poisoning and embedded secrets, and returns a clearance_id (its SHA-256 audit receipt) to send as X-Caelara-Clearance on later calls. Optional (0.005 USDC per call)

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": "shield_preflight"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentNoA label for the agent or bot (max 100 characters)
toolsNoTool names or { name, description } objects the agent will load (max 64)
system_promptNoThe agent system prompt or instructions (max 200000 characters)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose cost (0.005 USDC per call, optional), the receipt format, and the downstream header convention. It does not say whether screening is read-only with no persisted data, what happens when content is flagged (does a clearance_id still return?), latency, or failure behavior — relevant for a gatekeeper that must succeed before the agent boots.

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: purpose first, then return value and header usage, then cost. No filler, and the parenthetical about the SHA-256 receipt earns its place by explaining what the clearance_id actually is.

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 3-param, all-optional tool with no output schema and no annotations, the description covers what it does, what it returns, and how to carry the result forward. The remaining gap is negative-path behavior (flagged content, errors, expiry of the clearance_id), which an agent would need before relying on it at boot.

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 schema already documents agent, tools and system_prompt including limits. The description confirms semantically that the system prompt and tool descriptions are the inspected payload, but adds no format, size, or partial-input guidance beyond that.

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?

Specific verb+resource: 'screens its system prompt and tool descriptions for injection, tool poisoning and embedded secrets'. It also states the return (clearance_id, a SHA-256 audit receipt) and the distinguishing scope word 'boot-time', which separates it from scan/validate-style siblings without having to open their schemas.

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?

Timing is explicit: it is a boot-time check, and the returned clearance_id is sent as X-Caelara-Clearance on later calls, which implicitly tells the agent not to re-invoke it per request. It names no sibling alternative and gives no exclusions (e.g. what to use for auditing an already-running session), so it stops short of full when/when-not guidance.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.