Skip to main content
Glama

create_connector

Create connector arrows between coordinates or bound shapes in Excalidraw diagrams, with optional labels, arrowheads, and stroke styles.

Instructions

Create a connector arrow between coordinates or bound shape elements.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_connector"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
x2No
y2No
labelNo
elbowedNo
opacityNo
font_sizeNo
roughnessNo
roundnessNo
source_idNo
target_idNo
font_familyNo
strokeColorNo
strokeStyleNo
strokeWidthNo
endArrowheadNo
startArrowheadNo
backgroundColorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.4.0
    • changedInput schema / properties / backgroundColor / anyOf
      Previous value: -[
      -  {
      -    "pattern": "^(?:transparent|#[0-9A-Fa-f]{3}|#[0-9A-Fa-f]{4}|#[0-9A-Fa-f]{6}|#[0-9A-Fa-f]{8})$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^(?:transparent|#[0-9A-Fa-f]{3,8})$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / endArrowhead
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "arrow",
      +        "bar",
      +        "dot",
      +        "circle",
      +        "circle_outline",
      +        "triangle",
      +        "triangle_outline",
      +        "diamond",
      +        "diamond_outline",
      +        "crowfoot_one",
      +        "crowfoot_many",
      +        "crowfoot_one_or_more"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • changedInput schema / properties / font_family / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "excalifont",
      -      "sans-serif",
      -      "monospace",
      -      "comic-shanns",
      -      "handwriting"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / source_id / anyOf
      Previous value: -[
      -  {
      -    "maxLength": 200,
      -    "minLength": 1,
      -    "pattern": ".*\\S.*",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 200,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / startArrowhead
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "arrow",
      +        "bar",
      +        "dot",
      +        "circle",
      +        "circle_outline",
      +        "triangle",
      +        "triangle_outline",
      +        "diamond",
      +        "diamond_outline",
      +        "crowfoot_one",
      +        "crowfoot_many",
      +        "crowfoot_one_or_more"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • changedInput schema / properties / strokeColor / anyOf
      Previous value: -[
      -  {
      -    "pattern": "^(?:transparent|#[0-9A-Fa-f]{3}|#[0-9A-Fa-f]{4}|#[0-9A-Fa-f]{6}|#[0-9A-Fa-f]{8})$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^(?:transparent|#[0-9A-Fa-f]{3,8})$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / target_id / anyOf
      Previous value: -[
      -  {
      -    "maxLength": 200,
      -    "minLength": 1,
      -    "pattern": ".*\\S.*",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 200,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Addedv0.3.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations declare destructiveHint=false and idempotentHint=false, so the safety profile is partly covered. However, the description adds no behavioral context for a 19-parameter mutation: it does not explain what happens when source_id/target_id and coordinates are both supplied, whether creation is reversible, what the default rendering is, or what the tool 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?

A single front-loaded sentence with no wasted words. It is appropriately terse for a short description, though the terseness leaves the complex tool under-structured rather than over-explained.

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

Completeness2/5

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

For a 19-parameter creation tool with no output schema, no annotation coverage of return behavior, and 0% schema description coverage, one sentence is not enough. Key facts an agent needs — default geometry, precedence of coordinates versus source/target IDs, and response shape — are absent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the schema provides names and constraints but no meanings. The description only hints that x/y/x2/y2 relate to coordinates and source_id/target_id relate to bound elements; it leaves label, elbowed, arrowheads, stroke, opacity, roughness, font, and the interaction between coordinate and binding parameters unexplained.

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 ('Create a connector arrow') and scopes it to two creation modes: raw coordinates or bound shape elements. This distinguishes it from create_shape and add_text by resource, though it never names a sibling explicitly.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance is given. The phrase 'between coordinates or bound shape elements' implies two modes but does not say which to prefer, what prerequisites exist, or how it relates to siblings like create_shape or update_element.

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