Skip to main content
Glama

get_component_styles

Retrieve CSS class names for a PrimeReact component to target and customize its styles in your application.

Instructions

Get CSS class names 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_styles"
  }
}

Input Schema

NameRequiredDescriptionDefault
componentYesComponent name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

B3.1/5.0
Behavior2/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, and it discloses almost nothing. 'Get' implies a read, but it doesn't say whether the result is a flat list, a keyed map of slots/states, static or theme-dependent, or what happens for an unknown component name.

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?

One short sentence, front-loaded with verb and resource, with zero filler. Nothing is padded or repeated.

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 read tool this is minimally adequate, and the schema is fully documented. However, with no output schema the description is the only place to indicate the shape and meaning of the returned class names, and it omits that entirely.

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 coverage is 100% with a single required 'component' parameter already documented as 'Component name', so the schema does the work. The description adds no extra meaning such as accepted name casing, whether names are validated, or examples of valid values.

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 ('Get') and a specific resource ('CSS class names') scoped to a PrimeReact component, which is concrete enough to act on. It does not distinguish itself from near-neighbors such as get_component_tokens or get_component_pt, so an agent must infer whether 'styles' means class names vs. design tokens vs. pass-through config.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: nothing says when to prefer this over get_component_tokens, get_component_pt, or get_theming_guide. The only implicit cue is the word 'CSS class names', leaving the agent to guess the boundary between styling-related siblings.

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