Skip to main content
Glama

desaturate

Convert a sprite layer or frame toward grayscale by a set percentage (0-100) to mute colors while retaining partial saturation. Use it to reduce color intensity without fully removing color.

Instructions

Desaturate toward grayscale by amount percent (0-100).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
frameNoDefault: 1.
layerNo
amountNoDefault: 100.
filenameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv0.10.0
    • addedInput schema / properties / amount / description
      Added value: +"Default: 100."
    • removedInput schema / properties / amount / title
      Removed value: -"Amount"
    • removedInput schema / properties / filename / title
      Removed value: -"Filename"
    • addedInput schema / properties / frame / description
      Added value: +"Default: 1."
    • removedInput schema / properties / frame / title
      Removed value: -"Frame"
    • removedInput schema / properties / layer / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / layer / default
      Removed value: -null
    • removedInput schema / properties / layer / title
      Removed value: -"Layer"
    • addedInput schema / properties / layer / type
      Added value: +"string"
    • removedInput schema / title
      Removed value: -"desaturateArguments"
  2. First observedv0.7.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, confirming this is a mutation. The description adds the amount range (0-100) and direction (toward grayscale), which is useful context, but does not disclose what exactly gets modified (layer, frame) or whether changes are reversible.

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?

A single, front-loaded sentence with zero waste. Every word contributes to stating the operation and its degree.

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 mutating tool with four parameters and no output schema, the description is too thin. It omits which sprite/layer/frame is affected and leaves required 'filename' and optional 'layer' unexplained, so an agent cannot fully predict the tool's effect.

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%. The description adds meaning for 'amount' (percent toward grayscale, 0-100), which goes beyond the schema's bare 'Default: 100.' However, it does not explain the required 'filename' or the optional 'layer' and 'frame' parameters, so partial compensation only.

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 ('Desaturate') and the effect ('toward grayscale by amount percent'), so the agent knows the operation. It does not differentiate from sibling tools like adjust_hue_saturation or invert_colors, but the core purpose is clear.

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?

No when-to-use guidance, prerequisites, or mention of alternatives. The description only states what the tool does, leaving the agent to infer when to select it over sibling color operations.

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

Deploy Server

Other Tools