Skip to main content
Glama

recommend_component

Matches a plain-language UI use case to Compass components using deterministic metadata, returning ranked recommendations for choosing the right component.

Instructions

Recommends Compass components for a plain-language UI use case using deterministic metadata matching.

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": {
      "useCase": "<useCase>"
    },
    "name": "recommend_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum recommendations to return. Defaults to 5 when omitted, with a hard maximum of 10.
useCaseYesPlain-language UI need to match against Compass metadata (for example: booking form input or pricing summary card).

Output Schema

NameRequiredDescriptionDefault
metaYes
queryYes
guidanceNo
resultTypeYes
recommendationsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. 'Deterministic metadata matching' is genuinely useful context — it tells the agent results are reproducible and derived from metadata rather than semantic inference — but it says nothing about ranking, whether partial matches are returned, or how empty results behave.

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?

A single sentence with zero filler, front-loading the action and resource before the mechanism. It is arguably under-developed rather than padded, which is penalized under contextual completeness rather than here.

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?

An output schema exists, so return values need not be explained, and both parameters are well documented. What is missing is the routing information an agent needs among 15 siblings and any sense of result quality or match strictness, which is significant for a recommendation 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%, with both useCase and limit fully documented including the default of 5 and the hard maximum of 10. The description adds no parameter-level meaning beyond that, so the baseline of 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?

States a specific verb and resource (recommends Compass components), the input shape (plain-language UI use case), and the matching mechanism (deterministic metadata matching). It does not differentiate itself from siblings such as search_components or create_component_recommendation_matrix, so an agent cannot tell from the description alone which of these to pick.

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 phrase 'plain-language UI use case' implies the trigger condition (natural-language needs rather than exact keyword lookup), which is useful implied guidance. However there is no explicit when-to-use/when-not-to-use statement and no named alternative for keyword-based or catalog-browsing needs, leaving routing to inference.

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