Skip to main content
Glama

Get a component

get_component
Read-onlyIdempotent

Everything needed to write a correct React Native call site for one component: props with types, defaults and allowed values, a minimal example call, what draws on iOS and on Android, the providers it needs at the app root, its dependencies, and the runtime rules that stop it rendering blank.

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": {
      "slug": "<slug>"
    },
    "name": "get_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYese.g. "button"
platformNoonly the rules that hold there

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / platform
      Added value: +{
      +  "description": "only the rules that hold there",
      +  "enum": [
      +    "ios",
      +    "android"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds real value beyond that by disclosing the return payload in detail (defaults, allowed values, providers, runtime rules) — the only notable omission is the response shape (text vs. structured JSON).

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 one dense sentence, but front-loaded with the payoff ('everything needed to write a correct call site') and every clause lists a distinct returned artifact, so nothing is filler. A slightly more scannable structure would push it to a 5.

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?

With no output schema, the description carries the return-value burden and does so thoroughly across props, example, platform behavior, providers, dependencies, and runtime rules. What remains unstated is only the response encoding and whether an unknown slug errors — minor for a read-only lookup.

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%, so the schema already documents both parameters including the enum. The description echoes the platform dimension ('what draws on iOS and on Android') but adds no syntax, validation, or fallback details beyond what the schema states. Baseline 3 applies when the schema does the heavy lifting.

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 names a specific verb+resource ('write a correct React Native call site for one component') and then enumerates exactly what the response contains: props with types, defaults, allowed values, a minimal example, platform styling, root providers, dependencies, and runtime gotchas. That is far more specific than a sibling like find_component or get_app_setup could be, so an agent can select it 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 Guidelines3/5

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

The framing ('everything needed to write a correct call site') implies the use case: looking up a single known component before emitting code. However, there is no explicit when-to-use vs find_component/install_component routing, and no statement of preconditions (e.g., whether the slug must already exist locally). Usage is inferable but not spelled out.

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.