Skip to main content
Glama

Lock-and-Fill Palette from Archive

palette_generate
Read-only

Takes a palette of up to 12 slots, some locked with hex values and the rest left empty. Empty slots are filled with the nearest CIEDE2000 archive match, interpolated from the locked anchors. Optional archive filter restricts fills to one archive. Returns full citation (name, archive, primary source, colour notes) for every filled slot. Example: lock a client's existing wall colour and fill a 5-colour scheme from Oxfordshire. The result already carries the rendered palette and its PNG, PDF, ASE, JSON and CSS downloads, ready to show the customer. The archive anchors a colour was derived from are evidence, not the recommended colours. A final palette chosen from this evidence is registered with palette_finalize, called once with those exact colours, so the customer can see and download what was actually recommended.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "slots": "<slots>"
    },
    "name": "palette_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeNoTotal CURATED palette size 2-12 (default 5). This is the designed-palette ceiling, not a product limit on how many colours exist: for a large colour COLLECTION, page archive_search instead.
slotsYesList of palette slots. Each has index (0-11), optional hex, and locked flag.
archiveNoOptional: restrict fills to one archive e.g. 'Oxfordshire', 'Shakespeare', 'Japan'

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / size / description
      Previous value: -"Total palette size 2-8 (default 5)"New value: +"Total CURATED palette size 2-12 (default 5). This is the designed-palette ceiling, not a product limit on how many colours exist: for a large colour COLLECTION, page archive_search instead."
    • changedInput schema / properties / slots / description
      Previous value: -"List of palette slots. Each has index (0-7), optional hex, and locked flag."New value: +"List of palette slots. Each has index (0-11), optional hex, and locked flag."
    • changedInput schema / properties / slots / items / properties / index / description
      Previous value: -"Slot position 0-7"New value: +"Slot position 0-11"
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "Structured JSON response. Shape varies by tool; most return an 'ok' boolean plus a 'result' or 'results' field with the tool's data payload.",
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "error": {
      -      "type": "string"
      -    },
      -    "ok": {
      -      "type": "boolean"
      -    },
      -    "result": {
      -      "type": [
      -        "object",
      -        "array",
      -        "string",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": "object"
      -}New value: +null
  4. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "error": {
      +      "type": "string"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "result": {
      +      "type": [
      +        "object",
      +        "array",
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  5. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=true, so the description carries most of the load, and it delivers non-obvious semantics: what is returned per filled slot (name, archive, primary source, colour notes) and that the output already includes rendered palette plus PNG/PDF/ASE/JSON/CSS downloads. The caveat that archive anchors are evidence rather than recommended colours is a genuinely useful behavioral warning an agent could not get from structured fields.

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?

Core behavior and the lock/fill rule are front-loaded in the first two sentences, followed by usage and workflow. It is slightly long, and the paragraph on evidence versus recommendation and palette_finalize could be tightened, but every sentence carries relevant guidance rather than filler.

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?

With annotations, a full output schema, and 100% parameter coverage, the description only needs to add mechanics and workflow, which it does. Minor gaps remain, such as what happens when lock counts conflict with size or when no archive match meets a threshold, but nothing essential for correct invocation is missing.

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 description coverage is 100%, so all three parameters are already documented, which sets the baseline at 3. The description adds only light framing ('up to 12 slots', the 5-colour example) and does not clarify edge cases such as fewer locked slots than size or conflicting locked values beyond what the schema states.

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?

States a concrete verb and resource ('takes a palette of up to 12 slots... empty slots are filled with the nearest CIEDE2000 archive match, interpolated from the locked anchors') and names the exact mechanism (locked anchors + CIEDE2000 archive fill). It is clearly distinguishable from palette_finalize, which it names as the separate registration step.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit use case ('lock a client's existing wall colour and fill a 5-colour scheme from Oxfordshire') and routes the follow-on decision: results are evidence, and the chosen palette must be registered with palette_finalize called once with those exact colours. The schema also redirects large collections to archive_search, so when-to-use versus alternatives is covered.

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