Skip to main content
Glama

set_variable_value

Set a variable's value for a specific mode. Value can be boolean, number, string, color (RGBA), or an alias.

Instructions

Set a variable's value for a mode. value is a boolean / number / string, a color { r, g, b, a } (0–1), or an alias { type: "VARIABLE_ALIAS", id }. Returns { ok, variableId, name }.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesboolean | number | string | { r,g,b,a } | { type:"VARIABLE_ALIAS", id }
modeIdYesMode id (from the collection)
variableIdYesVariable id
Behavior3/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, indicating mutation but not destruction. The description adds return format details but does not disclose side effects (e.g., impact on bound nodes), permissions, or reversibility. With minimal annotations, the description provides moderate behavioral context.

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?

The description is a single, information-dense sentence that efficiently covers purpose, value types, and return value without redundancy. No wasted words; front-loaded with the core action.

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 mutation tool with 3 required parameters and no output schema, the description adequately explains the operation, acceptable value formats, and response. It lacks details on error cases or mode/variableId specifics, but these are largely self-explanatory. The description is sufficiently complete for typical usage.

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 coverage is 100%, but the description adds meaningful detail beyond the schema by enumerating value types with concrete examples (e.g., color with {r,g,b,a} and alias structure). It also clarifies the return shape. This adds value over the schema alone.

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?

The description clearly states the action (set) and resource (variable's value for a mode), and lists acceptable value types and return value. It fully differentiates from sibling tools like create_variable or rename_variable by specifying mode-specific value setting.

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?

The description does not provide any guidance on when to use this tool versus alternatives (e.g., create_variable, rename_variable). It lacks explicit when-to-use or when-not-to-use context, leaving the agent without comparative direction.

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/awdr74100/figwright'

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