Skip to main content
Glama

maltego_parse_machine

Parse and validate Maltego .machine DSL scripts from inline source or a safe file path, extracting machine ID, display name, execution blocks, and transform invocations for inspection and reuse.

Instructions

Parse and validate a Maltego .machine DSL script (from inline source or a safe .machine file path), extracting machine id, displayName, execution blocks, and transform invocations.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "maltego_parse_machine"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceNoInline Maltego .machine DSL source text.
file_pathNoPath to a .machine file inside workspaceDir or maltegoHome/config/Maltego/Machines/.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. 'Parse and validate' implies a non-destructive read, and 'safe .machine file path' hints at path sandboxing, but it never confirms the script is not executed, what happens on invalid DSL, or whether the tool has any side effects — a material gap for a tool whose name could be confused with running a machine.

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 sentence with the action and resource front-loaded and the input modes and outputs packed into a parenthetical. No wasted words, though the parenthetical is dense enough to slow reading slightly.

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?

With no annotations and no output schema, the description compensates well by enumerating what gets extracted. However, it leaves open the read-only/execution question and the error behavior for malformed scripts, which are the main things an agent needs to know before calling it.

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 coverage is 100%, so both parameters are already documented in the schema. The description adds only marginal value by presenting source and file_path as two alternative input modes and flagging the path as 'safe', but it does not say whether both may be supplied or which wins when both are present.

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 states a specific verb pair ('Parse and validate') and a specific resource ('Maltego .machine DSL script'), then names the extracted artifacts (machine id, displayName, execution blocks, transform invocations). This clearly distinguishes it from write-oriented siblings like maltego_create_machine, though no sibling is named explicitly.

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 parenthetical shows the two accepted input modes (inline source or a .machine file path), which tells an agent when each parameter applies. There is no explicit when-to-use/when-not guidance and no stated alternative for inspecting or running a machine.

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