Skip to main content
Glama

ai_blocks

Read, replace, add, clear, diagnose, or repair Blockly XML in a live App Inventor workspace; use set over add because editor edits are not transactional.

Instructions

Blockly workspace: context/get/set/add/clear/diagnostics/repair. Prefer set over add; the editor is not transactional.

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": "ai_blocks"
  }
}

Input Schema

NameRequiredDescriptionDefault
xmlNoBlockly XML (set/add)
applyNorepair: write the fix back (default true)
actionNoWhat to do
formatNoget: xml (default) or summary

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full disclosure burden for a tool with several mutating actions. 'The editor is not transactional' is a genuinely useful caveat, but nothing says that 'clear' destroys state, what 'repair' changes, whether operations are reversible, or what each action 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?

Extremely compact with no filler sentences, and the preference is placed ahead of the caveat. The first clause mostly duplicates the action enum, which is the only wasted space.

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?

A seven-action tool with no annotations and no output schema needs more than a topic list; only the non-transactional warning is provided as operational context. The format parameter hints at what 'get' returns, but 'context', 'diagnostics' and 'repair' remain opaque.

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%, so the baseline is 3 regardless. The description adds the set-vs-add preference which maps to the action enum, but goes no further than the schema on xml, apply, or format.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

Identifies the resource (a Blockly workspace) and enumerates the seven operations, but the action list is just the enum restated and none of the operations is described. An agent knows the domain but not what 'context', 'diagnostics' or 'repair' actually do. No distinction from siblings is offered.

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?

'Prefer set over add' is an explicit choice rule between two actions, and the non-transactional note explains why. However, there is no guidance on when to use context vs get vs diagnostics vs repair, so most of the action space is left to inference.

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