Skip to main content
Glama

discover_foundation_entries

Discover foundation entries from a Storybook Compass catalog by query or category, returning metadata-derived guidance for tokens, color, typography, spacing, elevation, and theme—not authoritative values or CSS.

Instructions

Returns metadata-derived discovery guidance for foundation-related Compass catalog entries only; not authoritative token values, CSS, package APIs, or rendered docs.

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": "discover_foundation_entries"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum entries to return. Defaults to 50 when omitted, with a hard maximum of 50.
queryNoOptional free-text filter matched against title, path, tags, and import path metadata.
categoryNoOptional foundation category filter. Use one of the enum values.

Output Schema

NameRequiredDescriptionDefault
metaYes
entriesYes
guidanceYes
resultTypeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description bears the full burden. It does valuable work flagging that results are metadata-derived and non-authoritative, which sets expectations about reliability, but it says nothing about read-only safety, caching/latency, or result freshness beyond that.

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?

A single sentence with the scope stated first and the exclusion clause second; every clause earns its place by preventing misuse. No filler or restatement of the name.

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-value explanation is unnecessary, and the parameters are fully documented. The scope disclaimer closes most gaps; only explicit alternative routing is missing, which keeps it from a 5.

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

Parameters4/5

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

Schema coverage is 100% with all three parameters documented, including an enum and min/max bounds on limit, so the baseline is 3. The description adds the category framing ('foundation-related') that gives the category enum context, nudging slightly above baseline.

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: 'Returns metadata-derived discovery guidance for foundation-related Compass catalog entries.' The 'not authoritative token values, CSS, package APIs, or rendered docs' clause implicitly carves out the space of get_design_tokens and doc-rendering siblings, though no sibling is named outright.

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?

The word 'only' plus the negative clause implies when this tool is and isn't appropriate, but there is no explicit 'use this when…' statement and no named alternative to route to. An agent must infer that for actual token values or API details it should look elsewhere.

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