Skip to main content
Glama

get_component_style_dependencies

Discover style dependency hints for a known component path using Storybook metadata, clarifying that results are guidance only—not authoritative token, CSS, or package API data.

Instructions

Returns metadata-derived discovery guidance for style dependency hints on a known component path only; not authoritative token values, CSS, package APIs, or rendered docs.

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": {
      "componentPath": "<componentPath>"
    },
    "name": "get_component_style_dependencies"
  }
}

Input Schema

NameRequiredDescriptionDefault
componentPathYesNormalized Compass component path to inspect (for example: Forms/TextInput). Case-insensitive exact match.

Output Schema

NameRequiredDescriptionDefault
metaYes
guidanceYes
resultTypeYes
dependenciesYes
componentPathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden, and it does deliver the single most important trait: the results are metadata-derived hints, not authoritative values, so the agent should not treat them as ground truth. It says nothing about read-only-ness (merely implied), behavior on an unknown or misspelled path, or whether lookups are cached, which are relevant for a lookup tool with no annotation coverage.

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?

One front-loaded sentence with the scope constraint placed before the non-authoritative caveat list, and the semicolon-delimited negatives pack several exclusions into minimal space. It is dense and mildly jargon-laden ('metadata-derived discovery guidance') but nothing is redundant.

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?

For a one-parameter lookup with full schema coverage and an output schema (so return shape needn't be explained), the description supplies the scope limit and the reliability caveat that structured fields cannot convey. It is nearly complete; only error/unknown-path behavior and inter-tool routing remain unstated.

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%: the single componentPath parameter already documents normalization, an example format (Forms/TextInput), and case-insensitive exact matching. The description adds only the 'known component path' precondition, which is marginal on top of a fully documented schema, so baseline 3 applies.

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?

Names a specific resource (style dependency hints for a named component path) and explicitly marks its boundaries: 'metadata-derived discovery guidance' rather than 'authoritative token values, CSS, package APIs, or rendered docs'. The verb 'Returns' is weak and 'discovery guidance' is jargon, but an agent can still tell this apart from token/CSS/docs-oriented siblings without opening any schema.

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 precondition 'on a known component path only' implies the agent must already have a resolved path before calling, which is genuine usage guidance. However, no sibling is named and no explicit when-not condition is given; the negative list ('not ... CSS ... rendered docs') nudges the agent elsewhere only implicitly.

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