The Color API · Capability

The Color API — Colors

The Color API — Colors. 1 operations. Lead operation: Get Color Information. Self-contained Naftiko capability covering one The Color Api business surface.

Run with Naftiko The Color ApiColors

What You Can Do

GET
Getcolorinfo — Get Color Information
/v1/id

MCP Tools

get-color-information

Get Color Information

read-only idempotent

Capability Spec

the-color-colors.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: The Color API — Colors
  description: 'The Color API — Colors. 1 operations. Lead operation: Get Color Information. Self-contained Naftiko capability
    covering one The Color Api business surface.'
  tags:
  - The Color Api
  - Colors
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    THE_COLOR_API_API_KEY: THE_COLOR_API_API_KEY
capability:
  consumes:
  - type: http
    namespace: the-color-colors
    baseUri: https://www.thecolorapi.com
    description: The Color API — Colors business capability. Self-contained, no shared references.
    resources:
    - name: id
      path: /id
      operations:
      - name: getcolorinfo
        method: GET
        description: Get Color Information
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hex
          in: query
          type: string
          description: Color as a hex code without the
        - name: rgb
          in: query
          type: string
          description: Color as comma-separated RGB values (e.g., 0,71,171) or rgb(0,71,171).
        - name: hsl
          in: query
          type: string
          description: Color as HSL values (e.g., 215,100%,34%) or hsl(215,100%,34%).
        - name: cmyk
          in: query
          type: string
          description: Color as CMYK values (e.g., 100,58,0,33) or cmyk(100,58,0,33).
        - name: format
          in: query
          type: string
          description: Response format.
        - name: w
          in: query
          type: integer
          description: Image width in pixels for SVG format responses.
        - name: named
          in: query
          type: boolean
          description: Whether to include the color name on SVG image outputs.
        - name: callback
          in: query
          type: string
          description: JSONP callback function name.
  exposes:
  - type: rest
    namespace: the-color-colors-rest
    port: 8080
    description: REST adapter for The Color API — Colors. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/id
      name: id
      description: REST surface for id.
      operations:
      - method: GET
        name: getcolorinfo
        description: Get Color Information
        call: the-color-colors.getcolorinfo
        with:
          hex: rest.hex
          rgb: rest.rgb
          hsl: rest.hsl
          cmyk: rest.cmyk
          format: rest.format
          w: rest.w
          named: rest.named
          callback: rest.callback
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: the-color-colors-mcp
    port: 9090
    transport: http
    description: MCP adapter for The Color API — Colors. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-color-information
      description: Get Color Information
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: the-color-colors.getcolorinfo
      with:
        hex: tools.hex
        rgb: tools.rgb
        hsl: tools.hsl
        cmyk: tools.cmyk
        format: tools.format
        w: tools.w
        named: tools.named
        callback: tools.callback
      outputParameters:
      - type: object
        mapping: $.