Skip to main content
Glama

find_reflection_usage

Detect reflection-based code usage such as Type.GetType, Activator.CreateInstance, and MethodInfo.Invoke in .NET projects. Returns results with counts and kind summaries, optionally filtered by type name.

Instructions

Detect dynamic/reflection-based usage like Type.GetType, Activator.CreateInstance, MethodInfo.Invoke. Returns an envelope with items, totalCount, truncated, limit (default 500), and a byKind summary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of items to return (default: 500). Items are sorted by file, then line.
symbolNoOptional type name to filter results (omit to scan entire solution)
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It mentions return fields (items, totalCount, truncated, limit default 500, byKind summary) and sorting by file then line, but does not disclose side effects, permissions, or performance implications. It implicitly suggests read-only behavior.

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 a single sentence that efficiently conveys purpose, examples, and return structure. It is front-loaded with the core action and immediately useful details, with no wasted words.

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 low complexity (2 parameters, no output schema, no annotations), the description covers purpose, return envelope, and sorting. It lacks usage guidelines and explicit behavioral transparency, but for a simple detection tool, it is largely adequate.

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 baseline is 3. The description does not add meaning beyond what the input schema already provides for the two parameters (limit and symbol). The only extra is mention of default limit 500, which is already in the schema as default null but described as default 500.

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 detects dynamic/reflection-based usage, listing specific examples like Type.GetType, Activator.CreateInstance, and MethodInfo.Invoke. It also mentions the return envelope structure, which helps differentiate it from sibling tools like find_references or find_attribute_usages.

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?

No guidance is provided on when to use this tool versus alternatives, nor any exclusions or prerequisites. The sibling tools list many related search tools, but the description does not help the agent decide when to pick this one.

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/MarcelRoozekrans/roslyn-codelens-mcp'

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