Skip to main content
Glama

Synthex Forge — x402 Paid Agent Services

Scan Prompt Injection

scan_prompt_injection
Read-onlyIdempotent

Detect instruction injection in a prompt, tool descriptions or tool results. use it rather than run_agent_security_scan for prompt injection, not agent security scan; a signed result object. $0.5 USDC.

Input Schema

NameRequiredDescriptionDefault
textNoThe source text the operation operates on.
tool_resultsNoThe tool results this operation operates on. See the schema for its type and whether it is required.
tool_descriptionsNoThe tool descriptions this operation operates on. See the schema for its type and whether it is required.

Output Schema

NameRequiredDescriptionDefault
statusNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so safety is covered. The description adds valuable behavioral context: it returns a signed result object and costs $0.5 USDC, which the agent cannot infer from structured fields.

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?

Front-loaded with the core purpose and short overall. The routing clause is awkwardly phrased ('not agent security scan') and 'a signed result object' is a fragment, but no sentence is wasted.

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?

Output schema exists so return values needn't be explained, and the description still notes the signed result. Together with the cost and sibling routing, an agent has enough to call it correctly; only the awkward phrasing keeps it from a 5.

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 three parameters (text, tool_results, tool_descriptions) are already documented. The description names these input contexts but adds no format or usage detail beyond the schema, so baseline 3 applies.

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?

States a specific verb (Detect) and resource (instruction injection) and enumerates the three input contexts it covers: prompt, tool descriptions, tool results. It explicitly distinguishes itself from run_agent_security_scan.

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

Usage Guidelines5/5

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

Directly says to use it rather than `run_agent_security_scan` for prompt injection and not for agent security scan, naming the alternative and the selection condition. This is exactly the routing guidance an agent needs.

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.