Skip to main content
Glama
Figma Canvas MCP

Figma Canvas MCP

by AmroJSawan

figjam_create_code_block

Create a code block on a FigJam board to share code snippets, config examples, or technical documentation in collaborative boards.

Instructions

Create a code block on a FigJam board. Use for sharing code snippets, config examples, or technical documentation in collaborative boards.

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": {
      "code": "<code>"
    },
    "name": "figjam_create_code_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoX position on canvas
yNoY position on canvas
codeYesThe code content
languageNoProgramming language (e.g., 'JAVASCRIPT', 'PYTHON', 'TYPESCRIPT', 'JSON', 'HTML', 'CSS')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.17.3

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It says 'create' but does not disclose whether x/y may be omitted and what default placement results, whether the call returns an identifier, or any permission/collaboration constraints, which are all relevant for a board-mutating tool.

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?

Two sentences, front-loaded with the operation and followed by use cases; there is no redundant restatement of the name or filler wording.

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 4-parameter creation tool with no annotations and no output schema, the description covers what it makes but leaves behavioral questions (positioning defaults, return value, board targeting) unaddressed. Adequate to call it, not complete enough to predict its effects.

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 description coverage is 100%, with each of the four parameters documented including the language format and code length cap, so the schema already does the explanatory work. The description adds no parameter meaning beyond that, which is the expected baseline.

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 gives a specific verb and resource ('Create a code block on a FigJam board') and names the content type it produces, so the operation is unambiguous. It does not distinguish itself from siblings like figjam_create_shape_with_text or figjam_create_sticky, which would be the natural alternatives for placing text on a board.

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

Usage Guidelines3/5

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

The second sentence offers use cases (code snippets, config examples, technical documentation), which implies when to reach for it. However it never says when not to use it or which sibling to pick when the content is prose rather than code, leaving selection to inference.

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

Deploy Server

Other Tools