Skip to main content
Glama

scan_output

Scan AI model output to detect PII exposure, data leakage, harmful content, and policy violations before it reaches users, helping enforce safe delivery.

Instructions

Scan AI model output for data leakage, PII exposure, harmful content, or policy violations before delivering to the user.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "content": "<content>"
    },
    "name": "scan_output"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesThe model output content to scan
agent_idNoOptional agent ID for tracking
content_typeNoType of content being scanned

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior2/5

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

With no annotations and no output schema, the description carries the full burden of behavioral disclosure. It does not explain what happens when issues are detected (blocking, flagging, returning findings), whether the operation is read-only, or what results the agent should expect, leaving significant behavioral gaps.

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 definition is a single tightly written sentence with the action and scope front-loaded. Every phrase contributes to identifying what is scanned and when, with no redundant or filler wording.

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

Completeness2/5

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

For a scanning tool with no annotations, no output schema, and three parameters, the description should say more about the result contract and detection behavior. It adequately indicates what is scanned and when, but does not tell the agent what the scan returns or how findings are represented.

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 input schema already documents content, agent_id, and content_type. The description only implies that the 'content' parameter is the model output to scan and adds no further meaning beyond the schema, which is the baseline case for high schema coverage.

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 states a specific verb ('Scan') and resource ('AI model output') and lists the categories checked: data leakage, PII, harmful content, and policy violations. It is clearly distinguishable from sibling tools that scan other resources like prompts, memory, or MCP servers, though it does not explicitly name those alternatives.

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 phrase 'before delivering to the user' gives a clear usage context: perform this scan on model output prior to user delivery. It does not name sibling alternatives or specify when not to use this tool, so it stops short of full when/when-not/alternatives guidance.

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