Skip to main content
Glama

add_node

Add a node using a known nodeType from the editor or get_node_definitions. Unknown types can be found with list_available_nodes. Set node data with config. This edits the graph without running generation.

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": {
      "workspaceId": "<workspaceId>",
      "workflowId": "<workflowId>",
      "nodeType": "<nodeType>"
    },
    "name": "add_node"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNoOptional custom label for the node
configNoNode configuration/data values
nodeTypeYesType of node to add (e.g., constant_text, media_image, llm_text)
workflowIdYesWorkflow ID
workspaceIdYesThe workspace ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / config / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.8/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 usefully clarifies that the graph is modified but generation is not triggered, which is a meaningful side-effect statement. It omits other behavioral facts an agent would want for a mutation: whether the node is auto-connected, what identifies the created node in the response, and whether failures leave partial state.

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?

Four short sentences, each carrying distinct information: valid node types, where to find unknown ones, how to set data, and the no-generation side effect. The key scoping fact is stated and nothing is redundant.

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 a 5-parameter mutation tool with no annotations and no output schema, the definition covers the critical inputs and the main side effect. It stops short on return value (does the agent get a node ID to use with connect_nodes/update_node?) and on structural consequences such as placement or auto-wiring.

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 description coverage is 100%, so the baseline is 3; the description goes beyond the schema by explaining where nodeType values come from (editor, get_node_definitions, list_available_nodes) and by tying config to node data values. label and the workspace/workflow identifiers are left entirely to 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?

States a specific verb and resource: 'Add a node' to a graph, and names the parameter that identifies it (nodeType). It is distinguishable from sibling lookups (get_node_definitions, list_available_nodes) because it explicitly routes the agent to them as sources rather than substitutes. It does not differentiate from mutating siblings like update_node or connect_nodes, which keeps it short of 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 Guidelines4/5

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

Gives real usage context: nodeType must come from the editor, get_node_definitions, or list_available_nodes, and node data goes into config. It also bounds the operation ('edits the graph without running generation'), telling the agent this is a structural edit only. No explicit when-not guidance or prerequisites (workflow lock, permissions) are given.

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.