Skip to main content
Glama

Antigravity x402 & MCP Gateway

scan_agent_payload_security

[0.003000 USDC via x402] Scans untrusted agent tool outputs, prompts, or code patches for prompt-injection overrides, Unicode bidi trojans (CVE-2021-42574), leaked private keys, unsafe deserialization, shell injection, and exfiltration sinks in under 20 ms.

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_agent_payload_security"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesCode snippet, git diff, or untrusted agent tool output text to scan (up to 120,000 chars).
languageNoOptional language hint: 'auto' (default), 'python', or 'text'.
x402_payment_signatureNoOptional base64 x402 PAYMENT-SIGNATURE header token (0.003000 USDC on Base eip155:8453 or Polygon eip155:137). Omit to receive the live x402 quote.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It usefully discloses cost, x402 payment, latency under 20 ms, and detection categories, but it does not describe the return format, finding structure, data retention, or rate limits.

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 description is a single, dense sentence with no filler. Pricing, purpose, threat coverage, and latency are all front-loaded efficiently.

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?

The description covers input scope, cost, latency, and threat taxonomy for a moderate-complexity scanner. However, with no output schema, it leaves a meaningful gap around what the scan returns and how an agent should interpret results.

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 already documents content, language, and x402_payment_signature. The description restates useful content examples but adds no syntax or format guidance beyond what the schema provides.

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, 'Scans', and names the exact resources: untrusted agent tool outputs, prompts, or code patches. The threat list and CVE reference make it clearly distinguishable from sibling security-audit tools.

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 description clearly indicates the intended context: untrusted agent payloads, prompts, or code patches. It does not name alternatives or exclusions, but the scope is specific enough that an agent can tell when this scanner applies.

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.