Skip to main content
Glama

get_component_import

Returns the correct PrimeReact import statement for a specified component, so you can add it to your code without guessing module paths.

Instructions

Get the correct import statement for a PrimeReact component

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": {
      "component": "<component>"
    },
    "name": "get_component_import"
  }
}

Input Schema

NameRequiredDescriptionDefault
componentYesComponent name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it discloses almost nothing beyond the one-line purpose. It does not state the return shape (a bare import string vs. module path plus named export), whether it handles sub-components or utilities, or how it behaves for an unknown component name — all relevant gaps for a mutation-free lookup tool with zero annotation coverage.

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

Conciseness5/5

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

A single front-loaded sentence with zero filler; the action and the target object appear immediately and nothing restates the tool name or schema.

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?

For a one-parameter lookup tool this is minimally sufficient to attempt a call, but with no output schema and no annotations the description should say what the returned string looks like and what happens on an unrecognized component. It stops short of that, leaving the agent to discover the return format empirically.

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% for the single 'component' parameter, so the schema already documents the only input and the baseline of 3 applies. The phrase 'for a PrimeReact component' reinforces the parameter's meaning but adds no format, casing, or valid-value guidance beyond the schema.

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+resource combination ('Get the correct import statement') scoped to 'a PrimeReact component', which is concrete and immediately actionable. It is distinguishable from sibling tools like get_component_props or get_usage_example because it clearly promises an import statement rather than documentation content, though it never explicitly contrasts itself with them.

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?

Usage is only implied: an agent can infer this is the tool for resolving how to import a component, but the description offers no explicit when-to-use framing, no prerequisites, and no mention of alternatives for related tasks such as usage examples. Nothing is misleading, but nothing steers the agent either.

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