Skip to main content
Glama

get_theme_usage_examples

Retrieve metadata-grounded theme usage guidance and examples from Storybook Compass, filtered by optional query and limited to 50 entries.

Instructions

Returns metadata-discovered Compass theme usage guidance and examples.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_theme_usage_examples"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum entries to return. Defaults to 50 when omitted, with a hard maximum of 50.
queryNoOptional free-text filter matched against foundation metadata fields.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it discloses almost nothing beyond intent. "Metadata-discovered" hints that results derive from the metadata cache (relevant given the refresh_metadata_cache sibling), but there is no statement about read-only nature, staleness, result shape, or pagination behavior for the 50-entry cap.

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 front-loaded sentence with no padding or redundancy. It is efficient, though its brevity borders on under-specification rather than tight editing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has no output schema and no annotations, so the description is the only place an agent can learn what comes back — yet "guidance and examples" gives no sense of entry structure or content. For a queryable retrieval tool, that leaves the agent unable to predict results well enough to choose it confidently over similar guidance tools.

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%, so both limit and query are documented in the input schema, establishing the baseline of 3. The description adds no further meaning — it never mentions the limit or the free-text filter, nor explains what "foundation metadata fields" the query matches against.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a verb ("Returns") and a resource ("Compass theme usage guidance and examples"), so the general intent is graspable. However, "theme usage guidance and examples" is fuzzy about what an entry actually is, and "metadata-discovered" is unexplained jargon. It also does nothing to distinguish this from siblings like get_base_style_guidance or get_color_palette.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool, when not to, or which sibling to prefer for theme-related questions. An agent must guess whether this overlaps with get_base_style_guidance, get_design_tokens, or discover_foundation_entries.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.