Skip to main content
Glama

mtgx_query_graph

Query entities and induced links in a .mtgx archive by type, value, property, bookmark, or k-hop neighborhood from an entity ID to filter and explore graph data.

Instructions

Query entities and induced links in a .mtgx archive by entity type, value substring, property match, bookmark, or k-hop BFS neighborhood from an entity_id.

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": {
      "path": "<path>"
    },
    "name": "mtgx_query_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
hopsNoMax BFS hop distance from entity_id (default 1, >= 0)
pathYesPath to .mtgx archive
typeNoExact entity type filter (e.g. maltego.Domain)
limitNoPagination limit (default 100, max 1000)
offsetNoPagination offset (default 0)
bookmarkNoExact bookmark color/index filter (>= 0)
propertyNoFilter by property ({ name, value?, substring? })
directionNoEdge traversal direction for BFS (default 'both')
entity_idNoSeed entity ID for k-hop BFS neighborhood query
has_bookmarkNoFilter entities that have any bookmark set
value_substringNoCase-insensitive substring match against entity value

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?

No annotations are supplied, so the description carries the full disclosure burden. It does add one genuinely behavioral fact not present in the schema — results include 'induced links', not just entities — and 'Query' signals a non-mutating read. However, it says nothing about how multiple filters combine (AND vs OR), whether entity_id is required for the BFS mode, or what happens when no filter matches.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence that enumerates the filter modes without filler. Every clause maps to a real capability of the tool and nothing is redundant with the schema.

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 an 11-parameter tool with no annotations and no output schema, the definition covers what the tool is but not enough of how it behaves. The most consequential omission is filter-combination semantics and the implicit dependency between entity_id and hops/direction, which an agent must guess before composing a BFS query.

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 every one of the 11 parameters, including the nested property object and the direction enum, is already documented upstream and the baseline is 3. The description adds a useful conceptual grouping of those parameters into query modes but supplies no extra semantics such as whether filters are conjunctive or how hops and direction interact with entity_id.

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 sentence names a specific verb ('Query') and precise resources ('entities and induced links in a .mtgx archive') and enumerates the five filter modes (entity type, value substring, property match, bookmark, k-hop BFS from entity_id). An agent knows exactly what the tool does. It does not, however, distinguish itself from potentially overlapping siblings such as mtgx_inspect or mtgx_export_graphml, which is the one missing ingredient for 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 Guidelines3/5

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

The enumerated filter modes imply the situations the tool serves, so usage is inferable for a reader who already knows the archive format. But there is no explicit 'use this when…', no statement of when not to use it, and no pointer to a sibling such as mtgx_inspect for whole-archive metadata. Guidance remains implicit rather than stated.

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