Skip to main content
Glama

get_references

Read-onlyIdempotent

Search the Reference Library for UI patterns to build from: onboarding flows, paywalls, pricing tables, dashboards, auth screens, settings pages, empty states — plus the primitives they're built from. Every result is real, licensed open-source code (MIT/Apache-2.0/ISC/Nodeon original) with its source URL attached. Pass node_id to match the current task's spec, or query to describe what you need in words. Screens and blocks outrank loose primitives; for a react_web stack, html_tailwind references are included as a fallback below react_web. Returns up to 5 references with category, framework, license, purpose and the code snippet. Rate limited to 60 calls per hour per user; when the limit is reached the tool returns an error with the wait time.

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": {
      "project_id": "<project_id>"
    },
    "name": "get_references"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many references to return (1–5, default 3).
queryNoFree-text description of the UI you need, e.g. 'annual vs monthly billing toggle with savings badge'. Provide node_id or query (node_id wins if both).
node_idNoNode whose spec is the search probe — preferred when you already have the task. The node must belong to project_id.
categoryNoRestrict to one category: onboarding, auth, paywall, pricing, settings, dashboard, list, card, navigation, form, modal, empty_state, feedback, chart, layout, other, primitive.
frameworkNoStack preference: react_web, react_native or html_tailwind. react_web searches also admit html_tailwind references, ranked below react_web.
project_idYesThe project ID. Get this from list_projects first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and idempotent, but the description adds substantive behavior they do not cover: results are real licensed OSS code (MIT/Apache-2.0/ISC/Nodeon) with source URLs, ranking rules where screens and blocks outrank loose primitives and html_tailwind falls back below react_web, and a hard rate limit of 60 calls/hour that surfaces as an error carrying the wait time. That is exactly the operational context an agent needs before calling.

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?

It is front-loaded with purpose, then retrieval strategy, then ranking, then return shape, then rate limits — a sensible order. The single paragraph is dense and long, but nearly every clause carries information an agent would otherwise have to discover by experiment.

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

Completeness5/5

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

There is no output schema, and the description compensates by describing exactly what comes back: up to 5 references with category, framework, license, purpose and code snippet. Combined with the ranking and rate-limit disclosure, nothing material is missing for a 6-parameter read-only search tool.

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 description coverage is 100% and the enum parameters (category, framework) are fully documented in the schema, including the react_web/html_tailwind fallback note. The description's only added signal is the node_id-vs-query precedence, which the schema already states, so schema is doing the heavy lifting and the baseline 3 applies.

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

Purpose5/5

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

The description opens with a specific verb and resource — 'Search the Reference Library for UI patterns' — then enumerates concrete artifact types (onboarding flows, paywalls, pricing tables, dashboards). No sibling tool in the catalog does anything similar, so an agent can route here unambiguously.

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

Usage Guidelines4/5

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

It gives explicit invocation modes: 'Pass node_id to match the current task's spec, or query to describe what you need in words,' which tells the agent which of the two search inputs to supply and in what situation. It stops short of stating when not to use the tool or naming any alternative path, so it falls short of a 5.

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.