Skip to main content
Glama

add_nodes

Add nodes — inputs with values, calculated nodes with formulas, constants, checks — in one batch. Uids are minted for you. Order the batch so a formula's references come first or already exist; the whole batch is refused if the result is not a valid model, with the invariant named. Each row is placed where it reads — after the rows it reads, before the rows that read it, checks last — unless you say after or before.

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": {
      "model": "<model>",
      "nodes": "<nodes>"
    },
    "name": "add_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesModel uid (`model_…`), from model_list.
nodesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / nodes / items / properties / constant / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "additionalProperties": {
      +      "type": "number"
      +    },
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / nodes / items / properties / values / anyOf
      Added value: +[
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  },
      +  {
      +    "items": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "additionalProperties": {
      +      "anyOf": [
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: uids are minted automatically, the operation is all-or-nothing (whole batch refused, with the failing invariant named), and each row is auto-placed by dependency order with checks last unless after/before overrides. That failure-mode and placement disclosure is exactly what the readOnly/destructive/idempotent hints cannot convey.

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?

Four sentences, front-loaded with the batch concept and ending with the placement rule; little waste. The final sentence is dense and slightly hard to parse on first read, but every clause carries operational information.

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?

Covers the things an agent must know before calling a 2-parameter batch mutation: dependency ordering, atomic refusal, uid minting, default placement. Scenario handling and size limits live in the schema, and there is no output schema to explain, so the description is essentially complete for this complexity level.

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 coverage is 50%, but the nested item properties are heavily documented in the schema itself, so the description only needs to supplement. It does add meaning for the two top-level params by explaining that names/uids are minted for you and by defining the default placement semantics that after/before override. Beyond that it repeats rather than extends 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 (add) and resource (nodes) and enumerates the node flavours — inputs with values, calculated with formulas, constants, checks — all in one batch. It is unmistakably distinct from siblings like add_section or add_ledger in intent, though it never names an alternative to route against.

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 a concrete prerequisite rule for ordering the batch (formula references must come first or already exist) and states that the batch is refused as a whole if the result is not a valid model. Placement defaults and the after/before escape hatch define usage context clearly, but there is no explicit guidance on when to use this versus entries_add, add_ledger or add_section.

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.

Resources