Skip to main content
Glama

Update project layer style

project_update_layer_style

Merge typed paint and display properties into a map layer's symbology: colours, ramps, opacity, and stroke. expectedSpecVersion is required to prevent stale writes.

Input Schema

NameRequiredDescriptionDefault
inputYes
projectIdYes
expectedSpecVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Beyond the annotations, it usefully discloses that changes are a merge (partial update rather than replacement) and that expectedSpecVersion guards against stale writes — real behavioral context. However, it does not say what happens on a version conflict, whether nested display metadata is also merged, or whether the call is restricted to existing layers. With no destructive or readOnly signal to add (annotations already cover that), the concurrency semantics are the main contribution — substantive, but not complete.

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?

Two tight sentences, front-loaded with the action and scope; the concurrency constraint follows. Nothing is padded, though a bit more content could have been justified given the tool's complexity.

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?

For a mutation tool with seven layer-type variants, a deeply nested paint/display payload, no output schema, and only generic annotations, the description is thin: it never addresses version-conflict behavior, layer-type-specific paint keys, or what the merge returns. The essentials for calling it are present, but not the essentials for calling it correctly under contention.

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?

Top-level schema description coverage is 0%, so the three required parameters carry no docstrings, but the description explains the purpose of expectedSpecVersion and maps the paint/display payload to concepts like colours, ramps, opacity, and stroke. It adds nothing about layerType variant selection or the meaning of styleBy/vizType/rampDomain, leaving most of the heavy nested surface to the schema.

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

Purpose4/5

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

States a specific verb (merge) and resource (a map layer's symbology) and enumerates the affected facets (colours, ramps, opacity, stroke). It does not name a sibling such as project_set_layer_filter or project_update_layer_label, so the boundary against adjacent tools is left to inference, but the operation itself is unambiguous.

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 use for restyling an existing layer and mentions the optimistic-locking requirement, but gives no explicit when-to-use/when-not guidance and no pointer to which sibling to pick instead (e.g. label vs filter vs visibility updates). An agent must infer the selection rule.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources