Skip to main content
Glama

set_layer_properties

Modify rendering and identification properties of a napari layer by exact name, including visibility, opacity, colormap, blending, contrast limits, gamma, renaming, and activation.

Instructions

Set properties on a layer by name.

Parameters

name : str Layer name (exact match). visible, opacity, colormap, blending, contrast_limits, gamma Standard layer rendering properties. new_name : str, optional Rename the layer. active : bool, optional If True, make this the selected/active layer. Setting to False has no effect (use viewer selection directly).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
visibleNo
opacityNo
colormapNo
blendingNo
contrast_limitsNo
gammaNo
new_nameNo
activeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

No annotations are provided, so the description must carry the full burden. It notes that setting active=False has no effect, but it does not disclose prerequisites (e.g., layer existence), side effects, or error behavior. This is insufficient for a mutation tool.

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 concise, front-loaded with the main purpose, and well-structured with a 'Parameters' section. Every sentence adds value with no repetition or fluff.

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?

Given the tool's complexity (9 parameters, mutation), the description covers parameter semantics but omits return value description (though output schema exists), error handling, and preconditions like layer existence. It is adequate but has clear gaps.

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?

With 0% schema description coverage, the description compensates by explaining each parameter's purpose (e.g., 'Layer name (exact match)', 'Standard layer rendering properties', 'Rename the layer'). However, the explanation for rendering properties is vague, and exact accepted values (e.g., colormap names) are not given.

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 'Set properties on a layer by name,' identifying the verb (set) and resource (layer properties). It distinguishes from sibling tools like add_layer, get_layer, and remove_layer by focusing on modifying existing layers.

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?

The description implies usage for modifying layer properties but does not explicitly state when to use this tool versus alternatives. No exclusions or alternative tool names are provided.

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/royerlab/napari-mcp'

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