Skip to main content
Glama

resolve_component_package

Resolve a ServiceNow HDS component tag to its exact npm package, such as now-card to @servicenow/now-card, and get an explicit unknown result if the tag is not registered.

Instructions

Returns the exact npm package that a ServiceNow HDS component tag belongs to. Examples: now-card -> @servicenow/now-card and now-card-header -> @servicenow/now-card. Never guesses from the tag name; if the tag is not in the curated registry, returns an explicit "unknown" result instead of inventing a package.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
componentTagYesThe component tag to resolve, such as "now-card" or "now-card-header".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the transparency burden and does well: it explicitly states the tool 'Never guesses from the tag name' and returns an 'unknown' result rather than inventing a package. That failure-mode disclosure is exactly what an agent needs; it only lacks detail on the exact shape of the unknown return.

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?

Three short sentences, front-loaded with the core purpose, followed by an illustrative example and the failure contract. No filler, though the example sentence is close to restating the schema's own example values.

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 single-parameter lookup with no output schema, the description covers purpose, the sub-component resolution rule, and the unknown fallback. It stops just short of describing the exact returned value in the unknown case, which is the only meaningful remaining gap.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds real semantics beyond the schema: the example pair now-card / now-card-header -> @servicenow/now-card shows that sub-component tags collapse to a base package, which is non-obvious from the parameter definition alone.

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?

States a precise verb and resource: 'Returns the exact npm package that a ServiceNow HDS component tag belongs to.' The tag-to-package mapping is distinct from sibling tools like get_component_api or get_component_scaffold, so an agent can tell what this does without opening the schema.

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?

The description makes the triggering scenario clear (you have a component tag and need its npm package) and illustrates it with concrete inputs. It does not name an alternative tool or state when NOT to use this one, but the context is unambiguous for a single-purpose lookup.

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