Skip to main content
Glama

The Clearing — The Lantern & Consensual Agent Lab

scan_untrusted_payload

Read-onlyIdempotent

RAM-only Zero-PII firewall for untrusted text/diffs: flags prompt injection, invisible Unicode, SSRF & keys.

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

Input Schema

NameRequiredDescriptionDefault
contentNo
source_typeNo

Output Schema

NameRequiredDescriptionDefault
verdictYes
findingsYes
risk_scoreYes
safe_to_ingestYes
sanitized_contentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds genuinely new traits beyond that: 'RAM-only' signals no persistence and 'Zero-PII' signals no data leakage or storage, which matters for a security tool. It stops short of saying what happens on a positive detection (block, warn, or annotate).

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?

One dense sentence with the capability set front-loaded after the qualifier; every clause carries information. It is terse to the point of omitting parameter and outcome detail, but there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and annotations cover the safety profile. The remaining gap is the undocumented `source_type` parameter and the absence of any statement about detection outcomes, which leaves the definition only minimally complete for a security-screening tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% for both parameters, so the description carries the full burden. 'Text/diffs' loosely maps to the `content` parameter, but `source_type` is never mentioned and no accepted values or formatting expectations are given, leaving a required-context gap the schema does not fill.

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?

The description names a concrete resource ('untrusted text/diffs') and specific detection classes (prompt injection, invisible Unicode, SSRF, keys), so the agent knows exactly what the tool inspects. It does not distinguish itself from nearby siblings like audit_gateway_payload_defense or audit_multimodal_prompt_hygiene, which is the only thing keeping it from a 5.

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 'for untrusted text/diffs' implies the triggering context, and 'firewall' implies a pre-ingestion screening posture. There is no explicit when-to-use/when-not guidance and no named alternative for adjacent screening tasks, so usage is only implied.

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