Skip to main content
Glama

entity_create_definition

Build a custom Maltego .entity XML definition with fields and metadata, then optionally write it safely within the configured workspace directory.

Instructions

Build a custom Maltego .entity XML definition and optionally write it safely within the configured workspace directory.

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": {
      "id": "<id>",
      "displayName": "<displayName>",
      "primaryProperty": "<primaryProperty>"
    },
    "name": "entity_create_definition"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesEntity type ID (e.g. custom.ApiKey).
fieldsNoField schema definitions.
categoryNoEntity category (default: Custom).
overwriteNoOverwrite outputPath if it already exists (default: false).
outputPathNoOptional path (relative to workspaceDir or within workspaceDir) ending in .entity to write the XML file.
allowedRootNoWhether entity can be a graph root (default: true).
descriptionNoEntity description.
displayNameYesSingular display name.
baseEntitiesNoOptional list of parent entity IDs.
converterRegexNoOptional regex for <Converter><Value> CDATA.
conversionOrderNoConversion order integer >= 0 (default: 2147483647).
primaryPropertyYesPrimary value property name (e.g. apikey.value).
displayNamePluralNoPlural display name (defaults to <displayName>s).
largeIconResourceNoIcon resource name (default: Generic).
converterRegexGroupsNoOptional regex capture group property names.
displayValuePropertyNoOptional separate display value property name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add meaningful behavioral context: writes are confined 'safely within the configured workspace directory'. However, it is silent on what 'safely' means concretely, failure behavior when overwrite is false and the file exists, and whether permissions are required for a mutating write.

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 front-loaded sentence with the primary action stated first and the optional write behavior second. Efficient, though 'safely within the configured workspace directory' is a slightly vague phrase that could be tightened.

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 thin: it never says what the build returns (XML string? path? both?), which matters for chaining into a write or parse step. The rich schema compensates for parameter documentation but not for return-shape ambiguity or failure modes.

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 100%, so all 16 parameters are already documented in the schema. The description only implicitly references outputPath and the write mode, adding little beyond what the schema provides. Baseline 3 is appropriate.

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+resource: 'Build a custom Maltego .entity XML definition', and adds the optional write side-effect. An agent can tell this is a builder/serializer rather than a graph mutation tool. It does not, however, distinguish itself from near siblings like entity_build or entity_parse_xml.

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 description implies two modes (build-only vs build-and-write via outputPath), which is useful implied usage, but it names no alternatives and gives no explicit when-to-use vs when-not guidance against entity_build/entity_parse_xml. Guidance is inferable rather than stated.

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