Skip to main content
Glama

add_component_prop

Adds a property to a component and binds it to a child node, enabling instances to override text content, visibility, or swap instances based on property type.

Instructions

Add a component property and bind it to a child node.

For TEXT properties: binds to the target text node's characters, so instances can override the text content. For BOOLEAN properties: binds to the target node's visibility.

Parameters: node: The component node ID (must be COMPONENT or COMPONENT_SET). name: Property display name. type: TEXT, BOOLEAN, or INSTANCE_SWAP. default: Default value. bind: Child node ID to bind this property to. For TEXT, binds to text content. For BOOLEAN, binds to visibility.

Examples: add_component_prop({node: "1:2", name: "Label", type: "TEXT", default: "Click me", bind: "1:5"}) add_component_prop({node: "1:2", name: "Show Icon", type: "BOOLEAN", default: "true", bind: "1:6"})

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodeYesComponent node ID (e.g. "1:2")
nameYesProperty name
typeYesProperty type
defaultNoDefault value
bindNoChild node ID to bind this property to
Behavior3/5

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

No annotations provided, so description carries full burden. It discloses the binding behavior for TEXT and BOOLEAN types but does not mention error handling, side effects (e.g., overwriting existing properties), or required permissions. Examples provide some insight but gaps remain.

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?

Description is well-structured with a brief header, bullet points for parameters, and separate examples. While it could be slightly more concise (e.g., removing redundant 'Parameters:' header), it is efficient and easy to parse.

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?

No output schema is present, and the description does not mention return values or confirmation of success. For a mutation tool, specifying what happens on successful execution (e.g., returns the updated component) would improve completeness. Otherwise, it covers purpose, parameters, and examples adequately.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema covers all 5 parameters with descriptions (100% coverage). Description adds value by explaining how the 'type' parameter affects binding behavior (TEXT->text, BOOLEAN->visibility) and provides concrete examples. This contextual enrichment goes beyond the schema.

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

Purpose5/5

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

Description clearly states verb ('Add') and resource ('component property') and specifies binding to child node. Differentiates from sibling tools like 'create_component' or 'list_component_props' by detailing the binding mechanism.

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

Usage Guidelines4/5

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

Provides explicit guidance on when to use each type (TEXT binds to text, BOOLEAN binds to visibility) and includes practical examples. However, lacks explicit when-not-to-use or alternative tool references.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/musepy/genable'

If you have feedback or need assistance with the MCP directory API, please join our Discord server