Skip to main content
Glama

get_usage_example

Retrieves code examples for a specified PrimeReact component so developers can see practical usage and implement it correctly.

Instructions

Get code examples 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_usage_example"
  }
}

Input Schema

NameRequiredDescriptionDefault
componentYesComponent name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.3

TDQS

C2.7/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 disclosure burden, and it discloses very little. It says nothing about the shape of the returned examples (language, count, JSX vs TS), whether an unknown component yields an error or empty result, or whether the call is read-only.

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?

One short sentence with the resource front and center and no filler, which suits a single-parameter lookup. It is arguably under-specified rather than padded, so brevity is not the problem.

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, no-output-schema lookup the bar is low, and the description identifies the resource adequately. Still, given the crowded sibling set, it should have clarified the return format and its relationship to 'get_example'.

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 a single well-labelled 'component' property, so the schema already does the heavy lifting. The description only implies the value should be a PrimeReact component name and adds no format or naming-convention detail beyond that.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb+resource is concrete ('Get code examples') and scoped to PrimeReact components, so the basic action is clear. However, it does not distinguish itself from the close sibling 'get_example', and an agent cannot tell from the text whether this returns usage snippets, full demos, or import statements.

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 statement of when to prefer this over 'get_example', 'get_component', or 'get_component_import', nor any prerequisites or exclusions. Usage is only inferable from the word 'examples' in the name and description.

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