Skip to main content
Glama

Add Node

clipform_add_node

Add a new node to an existing form. Inserted before the end screen by default; after_node_id controls insertion position. Inserting into a linear flow automatically re-links the chain (the node before the insertion point points to the new node, which points to what followed) - you do not need clipform_set_logic for a simple insert. For a second ending that only some answers reach (an end screen or redirect), pass unlinked: true and then route to it with clipform_set_logic. Node types and config schemas match clipform_create_form.

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": {
      "form_id": "<form_id>",
      "node": "<node>",
      "context": "<context>"
    },
    "name": "clipform_add_node"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeYesThe node to add
contextYesDescribe the user's underlying goal in one sentence - not the tool you're calling.
form_idYesThe form UUID (returned by clipform_create_form, not the short share_id from the URL)
unlinkedNoCreate an ending (end_screen or redirect) outside the flow, so nothing routes to it until you point an answer at it with clipform_set_logic. Only for ending types: a question added this way would sit outside the flow.
after_node_idNoInsert after this node ID. Omit to append before the end screen. Not used with unlinked.

Output Schema

NameRequiredDescriptionDefault
typeYesNode type that was added
node_idYesID of the created node - pass to update_node / attach_node_media

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / node / properties / prompt / description
      Previous value: -"The text shown to the respondent"New value: +"The text shown to the respondent. Line breaks (\\n) show as written on a plain background; on a video or image background the prompt shows as one caption of up to 3 lines."
  2. Changed3 schema fields changed
    • addedInput schema / properties / node / properties / options / items / properties / score / maximum
      Added value: +999
    • addedInput schema / properties / node / properties / options / items / properties / score / minimum
      Added value: +0
    • changedInput schema / properties / node / properties / options / items / properties / score / type
      Previous value: -"number"New value: +"integer"
  3. Changed1 schema field changed
    • changedInput schema / properties / node / properties / options / items / properties / is_correct / description
      Previous value: -"Mark this as the correct answer for a quiz (maps to score 1; other options score 0). Use this OR score, not both."New value: +"Mark this option as a correct answer for a quiz. Stored as the answer key; when score is not given it also sets score 1 (or 0 on the others)."
  4. Changed2 schema fields changed
    • changedInput schema / properties / after_node_id / description
      Previous value: -"Insert after this node ID. Omit to append before the end screen."New value: +"Insert after this node ID. Omit to append before the end screen. Not used with unlinked."
    • addedInput schema / properties / unlinked
      Added value: +{
      +  "description": "Create an ending (end_screen or redirect) outside the flow, so nothing routes to it until you point an answer at it with clipform_set_logic. Only for ending types: a question added this way would sit outside the flow.",
      +  "type": "boolean"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / node / properties / type / enum
      Previous value: -[
      -  "choice",
      -  "open",
      -  "details",
      -  "draw",
      -  "camera",
      -  "payment",
      -  "button",
      -  "redirect",
      -  "file_download",
      -  "end_screen"
      -]New value: +[
      +  "choice",
      +  "open",
      +  "booking",
      +  "details",
      +  "draw",
      +  "camera",
      +  "payment",
      +  "button",
      +  "redirect",
      +  "file_download",
      +  "end_screen"
      +]
  6. Changed1 schema field changed
    • changedInput schema / properties / node / properties / options / description
      Previous value: -"Answer options. choice: required, min 1, max 12, max 6 when option_display is \"letters\", content max 36 chars button: required, min 1, max 1, content max 28 chars"New value: +"Answer options. choice: required, min 1, max 12, max 6 when option_display is \"letters\", content max 80 chars button: required, min 1, max 1, content max 28 chars"
  7. Changed1 schema field changed
    • changedInput schema / properties / node / properties / options / description
      Previous value: -"Answer options. choice: required, min 1, max 6, content max 36 chars button: required, min 1, max 1, content max 28 chars"New value: +"Answer options. choice: required, min 1, max 12, max 6 when option_display is \"letters\", content max 36 chars button: required, min 1, max 1, content max 28 chars"
  8. Changed1 schema field changed
    • changedInput schema / properties / node / properties / type / enum
      Previous value: -[
      -  "choice",
      -  "open",
      -  "details",
      -  "camera",
      -  "payment",
      -  "button",
      -  "redirect",
      -  "file_download",
      -  "end_screen"
      -]New value: +[
      +  "choice",
      +  "open",
      +  "details",
      +  "draw",
      +  "camera",
      +  "payment",
      +  "button",
      +  "redirect",
      +  "file_download",
      +  "end_screen"
      +]
  9. Changed1 schema field changed
    • changedInput schema / properties / node / properties / type / enum
      Previous value: -[
      -  "choice",
      -  "open",
      -  "details",
      -  "payment",
      -  "button",
      -  "redirect",
      -  "file_download",
      -  "end_screen"
      -]New value: +[
      +  "choice",
      +  "open",
      +  "details",
      +  "camera",
      +  "payment",
      +  "button",
      +  "redirect",
      +  "file_download",
      +  "end_screen"
      +]
  10. Changed4 schema fields changed
    • addedInput schema / properties / form_id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / node / additionalProperties
      Removed value: -false
    • addedInput schema / properties / node / properties / config / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / node / properties / options / items / additionalProperties
      Removed value: -false
  11. Changed1 schema field changed
    • changedInput schema / properties / node / properties / type / enum
      Previous value: -[
      -  "choice",
      -  "open",
      -  "details",
      -  "button",
      -  "redirect",
      -  "file_download",
      -  "end_screen"
      -]New value: +[
      +  "choice",
      +  "open",
      +  "details",
      +  "payment",
      +  "button",
      +  "redirect",
      +  "file_download",
      +  "end_screen"
      +]
  12. Changed1 schema field changed
    • changedInput schema / properties / node / properties / options / items / properties / score / description
      Previous value: -"Score value for this option (for scored quizzes). Use 1 for correct, 0 for wrong. Scored options automatically enable correct-answer marking (record_scores) on the node."New value: +"Score value for this option (for scored quizzes). Use 1 for correct, 0 for wrong. Scored options automatically enable correct-answer marking (record_scores) and correct/incorrect answer feedback on the node; set config.choice.show_answer_feedback: false to hide the feedback."
  13. Changed2 schema fields changed
    • addedInput schema / properties / node / properties / options / items / properties / is_correct
      Added value: +{
      +  "description": "Mark this as the correct answer for a quiz (maps to score 1; other options score 0). Use this OR score, not both.",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / node / properties / options / items / properties / scores
      Removed value: -{
      -  "additionalProperties": {
      -    "type": "number"
      -  },
      -  "description": "Planned feature - category-based scores keyed by category name. Not yet editable in the dashboard.",
      -  "type": "object"
      -}
  14. Changed3 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Describe the user's underlying goal in one sentence - not the tool you're calling.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "form_id",
      -  "node"
      -]New value: +[
      +  "form_id",
      +  "node",
      +  "context"
      +]
  15. Changed1 schema field changed
    • changedInput schema / properties / node / properties / type / enum
      Previous value: -[
      -  "choice",
      -  "open",
      -  "details",
      -  "draw",
      -  "button",
      -  "redirect",
      -  "file_download",
      -  "end_screen"
      -]New value: +[
      +  "choice",
      +  "open",
      +  "details",
      +  "button",
      +  "redirect",
      +  "file_download",
      +  "end_screen"
      +]
  16. Changed2 schema fields changed
    • changedInput schema / properties / node / properties / type / enum
      Previous value: -[
      -  "choice",
      -  "open",
      -  "contact",
      -  "draw",
      -  "button",
      -  "redirect",
      -  "end_screen"
      -]New value: +[
      +  "choice",
      +  "open",
      +  "details",
      +  "draw",
      +  "button",
      +  "redirect",
      +  "file_download",
      +  "end_screen"
      +]
    • changedOutput schema / properties / node_id / description
      Previous value: -"ID of the created node - pass to update_node / upload_node_media"New value: +"ID of the created node - pass to update_node / attach_node_media"
  17. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "node_id": {
      +      "description": "ID of the created node - pass to update_node / upload_node_media",
      +      "type": "string"
      +    },
      +    "type": {
      +      "description": "Node type that was added",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "node_id",
      +    "type"
      +  ],
      +  "type": "object"
      +}
  18. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations only declare it is a non-destructive, non-idempotent, non-open-world write; the description adds the non-obvious side effect that inserting into a linear flow auto-relinks the chain (predecessor -> new node -> successor). It also discloses the default insertion point before the end screen and that unlinked endings stay unrouted until set_logic points at them. It does not mention permissions, limits on node count, or what the response returns, but the output schema covers returns.

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 action and default placement, then the re-linking behavior, then the alternate workflow, then the schema pointer. Dense and useful, though the insertion-default and after_node_id clauses partially restate what the schema's own descriptions already say.

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?

For a 5-parameter mutation with nested node objects, 100% schema coverage, an output schema, and annotations, the description covers the remaining gaps: chain re-linking side effects, default placement, the unlinked ending workflow, and where to find per-type config. Nothing an agent needs to invoke this correctly is missing.

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, but the description adds behavioral meaning: after_node_id's role in determining insertion position and its incompatibility with unlinked, and unlinked's restriction to ending types. It also cross-references clipform_create_form for node type and config semantics rather than duplicating them.

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?

"Add a new node to an existing form" is a specific verb+resource, and the description immediately distinguishes it from siblings by name: clipform_set_logic is not needed for a simple insert, and clipform_create_form supplies the node type/config schemas. An agent can place this among create_form, update_node and set_logic without opening any schema.

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?

It gives explicit when-to-use rules (default insert, after_node_id for position) and an explicit when-to-use-the-alternative path: for a second ending only some answers reach, pass unlinked:true and then route with clipform_set_logic. It also states the negative case (no set_logic needed for a simple insert) and a misuse warning (a question added unlinked would sit outside the flow).

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.