Skip to main content
Glama

extract_iocs

Extract URLs, domains, IPs, emails, hashes, and CVE IDs from reports, logs, or emails; handles defanged indicators locally without sending data anywhere.

Instructions

Extract indicators of compromise from free text: URLs, domains, IPv4 addresses, email addresses, MD5/SHA1/SHA256 hashes and CVE IDs. Defanged input (hxxp, [.]) is handled. Runs locally; nothing is sent anywhere.

Args: text: The report, email, log excerpt or other text to scan.

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

Input Schema

NameRequiredDescriptionDefault
textYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does well by stating that processing runs locally and nothing is sent anywhere, plus that defanged input like hxxp and [.] is handled. It could add more about side effects or limits, but the key privacy and input-normalization behaviors are disclosed.

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 front-loaded, compact, and every sentence earns its place: purpose, IOC types, defang handling, local execution, and the single argument. There is no redundant or filler wording.

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?

For a one-parameter extraction tool with an output schema, the description covers the input, supported IOC types, defanged input handling, and privacy behavior. Nothing essential for correct invocation 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 description coverage is 0%, so the description must explain the sole parameter. Its Args section defines 'text' as the report, email, log excerpt, or other text to scan, which adds useful meaning beyond the bare 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 uses a specific verb and resource: extract IOCs from free text. It enumerates the exact IOC classes (URLs, domains, IPv4s, emails, hashes, CVE IDs), which clearly distinguishes it from sibling lookup/check/triage tools.

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 'from free text' and the listed indicator types, so an agent can infer this is for scanning reports, emails, and logs. However, it does not explicitly state when to prefer this over alternatives such as defang or lookup_cve, nor does it give exclusions.

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