Skip to main content
Glama

Get themes

get_themes
Read-onlyIdempotent

Return color themes detected for a product version on a platform (from themes.json), including the active theme, available themes, and CSS custom-property tokens when captured.

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": {
      "product": "<product>",
      "platform": "<platform>",
      "version": "<version>"
    },
    "name": "get_themes"
  }
}

Input Schema

NameRequiredDescriptionDefault
productYesProduct key, for example finance-ozon-ru
versionYesExact capture version returned by list_versions. Pin the same version across related calls; do not use latest as an alias.
platformYesPlatform type ID from list_platforms.options.platforms[].id (backend CatalogPlatform.view). Use backend IDs verbatim; desktop/mobile are current examples. Environment is selected separately.
environmentNoEnvironment ID from the selected backend platform type in list_platforms.options.platforms[].environments[].id (backend implementation). Omit only when the version has one captured environment. Use captured pairs from list_platforms/list_versions for actual availability.

Output Schema

NameRequiredDescriptionDefault
sourceYes
themesYesResult entries
currentYes
productYesproduct
versionYesversion
platformYesplatform
preferenceYes
colorSchemeYes
environmentYesenvironment

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changed
    • changedOutput schema / additionalProperties
      Previous value: -falseNew value: +true
    • changedOutput schema / description
      Previous value: -"Structured result. Existing text or image content remains available in content."New value: +"Detected themes and current preference"
    • addedOutput schema / properties / colorScheme
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "colorScheme",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / current
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "current",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / environment
      Added value: +{
      +  "description": "environment",
      +  "type": "string"
      +}
    • addedOutput schema / properties / platform
      Added value: +{
      +  "description": "platform",
      +  "type": "string"
      +}
    • addedOutput schema / properties / preference
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "preference",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / product
      Added value: +{
      +  "description": "product",
      +  "type": "string"
      +}
    • removedOutput schema / properties / result
      Removed value: -{
      -  "additionalProperties": true,
      -  "description": "Detected themes and current preference",
      -  "properties": {
      -    "colorScheme": {
      -      "anyOf": [
      -        {
      -          "description": "colorScheme",
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "current": {
      -      "anyOf": [
      -        {
      -          "description": "current",
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "environment": {
      -      "description": "environment",
      -      "type": "string"
      -    },
      -    "platform": {
      -      "description": "platform",
      -      "type": "string"
      -    },
      -    "preference": {
      -      "anyOf": [
      -        {
      -          "description": "preference",
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "product": {
      -      "description": "product",
      -      "type": "string"
      -    },
      -    "source": {
      -      "anyOf": [
      -        {
      -          "description": "source",
      -          "type": "string"
      -        },
      -        {
      -          "type": "null"
      -        }
      -      ]
      -    },
      -    "themes": {
      -      "description": "Result entries",
      -      "items": {
      -        "$ref": "#/$defs/theme"
      -      },
      -      "type": "array"
      -    },
      -    "version": {
      -      "description": "version",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "product",
      -    "platform",
      -    "environment",
      -    "version",
      -    "current",
      -    "colorScheme",
      -    "preference",
      -    "source",
      -    "themes"
      -  ],
      -  "type": "object"
      -}
    • addedOutput schema / properties / source
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "source",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ]
      +}
    • addedOutput schema / properties / themes
      Added value: +{
      +  "description": "Result entries",
      +  "items": {
      +    "$ref": "#/$defs/theme"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / version
      Added value: +{
      +  "description": "version",
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "result"
      -]New value: +[
      +  "product",
      +  "platform",
      +  "environment",
      +  "version",
      +  "current",
      +  "colorScheme",
      +  "preference",
      +  "source",
      +  "themes"
      +]
  2. Changed2 schema fields changed
    • addedInput schema / properties / version / description
      Added value: +"Exact capture version returned by list_versions. Pin the same version across related calls; do not use latest as an alias."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "theme": {
      +      "additionalProperties": true,
      +      "description": "Captured theme metadata and evidence",
      +      "properties": {
      +        "active": {
      +          "description": "Whether this condition holds",
      +          "type": "boolean"
      +        },
      +        "colorScheme": {
      +          "anyOf": [
      +            {
      +              "description": "colorScheme",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "id": {
      +          "anyOf": [
      +            {
      +              "description": "id",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "label": {
      +          "anyOf": [
      +            {
      +              "description": "label",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "sources": {
      +          "description": "Result entries",
      +          "items": {
      +            "description": "Text value",
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "tokens": {
      +          "additionalProperties": true,
      +          "description": "Captured theme tokens",
      +          "properties": {},
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "label",
      +        "colorScheme",
      +        "sources",
      +        "active",
      +        "tokens"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "description": "Structured result. Existing text or image content remains available in content.",
      +  "properties": {
      +    "result": {
      +      "additionalProperties": true,
      +      "description": "Detected themes and current preference",
      +      "properties": {
      +        "colorScheme": {
      +          "anyOf": [
      +            {
      +              "description": "colorScheme",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "current": {
      +          "anyOf": [
      +            {
      +              "description": "current",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "environment": {
      +          "description": "environment",
      +          "type": "string"
      +        },
      +        "platform": {
      +          "description": "platform",
      +          "type": "string"
      +        },
      +        "preference": {
      +          "anyOf": [
      +            {
      +              "description": "preference",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "product": {
      +          "description": "product",
      +          "type": "string"
      +        },
      +        "source": {
      +          "anyOf": [
      +            {
      +              "description": "source",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "themes": {
      +          "description": "Result entries",
      +          "items": {
      +            "$ref": "#/$defs/theme"
      +          },
      +          "type": "array"
      +        },
      +        "version": {
      +          "description": "version",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "product",
      +        "platform",
      +        "environment",
      +        "version",
      +        "current",
      +        "colorScheme",
      +        "preference",
      +        "source",
      +        "themes"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "required": [
      +    "result"
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds one genuine behavioral detail beyond that: the qualifier 'when captured' signals that CSS token data may be absent. It does not say what happens when themes.json was never captured (error vs. empty result), which is the remaining unknown for an agent.

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?

A single sentence that leads with the verb and resource and packs the artifact source and returned contents without filler. The parenthetical '(from themes.json)' and the three-item content list make it dense but each clause carries information, so nothing needs cutting.

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 an output schema present and a rich 100%-covered input schema, the description does not need to explain return shapes or parameter sourcing, and it correctly stays high-level. The only gap is the absent-artifact behavior, which is minor for a read-only retrieval tool of this complexity.

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 four parameters (including the optional environment) are already documented with sourcing instructions, and the baseline of 3 applies. The description only echoes the product/version/platform triple at a high level and adds no syntax or format detail beyond the schema, and it is silent on the optional environment parameter.

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 and resource ('Return color themes detected for a product version on a platform') and names the source artifact (themes.json), then enumerates the payload (active theme, available themes, CSS custom-property tokens). That enumeration is what separates it from nearby style tools such as get_component_styles or get_sizing, though no sibling is named explicitly.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer it should call this when it needs theme/color data for a captured version. There is no statement of when to prefer it over get_component_styles or get_page_summary, and no prerequisites or exclusions are given in the description itself (those live in the schema's version/platform notes).

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