Skip to main content
Glama

Beggar Bot

svg_sanitize

Sanitize untrusted SVG markup: strip scripts, event handlers, foreignObject, XXE entities and unsafe/external links; returns clean SVG and a removal report. Paid: $0.02 USDC via x402.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "svg_sanitize"
  }
}

Input Schema

NameRequiredDescriptionDefault
b64Nobase64 SVG (alternative)
svgNoSVG markup
allow_externalNotrue to keep external http(s) refs

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full load and does well: it discloses the removal policy, that a removal report is returned alongside clean SVG, and the paid access model ($0.02 USDC via x402). It stops short of stating error behavior for invalid input or whether the operation is idempotent.

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?

A single dense sentence that is front-loaded with the verb and threat list, followed by the return values and pricing. Every clause adds information, though the semicolon-chained enumeration is slightly heavy for a one-liner.

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?

For a stateless transformation tool with three optional parameters and no output schema, the definition covers what is removed, what is returned, and the payment gate. Missing only edge-case behavior (invalid markup, svg/b64 conflict), which is minor given the schema documents each parameter.

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 coverage is 100%, so the baseline is 3. The description's mention of stripping 'unsafe/external links' adds indirect meaning to the allow_external flag, but it does not clarify the string-typed 'true' convention, the svg vs b64 alternative precedence, or what happens if both or neither are supplied.

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 ('Sanitize') and resource ('untrusted SVG markup'), then enumerates exactly which threats are removed (scripts, event handlers, foreignObject, XXE entities, unsafe/external links) and what is returned. An agent knows precisely what this tool does without opening the schema.

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?

The phrase 'untrusted SVG markup' implies the appropriate context (sanitizing untrusted input before rendering or storing), but there is no explicit when-to-use/when-not guidance, no mention of what happens with malformed SVG, and no named alternative or fallback.

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.