Skip to main content
Glama

AI Code Security Gate

Check Brand Colors

brand_check

Score extracted colors against your registered palette (RGB distance <= 30 counts as a match). Costs 2¢. Register a palette first with set_brand_palette.

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": {
      "extracted_colors": "<extracted_colors>"
    },
    "name": "brand_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNo
extracted_colorsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Adds real context beyond the annotations: a monetary cost (2¢) and the concrete matching threshold that determines the result, neither of which is in the structured fields. It does not explain why the tool is flagged readOnlyHint=false despite only scoring colors (presumably the billing side effect), leaving one annotation unexplained, which keeps it from a 5.

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?

Three short sentences, each carrying distinct information: the operation, the matching rule, the price, and the prerequisite. Nothing is redundant and the core purpose is front-loaded.

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?

An output schema exists, so return values need no prose, and the description covers cost, matching rule, and dependency. The remaining gap is input format for the two undocumented parameters, which matters for a scoring tool whose input is a color array.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry parameter meaning and largely does not. It never says what format 'extracted_colors' entries take (hex, CSS names, RGB tuples) nor what 'api_key' is for or how to obtain it; only the distance threshold indirectly hints at color representation.

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 specific verb and resource: scoring extracted colors against a registered brand palette, with the exact match rule (RGB distance <= 30). It also names the sibling it depends on (set_brand_palette), so an agent can distinguish the check from the palette registration without opening either schema.

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?

Gives a hard prerequisite: 'Register a palette first with set_brand_palette', which tells the agent the ordering constraint and the alternative to invoke if no palette exists. It does not state when NOT to use the tool or what happens if a palette is absent, so it falls short of full when/when-not coverage.

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.