Skip to main content
Glama

add_text

Adds standalone text elements to an Excalidraw scene at specified coordinates for labeling diagrams and annotating canvas content.

Instructions

Add standalone text element to the scene.

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": {
      "x": "<x>",
      "y": "<y>",
      "content": "<content>"
    },
    "name": "add_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes
yYes
contentYes
opacityNo
frame_idNo
font_sizeNo
font_familyNo
strokeColorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.0
    • changedInput schema / properties / strokeColor / anyOf
      Previous value: -[
      -  {
      -    "pattern": "^(?:transparent|#[0-9A-Fa-f]{3,8})$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New 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"
      +  }
      +]
  2. Changed3 schema fields changedv0.4.0
    • 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 / frame_id / anyOf
      Previous value: -[
      -  {
      -    "maxLength": 200,
      -    "minLength": 1,
      -    "pattern": ".*\\S.*",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 200,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "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"
      +  }
      +]
  3. Changed1 schema field changedv0.3.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "arrow_id": {
      -      "type": "string"
      -    },
      -    "circle_id": {
      -      "type": "string"
      -    },
      -    "diamond_id": {
      -      "type": "string"
      -    },
      -    "frame_id": {
      -      "type": "string"
      -    },
      -    "label_id": {
      -      "anyOf": [
      -        {
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "rectangle_id": {
      -      "type": "string"
      -    },
      -    "text_id": {
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  4. First observedv0.2.1

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare non-destructive, non-idempotent, and closed-world behavior. The description does not add important context such as whether repeated calls create duplicate text elements, what is returned, or how frame_id affects placement.

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?

The description is a single front-loaded sentence with no wasted wording. It is concise, though its brevity contributes to the overall under-specification.

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

Completeness1/5

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

For an 8-parameter mutation tool with no output schema and no schema descriptions, a one-sentence description is far too thin. An agent lacks guidance on styling options, frame placement, required coordinate behavior, and what happens on repeated invocation.

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

Parameters1/5

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

There are 8 parameters with 0% schema description coverage, and the description explains none of them beyond implying that content is text and x/y likely position it. Optional parameters like opacity, frame_id, font_family, and strokeColor receive no semantic clarification.

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?

The description states a specific verb and resource: add a text element to the scene. 'Standalone' and 'text element' distinguish it from shape/frame creation tools, though it does not explicitly name those siblings.

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?

There is no guidance on when to use add_text versus add_frame, create_shape, or update_element, and no prerequisites or exclusions are stated. Only the word 'standalone' weakly implies usage context.

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