Skip to main content
Glama

add_code_block

Inserts a monospace code block with a dark background and syntax highlighting onto an Inkboard page. Use it to display code snippets on a whiteboard at a chosen position or below existing content.

Instructions

Adds a code block (monospace font, dark background, syntax highlighting).

Input Schema

NameRequiredDescriptionDefault
xNoX of the top-left corner. Defaults to below the existing content.
yNoY of the top-left corner.
codeYes
pageNoPage: number (from 1) or name. Defaults to the first.
pathNoPath of the board file (.inkboard; .inkboard.json and .tableau.json also accepted). Optional when the application is open: the tool then acts live on the displayed board (undoable with Ctrl+Z).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden; it does disclose the visual outcome of the created object (monospace, dark background, syntax highlighting), which is genuine behavioral context. However it says nothing about object identity/handles, whether the target board must be open, undoability, or permissions — the live-vs-file behavior only surfaces in the schema's path field.

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?

A single short sentence with the verb and resource front-loaded and no filler. Every clause (appearance details) conveys useful 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?

For a simple creation tool with high schema coverage and no output schema, the appearance note plus rich schema descriptions of placement and target board are largely sufficient. The main omission is what the tool returns (e.g. the created object's id) for follow-up operations.

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 80%, so x, y, page and path are already well documented in the schema. The description adds no syntax, format, or sizing guidance for 'code' or positioning, so it does not exceed the schema 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?

Specific verb 'Adds' plus a concrete resource 'code block', and it even characterizes the rendered result (monospace, dark background, syntax highlighting). It does not explicitly contrast with sibling creators like add_table or add_formula, but the resource is distinctive enough to select on.

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 statement of when to use this versus add_table, add_formula, or import_mermaid, and no prerequisites or exclusions. The agent must infer usage from the tool name and schema alone.

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