Skip to main content
Glama

transform_run_local

Execute a local Maltego transform binary or script with parameters and entity data, then parse its XML response or exception message.

Instructions

Execute a local Maltego transform binary/script directly (shell: false) using the Maltego v4.13.0 CLI protocol ([...params, entityValue, escapedAdditionalFields]) and parse its XML response or exception message.

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": {
      "command": "<command>",
      "entity_value": "<entity_value>"
    },
    "name": "transform_run_local"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYesExecutable or interpreter path (e.g., python3 or /path/to/transform.py).
parse_xmlNoWhether to parse stdout as Maltego XML (default: true).
parametersNoOptional transform parameters as a command-line string or array of string tokens placed before entity_value.
timeout_msNoExecution timeout in milliseconds (defaults to server config transformTimeoutMs).
entity_typeNoOptional input Maltego entity type metadata (e.g., maltego.Domain).
output_mtgxNoOptional workspace-relative or confined .mtgx archive path to merge input/output entities and directed links into.
working_dirNoOptional working directory for the local transform process.
entity_valueYesPrimary value of the input Maltego entity.
max_output_bytesNoMaximum combined stdout/stderr bytes before terminating the transform.
additional_fieldsNoOptional entity properties serialized as `k1=v1#k2=v2` with `\\`, `\=`, `\#` escaping (omitted from argv if empty).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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; it does disclose valuable behavior — shell: false (no shell interpretation of arguments), the exact argv ordering, and that it parses XML responses or surfaces exception messages. It never states side effects (the optional .mtgx archive merge writes to the workspace), permission or path-confinement constraints, or what happens on timeout/oversize termination.

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 that packs the verb, resource, execution mode, protocol version, argv contract, and return handling with essentially no waste. The nested parentheticals make it dense but nothing is redundant.

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 10-parameter execution tool with no annotations and no output schema, the description does well to state that the response is XML or an exception message, and the schema covers the individual parameters. It omits notable complexity an agent should know: workspace writes via output_mtgx, path confinement rules, and the security posture of running arbitrary local binaries.

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 baseline is 3, and the description earns above that by explaining how parameters combine into argv (`[...params, entityValue, escapedAdditionalFields]`), which the per-field schema text does not convey as a whole. It does not explain the meaning of output_mtgx merging or working_dir relative to command resolution, leaving those purely 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 concrete verb and resource ('Execute a local Maltego transform binary/script directly'), plus the protocol version and argv layout, which distinguishes it from remote/TDS execution implied by the sibling transform_run_tds. It stops short of explicitly naming the alternative, so an agent must infer the local-vs-remote split from the word 'local'.

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 word 'local' plus 'directly' implies when this is preferred over the remote TDS runner, but there is no explicit when-to-use/when-not statement, no prerequisite notes (e.g., binary must exist on the server host), and no routing guidance to siblings such as transform_run_tds or transform_parse_response.

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