Skip to main content
Glama

Rig Edge

rig_edge

Wire or unwire ONE edge between two EXISTING blocks of a canvas rig — 'connect the fetch step to the judge', 'route the critique back to revise when it says REVISE', 'disconnect A from B'. Identify both ends by node id, label, skill name, or 1-based position. Add guard ({source, op, value?}) to make the edge a CONDITIONAL route — how a loop gets its exit condition on a stateful_graph. remove: true drops the from→to edge instead. Re-wiring an edge that already exists UPDATES its kind/guard in place. Returns the fresh block-by-block summary incl. the full edge topology; the Builder canvas updates live. (rig_node_add's after wires only at creation — this is the tool for every rewiring after that.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesDestination block: same identifiers
fromYesSource block: node id, label, skill name, or 1-based position
kindNo'data' (default) | 'control' | 'conditional' (implied when guard is set)
guardNoTake this edge ONLY when the condition holds — {source, op, value?}. `source` is a `{{node.port}}` channel ref; `op` = eq | not_eq | contains | gt | lt | truthy | exists.
removeNotrue = drop the from→to edge instead of adding one
rig_idYesUUID of the rig (rig_search finds it)
wallet_addressYesOwner scope

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

The description discloses important behavioral traits beyond annotations: re-wiring an existing edge updates its kind/guard in place, `remove: true` drops the edge, and the tool returns a fresh summary with full edge topology while the Builder canvas updates live. This goes beyond the plain readOnly/destructive hints and does not contradict them, though it could add more about error cases or reversibility.

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?

The description is dense but every sentence earns its place: core operation, endpoint identifiers, guard semantics, removal mode, update behavior, return value, live canvas update, and sibling differentiation. There is no filler or unnecessary repetition.

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

Completeness5/5

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

Despite having no output schema, the description explains what is returned (fresh block-by-block summary including full edge topology) and what happens live in the Builder. It covers preconditions, parameter semantics, and the key behavioral nuance of updating existing edges, making it sufficient for correct invocation.

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. The description adds useful semantic framing around `guard` as a conditional loop exit condition and explains how to identify endpoints by node id, label, skill name, or position. Some details repeat the schema, but the extra context helps an agent select parameter values correctly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'wire or unwire ONE edge between two EXISTING blocks of a canvas rig.' It also explicitly differentiates this tool from rig_node_add by stating that rig_node_add's `after` only wires at creation, so an agent can immediately identify which tool handles rewiring.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description gives clear usage context: it applies to existing blocks, supports both wiring and unwiring, and names the alternative tool with the exact reason to prefer this one for rewiring. Examples like 'connect the fetch step to the judge' and 'disconnect A from B' make the intended invocation scenarios concrete.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.