Skip to main content
Glama
montecbmd

agent-treats-mcp

by montecbmd

color_palette

Create an aesthetic color palette with hex codes and mood description. Optionally provide a mood to match your desired vibe.

Instructions

Get a curated, named aesthetic color palette with hex codes and mood description. Free.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
moodNoOptional mood to match: cozy, vibrant, calm, dark, warm, etc.

Implementation Reference

  • The tool handler for 'color_palette'. It takes an optional 'mood' parameter, looks up a matching palette from the 'palettes' array (or picks one at random if no mood given), and returns the palette name, hex colors, mood description, and CSS variables with a store promo.
    server.tool(
      "color_palette",
      "Get a curated, named aesthetic color palette with hex codes and mood description. Free.",
      { mood: z.string().optional().describe("Optional mood to match: cozy, vibrant, calm, dark, warm, etc.") },
      async ({ mood }) => {
        let palette;
        if (mood) {
          const m = mood.toLowerCase();
          palette = palettes.find(p => p.mood.toLowerCase().includes(m) || p.name.toLowerCase().includes(m)) || pick(palettes);
        } else {
          palette = pick(palettes);
        }
        return {
          content: [{
            type: "text",
            text: `🎨 Color Palette: "${palette.name}"\n\nColors: ${palette.colors.join("  ")}\nMood: ${palette.mood}\n\nCSS Variables:\n${palette.colors.map((c, i) => `  --color-${i + 1}: ${c};`).join("\n")}\n${storePromo()}`,
          }],
        };
      }
    );
  • Input schema for the color_palette tool: an optional 'mood' string parameter validated with Zod.
    { mood: z.string().optional().describe("Optional mood to match: cozy, vibrant, calm, dark, warm, etc.") },
  • server.js:221-240 (registration)
    Registration of the 'color_palette' tool on the MCP server via server.tool(...). This binds the tool name, description, schema, and handler.
    server.tool(
      "color_palette",
      "Get a curated, named aesthetic color palette with hex codes and mood description. Free.",
      { mood: z.string().optional().describe("Optional mood to match: cozy, vibrant, calm, dark, warm, etc.") },
      async ({ mood }) => {
        let palette;
        if (mood) {
          const m = mood.toLowerCase();
          palette = palettes.find(p => p.mood.toLowerCase().includes(m) || p.name.toLowerCase().includes(m)) || pick(palettes);
        } else {
          palette = pick(palettes);
        }
        return {
          content: [{
            type: "text",
            text: `🎨 Color Palette: "${palette.name}"\n\nColors: ${palette.colors.join("  ")}\nMood: ${palette.mood}\n\nCSS Variables:\n${palette.colors.map((c, i) => `  --color-${i + 1}: ${c};`).join("\n")}\n${storePromo()}`,
          }],
        };
      }
    );
  • The 'palettes' data array containing 8 curated color palettes with name, hex color codes, and mood description. Used as the data source for the color_palette tool.
    const palettes = [
      { name: "Sunset Over Pittsburgh", colors: ["#F4845F", "#F7B267", "#F25C54", "#F9DC5C", "#2D3047"], mood: "Warm, nostalgic, golden hour" },
      { name: "Midnight Emerald", colors: ["#0B3D2E", "#145A42", "#1B7A5A", "#23996E", "#2ECC71"], mood: "Deep, luxurious, mysterious" },
      { name: "Tokyo Neon", colors: ["#FF006E", "#8338EC", "#3A86FF", "#FFBE0B", "#FB5607"], mood: "Electric, bold, futuristic" },
      { name: "Rainy Day Jazz", colors: ["#2B2D42", "#8D99AE", "#EDF2F4", "#EF233C", "#D90429"], mood: "Moody, sophisticated, soulful" },
      { name: "Northern Lights", colors: ["#0B0C10", "#1F2833", "#45A29E", "#66FCF1", "#C5C6C7"], mood: "Ethereal, awe-inspiring, cosmic" },
      { name: "Campfire Stories", colors: ["#1C1C1E", "#FF9500", "#FF6B00", "#FFD60A", "#3A3A3C"], mood: "Intimate, warm, adventurous" },
      { name: "Cherry Blossom", colors: ["#FFB7C5", "#FF69B4", "#FF1493", "#C71585", "#FFF0F5"], mood: "Delicate, joyful, ephemeral" },
      { name: "Deep Space", colors: ["#0D1B2A", "#1B2838", "#2D4059", "#415A77", "#778DA9"], mood: "Infinite, contemplative, vast" },
    ];
Behavior4/5

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

No annotations exist, so description carries full burden; it discloses that the output includes hex codes and mood description and that it is free, but no mention of rate limits or external dependencies.

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?

Single sentence that is front-loaded and concise, every word adds value.

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?

For a tool with one optional parameter and no output schema, the description is sufficient; it explains the return values but could include format or example.

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 100% with clear description for the 'mood' parameter; the tool description does not add significant new information beyond the schema, resulting in baseline score.

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 the tool retrieves a curated, named aesthetic color palette with hex codes and mood description, distinguishing it from sibling tools.

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

Usage Guidelines4/5

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

While it doesn't explicitly state when to use vs alternatives, the sibling set is diverse and the tool's purpose is self-evident; no when-not or alternatives given, but adequate for simplicity.

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/montecbmd/agent-treats-mcp'

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