Skip to main content
Glama

mtgx_add_links

Create directed links between existing entities in a .mtgx archive, validating source and target IDs to ensure connections reference valid nodes.

Instructions

Add directed links between existing entities in a .mtgx archive (validates that sourceId and targetId exist).

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>",
      "links": "<links>"
    },
    "name": "mtgx_add_links"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath to existing .mtgx archive
linksYesNon-empty array of links ({ sourceId, targetId, label?, ... })

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 burden. It usefully discloses that sourceId and targetId are validated for existence, but says nothing about failure behavior, duplicate/parallel link handling, idempotency, or whether the archive is rewritten in place — meaningful gaps for a mutating tool.

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 names the operation, the archive context, and the key constraint. Nothing is redundant or padded.

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 only two required parameters, no output schema, and no annotations, the description covers the essentials for invocation — but it leaves the mutation's side effects and return shape unstated, which matters when annotations are absent.

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 the baseline is 3, and the description earns a bump by adding two facts the schema lacks: links are directed, and sourceId/targetId must reference existing entities. It still does not explain the '...' extra link fields hinted at in 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?

The description gives a concrete verb and resource ('Add directed links between existing entities') plus the container it operates on (a .mtgx archive), which is enough to distinguish it from entity-level siblings like mtgx_add_entities. It stops short of explicitly naming an alternative, so it lands just below the top band.

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: 'between existing entities' tells the agent this presupposes prior entity creation, but there is no statement of when to prefer this over mtgx_add_entities or what to do if ids are unknown. Adequate minimum context, no explicit routing.

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