Skip to main content
Glama

security_payload_check

Read-only

Payload Attack Check — Offline WAF-style screen of one untrusted string (form field, URL, query string, header, JSON value or LLM prompt). Decodes URL/double-URL, HTML entities, JS escapes, base64 and Log4Shell obfuscation, then checks SQL injection, XSS, path traversal, command injection, SSRF (cloud metadata, private hosts), JNDI/Log4Shell, SSTI, XXE, CRLF header injection, NoSQL/LDAP injection, open redirect, prototype pollution, prompt injection and encoding evasion. Returns verdict BLOCK/SUSPICIOUS/CLEAN, 0-100 score, each finding with severity and matched snippet, the decoding layers, and fix advice. Param: text= (max 20000 chars). Price: $0.004 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "security_payload_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesadmin' OR '1'='1' --

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations it discloses the decoding pipeline, the full attack-class checklist, the exact return shape (BLOCK/SUSPICIOUS/CLEAN verdict, 0-100 score, per-finding severity and matched snippet, decoding layers, fix advice), and the pricing model ($0.004 USDC on Base via x402). The payment requirement and the 'offline' nature are operationally important facts an agent cannot get from readOnlyHint/destructiveHint alone.

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?

Purpose and scope are front-loaded in the first clause, and the long attack-class list is dense but each entry is a distinct capability rather than filler. The run-on sentence is heavy and could be split, but nothing is redundant with the schema or annotations.

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

Completeness5/5

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

There is no output schema, so the description carries the return contract and does so fully: verdict values, score range, finding structure, decoding layers, and remediation advice. With one required parameter, a stated length limit, disclosed cost, and a complete output summary, an agent has everything needed to call and interpret this tool.

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

Parameters4/5

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

Schema coverage is 100% and the sole parameter is required, so the baseline would be 3; the description earns a bump by adding the 20000-character cap, which is not stated in the schema, and by clarifying what kinds of strings belong in text. The schema's own description is only an example injection payload, so this added constraint is genuinely useful.

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 names a specific verb and resource: an offline WAF-style screen of a single untrusted string, and immediately enumerates the concrete input forms it covers (form field, URL, query string, header, JSON value, LLM prompt). That framing cleanly separates it from the sibling security_* tools, which all audit configuration files, so an agent can route correctly without opening a schema.

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?

Usage context is clear: it is for screening one untrusted input string rather than a config artifact, and it is explicitly offline, which tells the agent no live target is contacted. What is missing is an explicit exclusion or handoff statement, such as what to do with multi-field payloads or whole request bodies, but the input-type enumeration does most of the routing work.

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