Skip to main content
Glama

x402-mcp

agent_context_firewall

Sanitizes bought data streams and incoming API payloads for hidden prompt injections, jailbreaks, and context-poisoning attacks. Requires $0.05 USD fee. [Price: $0.05 USD]

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": {
      "payload": "<payload>"
    },
    "name": "agent_context_firewall"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadYesInput text or data payload to sanitize
allowHtmlNoWhether to allow basic HTML tags
strictnessNoSanitization strictness level
paymentProofNox402 payment proof object

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the mandatory $0.05 fee and the threat categories, but never says what happens when an injection is detected (throw, block, flag, or return sanitized text), what the response contains, or whether the original payload is altered or merely inspected.

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 is front-loaded in the first sentence and the fee is stated immediately after, which is the right order for an agent deciding whether to call. The trailing '[Price: $0.05 USD]' duplicates the preceding sentence and is the only clear waste.

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?

For a 4-parameter tool with a nested paymentProof object, no annotations, and no output schema, the definition is adequate but thin. It never explains the payment flow mechanics or what a sanitization result looks like, which an agent needs in order to interpret the call's outcome.

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 payload, allowHtml, strictness, and paymentProof are all already documented, and the description adds no semantics beyond them. Baseline 3 applies; the description mentions the fee but does not explain the paymentProof object or strictness trade-offs.

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?

States a specific verb ('Sanitizes') and a specific resource ('bought data streams and incoming API payloads') and names the threat classes it targets (prompt injection, jailbreak, context poisoning). An agent can tell what this does at a glance, though it never explicitly contrasts itself with the nearest sibling, agent_context_relay.

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?

Usage is implied by 'incoming API payloads' and 'bought data streams' – i.e., call before ingesting untrusted text – but there is no explicit when-to-use/when-not statement and no alternative tool is named. Nothing tells the agent how to choose between 'standard' and 'strict' strictness, which is the main runtime decision here.

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