Skip to main content
Glama

maltego_create_machine

Validate, format, and optionally write Maltego .machine DSL scripts from structured fields or raw source, enforcing balanced braces, valid transform IDs, and safe paths.

Instructions

Validate, format, and optionally write a Maltego .machine DSL script from structured fields or raw DSL source, enforcing balanced braces, valid transform IDs, and assertSafePath.

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_create_machine"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoMachine ID (required when not providing raw source), e.g. 'custom.domain.recon'.
pathsNoOptional paths { path { ... } } blocks.
writeNoWhen true, write the validated .machine file to disk (default: false).
authorNoOptional machine author.
sourceNoRaw .machine DSL script to validate and format (alternative to structured fields).
targetNoTarget directory for write (default: workspace; 'maltego_home' writes under config/Maltego/Machines/).
overwriteNoAllow overwriting an existing .machine file when write=true (default: false).
descriptionNoOptional machine description.
on_handlersNoOptional event handlers: on("<event>") { run(...) }.
output_pathNoRelative output path (must end with .machine) under target directory.
display_nameNoOptional human-readable machine displayName.
start_transformsNoTransform IDs to invoke inside start { ... }.

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 that writes are optional and gated behind safety checks (assertSafePath, brace balance, transform ID validity). It does not say what a validation failure looks like, whether writes require overwrite consent, or what gets returned in validate-only mode, leaving the mutation semantics under-explained.

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 no filler, and the primary action (validate/format) leads before the optional write. It is dense but every clause contributes a distinct fact; a slightly clearer separation of the two input modes would push it higher.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter tool with no annotations and no output schema, the description covers inputs, validation rules, and the optional side effect reasonably well. The main remaining gap is the return value in validate-only mode, which nothing else in the definition supplies.

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 the schema already documents all 12 parameters including the write/target/overwrite defaults and the .machine extension constraint. The description adds only the framing that fields and source are alternatives, so the baseline 3 applies.

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 a concrete verb set (validate, format, write) and a concrete resource (Maltego .machine DSL script), and spells out what the validation enforces (balanced braces, valid transform IDs, assertSafePath). It never names the likely contrast sibling, maltego_parse_machine, so the create-vs-parse boundary must be inferred from the tool names alone.

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?

It tells the agent the two input modes (structured fields vs. raw source) and that writing is optional, which implies a validate-only usage. It gives no when-to-use / when-not-to-use guidance against parse_machine, transform_create_local_template, or the push tools, and no prerequisite statements, so usage is only implied.

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