Skip to main content
Glama

Set the Arduino code

tinkercad_set_code

Replaces the Arduino sketch code of the currently open Tinkercad circuit, letting you update program text for simulation and testing.

Instructions

Replaces the Arduino sketch of the open circuit (text code, not blocks).

Input Schema

NameRequiredDescriptionDefault
codeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the key trait: 'Replaces' signals that the existing sketch is overwritten and lost. Beyond that, it says nothing about whether the circuit must be simulating, whether the code is validated against the Arduino sketch format, or what happens to an active simulation.

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?

One short sentence of about thirteen words, with the action and resource front-loaded and the 'not blocks' disambiguation clearly parenthesized. Nothing is wasted.

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 single-parameter mutation tool with no annotations and no output schema, the description covers the essential identity and overwrite semantics but leaves open the preconditions (open circuit, simulation state), validation behavior, and the result of a successful or failed call.

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 coverage is 0%, so the description must explain the one parameter, and it adds meaning by specifying 'Arduino sketch ... text code, not blocks.' However, it still doesn't say whether 'code' means a full sketch with setup() and loop() or a fragment, and the 1–80000 character bounds exist only in the schema.

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 ('Replaces') paired with a specific resource ('the Arduino sketch of the open circuit'), so the agent knows exactly what it does. The parenthetical '(text code, not blocks)' distinguishes it from block-based editing, although it doesn't distinguish it from siblings like tinkercad_set_part or tinkercad_build_circuit.

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 explicit when-to-use guidance and no comparison with alternatives; the only usage hint is implicit, in that the circuit must be 'open.' An agent must infer that this is the write counterpart to tinkercad_get_circuit and that it is not the right tool for building circuits from parts.

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