Skip to main content
Glama

entity_parse_xml

Parse Maltego Transform, GraphML, or .entity XML into normalized JSON so agents can inspect and process entity data reliably.

Instructions

Parse Transform (or ), GraphML mtg:MaltegoEntity (or ), or .entity definition XML into normalized JSON.

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": {
      "xml": "<xml>"
    },
    "name": "entity_parse_xml"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlYesXML string to parse.
kindNoExpected XML schema kind (default: auto).
customDirNoOptional custom .entity directory to resolve primaryProperty.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 behavioral burden, and it partially does by naming the output ('normalized JSON') and the three recognized schemas. It does not disclose failure behavior for malformed XML, whether parsing is strict or best-effort, or that customDir implies filesystem reads, all of which matter for a parser with zero annotation coverage.

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?

A single front-loaded sentence that names the verb, then the three input families, then the output. Every clause carries information and the parallel structure makes the accepted formats scannable; nothing is repeated or padded.

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 three-parameter parser with no annotations and no output schema, the definition covers inputs well but leaves the returned 'normalized JSON' shape entirely undescribed, and says nothing about error handling. Adequate to select the tool, thin for invoking it confidently and interpreting results.

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 100%, so the baseline is 3, but the description genuinely adds meaning by mapping each kind enum value to a concrete document form (transform_entity ↔ Transform <Entity>, graphml_entity ↔ <mtg:MaltegoEntity>, entity_definition ↔ .entity <MaltegoEntity>), which an agent could not infer from the enum strings alone. Only customDir's role is left entirely to the schema.

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 ('Parse') and enumerates the exact resource variants it accepts (Transform <Entity>/<MaltegoMessage>, GraphML <mtg:MaltegoEntity>/<node>, .entity <MaltegoEntity>) and the output ('normalized JSON'). An agent can tell exactly what input this tool handles, though it does not contrast itself with close siblings such as transform_parse_response or maltego_parse_machine.

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 only implied: the input-format list suggests this is the tool to reach for when holding Maltego XML, and the 'auto' default hints that detection is handled for you. There is no explicit statement of when to pick this over transform_parse_response or osint_extract_entities, and no conditions under which it should not be used.

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