Skip to main content
Glama

defang

Defang URLs, domains, IPs and emails in text to make them safe for tickets and chat by rewriting http to hxxp and dots to [.]. Runs locally with no network calls.

Instructions

Defang URLs, domains, IPs and email addresses in text so they are safe to paste into tickets and chat (http -> hxxp, . -> [.]). Runs locally.

Args: text: Text containing indicators to defang.

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": "defang"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: 'Runs locally' discloses that no network call or data exfiltration occurs, and the http->hxxp / .->[.] mapping shows exactly what changes in the text. It does not address edge cases such as already-defanged input, idempotency, or whether non-indicator text is preserved, leaving a modest gap.

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 operational summary and concrete examples are front-loaded in the first sentence, 'Runs locally' is a compact two-word disclosure, and the Args block is one line. Nothing extraneous for a single-parameter tool.

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?

An output schema exists, so return-value shape need not be explained, and the single required parameter is documented in the description. For a local, side-effect-free text transformation of this complexity, nothing an agent needs in order to invoke it correctly is missing.

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 0%, so the description must compensate, and the Args block does define the single parameter as 'Text containing indicators to defang' — clarifying it is free-form prose containing IOCs, not a list or structured object. That is meaningful added meaning beyond the bare 'Text' title in the schema.

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 gives a specific verb (defang) and enumerates the exact resource types handled (URLs, domains, IPs, email addresses), plus the literal transformations (http -> hxxp, . -> [.]). This is clearly distinguishable from sibling tools like extract_iocs, which pull indicators out rather than obfuscate them.

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?

It states the motivating context for use — making text safe to paste into tickets and chat — which tells the agent when this tool is appropriate. There are no explicit exclusions or named alternatives, but the use case is unambiguous for this simple transformation tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.