Skip to main content
Glama
crunchtools

io.github.crunchtools/airlock

Official
by crunchtools

Safe Search Tool

safe_search_tool

Search the web and receive sanitized text results with source URLs. Blocks prompt injection attacks using two-layer detection for safe browsing.

Instructions

Search the web safely. Returns sanitized text + source URLs.

Pipeline: L0 (Gemini grounding) → resolve redirects → L1 → L2. Fails if L1 or L2 detects injection in L0's output.

Returns synthesized prose answer + list of source URLs that can be followed up with quarantine_fetch for full content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query string
num_resultsNoApproximate number of results (default 5)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does well by disclosing the pipeline stages (L0 to L2), redirect resolution, and the injection-detection failure condition. It also specifies the return format, adding meaningful behavioral context beyond a simple 'search the web' claim.

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 compact and front-loaded with the core purpose, followed by a concise pipeline summary and return details. No redundant filler exists; each sentence contributes useful information.

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?

Given the output schema exists and the description explains the safety pipeline, failure behavior, return format, and suggested follow-up tool, it is largely complete for an agent to invoke correctly. It could go further on query constraints or authentication expectations, but those are secondary.

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 the input schema already documents both query and num_results. The description adds no additional parameter-specific meaning, so the baseline score of 3 is appropriate.

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 states the tool searches the web and returns sanitized text plus source URLs. It also differentiates itself by noting that full content retrieval is delegated to quarantine_fetch, distinguishing it from related fetch/search siblings.

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 implies the primary use case: safe web search with sanitized output. It also gives guidance that follow-up full-content retrieval should use quarantine_fetch, though it does not explicitly contrast this tool with all alternatives like safe_fetch_tool or quarantine_search_tool.

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