Skip to main content
Glama
lmn451

JSX Prop Lookup MCP Server

by lmn451

analyze_jsx_props

Scan directories and files to analyze React component props, filter by component name or prop, and retrieve TypeScript type information.

Instructions

Analyze JSX/React component prop usage across files and directories.

Use this tool when you need to:

  • Understand what props a component accepts

  • Find all components in a codebase and their props

  • Analyze prop usage patterns in a project

  • Get TypeScript interface information for components

EXAMPLES:

  1. Analyze all components in current directory: { "includeTypes": true }

  2. Analyze all components in src/components: { "path": "src/components", "includeTypes": true }

  3. Find all props for Button component in current directory: { "componentName": "Button", "includeTypes": true }

  4. Find all usages of onClick prop in current directory: { "propName": "onClick", "includeTypes": false }

  5. Analyze specific file with type info: { "path": "src/App.tsx", "includeTypes": true }

Returns:

  • Component names and their props

  • Prop types (when includeTypes is true)

  • File locations where components are defined

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoAbsolute or relative path to file or directory to analyze (e.g., "src/components" or "src/App.tsx", defaults to current directory).
componentNameNoFilter: analyze only this specific component name (e.g., "Button")
propNameNoFilter: search only for this specific prop name (e.g., "onClick")
includeTypesNoInclude TypeScript type information in results
Behavior4/5

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

With no annotations, the description fully carries the transparency burden. It explains that the tool returns component names, props, types (when includeTypes is true), and file locations. The examples imply it is read-only and non-destructive. It does not mention permissions, rate limits, or edge cases, but for an analysis tool, the disclosure is adequate.

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?

The description is well-structured with a clear purpose statement, bullet-point use cases, and five numbered examples. Every sentence provides unique information. The examples are particularly efficient at demonstrating parameter usage without verbosity.

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?

Given the four parameters and no output schema, the description covers the tool's capabilities and expected output format. It explains what is returned (components, props, types, locations). It does not cover error scenarios or limit cases, but the examples and bullet points are sufficient for an agent to understand typical usage.

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 each parameter is already described. The description adds significant value by providing concrete examples that illustrate how parameters interact (e.g., combining path with componentName or propName). This helps an agent understand the filtering behavior beyond the schema's static descriptions.

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 clearly states the tool analyzes JSX/React component prop usage across files and directories, with specific verbs and resource. The bullet points and examples distinguish it from siblings by emphasizing it as a general analysis tool that can filter by component or prop, while siblings like find_components_without_prop and get_component_props are more specialized.

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 explicitly says 'Use this tool when you need to' and lists four bullet points covering common scenarios. It provides five concrete examples showing when to use different parameter combinations. However, it does not explicitly state when NOT to use this tool or how it differs from siblings, leaving some ambiguity about alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lmn451/jsx-prop-lookup-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server