Skip to main content
Glama

Define style presets

define_styles
DestructiveIdempotent

Define named style presets. With a shell (Claude Code): write the fields to a JSON file, curl it to the upload link new_project gave and pass only upload_id, so the user approves a short call.

Input Schema

NameRequiredDescriptionDefault
stylesNo
upload_idNoWith a shell: the upload_id of a JSON file of this call's fields, sent with curl to the upload link new_project gave (keeps the user's approval box short). Fields in the call itself win.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.1/5.0
Behavior2/5

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

Annotations declare destructiveHint=true, yet the description never says whether defining a preset overwrites or replaces an existing style of the same name — the single most important behavior for a destructive call. The upload/approval workflow detail is useful added context, but the destructive semantics remain undisclosed.

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 sentences, front-loaded with the core purpose and with zero filler. The second sentence is dense but each clause (JSON file, upload link, upload_id, short approval) carries functional information.

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?

For a destructive, non-idempotent-looking mutation with no output schema, the description should disclose what gets overwritten, whether style names are global or per-project, and what the call returns. None of that is present, leaving meaningful gaps given only 50% schema coverage on a nested-object parameter.

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 coverage is 50%; upload_id is fully documented in the schema, and the description's curl workflow reinforces what that parameter is for. The styles object carries no description in either schema or description, though its nested property names (fill, stroke, opacity, stroke_taper) are largely self-explanatory.

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 and resource ('Define named style presets'), which is unambiguous on its own. However, it never distinguishes itself from siblings like set_style or list_design_styles, so an agent cannot route between the style-related tools from this text alone.

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 second sentence gives a procedural hint for shell environments (write JSON, curl to the upload link, pass upload_id), which implies usage context. But there is no guidance on when to choose this over set_style or list_design_styles, and no prerequisites stated for non-shell environments.

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.