Skip to main content
Glama

get_spacing_guidance

Retrieve metadata-discovered spacing guidance with source confidence and evidence, optionally filtered by a free-text query, to support consistent Storybook UI planning.

Instructions

Returns metadata-discovered Compass spacing guidance with source confidence and evidence.

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_spacing_guidance"
  }
}

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

B3.2/5.0
Behavior3/5

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

No annotations are present, so the description carries the full disclosure burden. It usefully discloses that guidance comes from discovered metadata, that each result carries a source confidence, and that evidence is included. This implies results may be stale or unverified, but the description never states cache freshness requirements, what happens with an empty result, or whether discovery must be run first.

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?

The description is a single front-loaded sentence listing the resource and the two payload attributes (confidence, evidence), with no filler. It is efficient, though terse enough that the missing usage guidance is a size problem rather than a wordiness problem.

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

Completeness3/5

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

This is a low-complexity read-only getter with two optional parameters and no output schema, and the description partially compensates for the missing output schema by naming the confidence and evidence fields. It remains incomplete on routing and on the dependency between metadata discovery and this tool's results.

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 limit and query are already documented with defaults, bounds, and matching behavior. The description adds no extra meaning about how the free-text query interacts with foundation metadata fields. Baseline 3 is appropriate when the schema does the work.

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?

The description names a specific verb and resource: it returns Compass spacing guidance that was discovered from metadata. That resource name implicitly separates it from siblings like get_typography_guidance and get_base_style_guidance. It never explicitly contrasts itself with those siblings, however, so the differentiation relies on the resource noun rather than an explicit comparison.

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?

The description gives no when-to-use guidance, no when-not-to-use guidance, and no alternatives. It does not say whether the agent should call this tool before or after refresh_metadata_cache, or whether it should use discover_foundation_entries instead when it lacks prior metadata knowledge. An agent must infer all routing decisions from the name.

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