Skip to main content
Glama

roslyn:analyze_method

Analyze C# methods to get signature, callers, outgoing calls, and location information in one call for comprehensive code understanding.

Instructions

Get comprehensive method analysis in ONE CALL: signature + callers + outgoing calls + location.

USAGE: analyze_method("MyService", "ProcessData") or analyze_method("MyClass", "Calculate", includeCallers=true, includeOutgoingCalls=true)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNameYesContaining type name
methodNameYesMethod name
includeCallersNoInclude caller analysis (default: true)
includeOutgoingCallsNoInclude methods/properties this method calls (default: false)
maxCallersNoMax callers to return (default: 20)
maxOutgoingCallsNoMax outgoing calls to return (default: 50)
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 the tool provides 'comprehensive method analysis in ONE CALL', which implies it's a read-only operation that aggregates data, but doesn't disclose behavioral details like whether it requires a loaded solution, potential performance impact, error conditions, or what format the analysis returns. The description adds some context about what's included but lacks operational transparency.

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?

The description is efficiently structured in two sentences: first stating the purpose and scope, then providing concrete usage examples. Every sentence adds value, though the second sentence could be slightly more concise by not repeating the tool name. It's appropriately sized and front-loaded with the key information.

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 6-parameter analysis tool with no annotations and no output schema, the description is adequate but has clear gaps. It explains what the tool does and provides usage examples, but doesn't describe the return format, error handling, prerequisites (like needing a loaded solution), or performance characteristics. Given the complexity and lack of structured output documentation, more completeness would be helpful.

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 fully documents all 6 parameters. The description provides example usage that shows two required parameters and two optional boolean parameters, but doesn't add any meaning beyond what the schema provides (e.g., explaining relationships between parameters or typical values). With complete schema coverage, the baseline is 3.

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 explicitly states 'Get comprehensive method analysis in ONE CALL' and lists specific components: 'signature + callers + outgoing calls + location'. This clearly distinguishes it from sibling tools like 'get_method_signature', 'find_callers', and 'get_outgoing_calls' which provide individual pieces of analysis. The verb 'analyze' with the specific scope 'method' is precise and differentiated.

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 provides clear usage context with example calls ('analyze_method("MyService", "ProcessData")') and parameter guidance ('includeCallers=true, includeOutgoingCalls=true'). However, it doesn't explicitly state when to use this tool versus alternatives like combining 'get_method_signature', 'find_callers', and 'get_outgoing_calls' separately, or mention performance trade-offs of the 'ONE CALL' approach versus individual tools.

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/pzalutski-pixel/sharplens-mcp'

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