Skip to main content
Glama

Clean-Room Web & Proof

Scan Text or Image for Hidden Attacks

cleanroom_scan_untrusted_input
Read-onlyIdempotent

Check untrusted third-party text and an optional image for hidden instructions or unsafe directives before letting an AI agent act on them ($0.02).

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

Input Schema

NameRequiredDescriptionDefault
textNoUntrusted text to scan for hidden instructions or safety violations.
contextNoOptional short note explaining where the input came from.
spend_keyNoOptional prepaid API key for paid lookups. Can also be sent in the x-atlas-spend-key or Authorization header.
builder_codeNoOptional partner referral code for revenue sharing.
image_data_uriNoOptional image data URI to scan for unsafe content or embedded directives.
idempotency_keyNoOptional unique request ID to prevent duplicate billing on retries.
payment_signatureNoOptional direct payment header when paying per request without a prepaid API key.

Output Schema

NameRequiredDescriptionDefault
okNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so the safety profile is covered. The description adds the $0.02 price, which is genuinely new billing context, but says nothing about what happens on detection, whether the call fails or flags, or how spend_key/payment_signature interact with billing.

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?

A single well-formed sentence that front-loads the resource and puts the usage timing before the price. Nothing is redundant, though the trailing price parenthesis reads slightly like an afterthought.

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?

With an output schema present and full annotation and parameter coverage, the description only needs to convey purpose, timing, and cost, which it does. The one residual gap is that zero parameters are formally required, yet the text implies at least text is expected — an agent cannot confirm the minimum viable call from the description alone.

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 exhaustively documents all seven parameters including the payment and idempotency fields. The description only restates the text-plus-optional-image pairing and the cost, adding no syntax or format meaning beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource (check untrusted text plus an optional image for hidden instructions or unsafe directives) and states the outcome the caller wants. It does not explicitly contrast with the sibling sanitize tool, so an agent must still infer whether it should scan or sanitize.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'before letting an AI agent act on them' gives a clear trigger condition and implicitly scopes the input as third-party/untrusted. However, it offers no exclusions or alternatives, and the boundary against cleanroom_sanitize_text (detect vs. remove) is left unstated.

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.

Resources