Skip to main content
Glama

entity_build

Validates Maltego entity types, primary values, and typed fields against v4.13.0 rules, then emits canonical JSON with optional Transform and GraphML XML outputs.

Instructions

Validate an entity's type, primary value, and typed fields against Maltego v4.13.0 rules and emit canonical JSON plus optional Transform XML and GraphML mtg:MaltegoEntity XML.

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": {
      "type": "<type>",
      "value": "<value>"
    },
    "name": "entity_build"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoOptional entity node ID.
typeYesEntity type ID (e.g. maltego.Domain, maltego.IPv4Address).
notesNoOptional entity notes.
valueYesPrimary value for the entity.
formatNoOutput formats to include alongside canonical JSON (default: json; use all/transform_xml/graphml_xml to emit XML).
weightNoOptional entity weight (>= 0, e.g. 100).
iconUrlNoOptional HTTP(S) icon URL.
bookmarkNoOptional bookmark color index (-1 to 10).
positionNo
customDirNoOptional directory to load custom .entity schemas from.
propertiesNoAdditional typed fields as key-value object or array of { name, value, type?, displayName?, matchingRule? }.
strictFieldsNoReject property names not defined in the entity schema (default: false).
allowUnknownTypeNoAllow building entities whose type is not in the catalog (default: false).
includeGraphmlXmlNoInclude GraphML <mtg:MaltegoEntity> XML in response.
displayInformationNo
includeTransformXmlNoInclude Transform <Entity> XML in response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose real behavior: validation against a named spec version, and the fact that XML output is opt-in alongside canonical JSON. However it never states what happens when validation fails, whether strictFields/allowUnknownType produce errors or diagnostics, whether any state is written server-side, or what the response shape is for the 'all' format.

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 with the primary action ('validate') front-loaded and the output forms trailing, which is the right ordering. It is tightly packed but has no filler sentences; the only cost is density at the expense of any usage guidance.

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 16-parameter tool with no annotations and no output schema, the description is adequate on inputs and outputs at a high level but thin overall. It omits failure behavior and the shape of the returned JSON, which matters because there is no output schema to fall back on. The nested `properties` and `position` structures are left entirely to the schema.

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 88%, so the schema already documents the 16 parameters, and the description's mention of type, primary value and typed fields merely echoes the required inputs. It adds mild value by explaining that XML emission is optional alongside canonical JSON, but gives no extra detail on format, position, customDir or the validation-related flags.

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?

The description names specific verbs and a resource: validate an entity's type, primary value and typed fields, then emit canonical JSON plus optional XML. It goes further than the name by pinning the validation to Maltego v4.13.0 rules and naming the two XML dialects. It does not explicitly distinguish itself from siblings such as entity_parse_xml or mtgx_add_entities, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use statement, no mention of when not to use it, and no named alternative among the many sibling tools. An agent must infer from the name and description whether this is a pure build/validation step before calling mtgx_add_entities, or a substitute for entity_parse_xml. Only the implied context of 'validate and emit' offers any routing signal.

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