Skip to main content
Glama

ai_component

Manage App Inventor designer components: add, remove, rename, select, inspect the component tree, get or set properties, and list available types and schemas in the live editor.

Instructions

Designer components: tree/add/remove/rename/select/get/set/types/schema.

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_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoNew name (rename)
fromNoCurrent name (rename)
nameNoComponent name (add/remove/rename/select/get/set)
typeNoComponent type (add/schema/types)
queryNoFilter (types)
valueNoProperty value (set)
actionNoWhat to do
parentNoContainer to nest into (add)
screenNoScreen name (tree)
propertyNoProperty name (set)
componentNoComponent name (get/set)
includePropertiesNoInclude property values in tree (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

C2.6/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 burden, yet it discloses nothing about behavior. Actions like remove and set are clearly mutating, but the description never states that remove is destructive, whether renames cascade to descendants, whether set overwrites silently, or what any call 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?

A single tight fragment with zero filler, front-loaded on the resource before the action list. Its compactness edges into under-specification, but nothing in the sentence is redundant, and each token maps to a real capability.

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

Completeness2/5

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

This is a 12-parameter, nine-action mutation tool with no annotations and no output schema, yet the description is one line. An agent cannot determine scoping (which screen/project a component lives in), ordering prerequisites (select before set?), or the effect of includeProperties defaulting to true.

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% and every parameter is annotated with the action it serves (e.g. "New name (rename)", "Container to nest into (add)"), so the schema already does the heavy lifting. The description adds no meaning beyond that baseline, but it also does not mislead.

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?

The description identifies the resource ("Designer components") and lists the action verbs (tree/add/remove/rename/select/get/set/types/schema), so an agent knows this is a multiplexed component-manipulation tool. However, the slash-delimited list is just a restatement of the `action` enum, and it never says what any individual operation actually does or how this differs from siblings such as ai_layout or ai_screen.

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 when-to-use guidance, no when-not-to-use, and no routing to alternatives. With 13 sibling tools, the agent is left to guess whether component work belongs here or under ai_screen/ai_layout, and which `action` to pick for a given intent.

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