Skip to main content
Glama

get-documentation-for-story

Read-only

Storybook-MCP-compatible preview metadata lookup.

Input Schema

NameRequiredDescriptionDefault
idNo
tokenNoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.
storyIdNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "type": "object"
      +}
  2. First observed

TDQS

C2/5.0
Behavior2/5

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

readOnlyHint=true already establishes the safety profile, so the lower bar applies, but the description adds essentially nothing beyond it: no statement of what the lookup returns, whether it depends on a prior poll_access approval, or how it behaves when the story is missing. The "compatible" framing implies a payload shape without describing it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short sentence, but brevity here is under-specification rather than conciseness. The front-loaded content is a compatibility label rather than the action, the target, or the expected result.

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 output schema relieves the description of explaining return values, but for a tool with three parameters, an anyOf requirement branch, and a token/header fallback flow, the description should at minimum state what object is being resolved and how id differs from storyId. Neither is covered, so the definition is not sufficient to call the tool correctly.

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

Parameters2/5

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

Schema coverage is only 33%, and the description does not compensate. The token parameter is well documented in the schema itself, but the anyOf choice between storyId and id — the single most important decision an agent must make when calling this — is left completely unexplained in both places.

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

Purpose2/5

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

The phrase "preview metadata lookup" gestures at a read operation on preview data, but it never states what metadata is returned or for what object, and it does not even match the tool name's framing of "documentation for story." With nine-plus preview/catalog siblings in the catalog, an agent cannot tell from this sentence why it would pick this tool over preview-stories or catalog_get_preview_data.

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?

No when-to-use, when-not-to-use, or alternative routing is provided. "Storybook-MCP-compatible" is context jargon, not guidance — it does not tell an agent which situations call for this lookup versus the sibling preview tools.

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.