Skip to main content
Glama

find_obsolete_usage

Identifies all call sites referencing [Obsolete]-marked symbols in the .NET solution, grouped by deprecation message and severity to prioritize migration efforts. Flags both source and third-party NuGet deprecations.

Instructions

Find every call site referencing [Obsolete]-marked symbols in the solution, grouped by deprecation message and severity. Sharper than find_attribute_usages for migration-planning workflows: tells you 'we have 5 distinct deprecations pending; this one has 80 sites and is an error; that one has 3 sites and is a warning.' Includes both source-marked and metadata-marked obsoletes (third-party NuGet deprecations are surfaced too). Symbols with zero usages are omitted (no migration needed). Sort: errors first, then by usage count descending, then by symbol name. Test projects skipped. Project filter is case-insensitive.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectNoOptional: restrict to a single project by name (case-insensitive).
errorOnlyNoIf true, only [Obsolete(..., true)] error-level deprecations are returned. Default false.
Behavior5/5

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

No annotations are provided, so the description carries full burden. It discloses sorting order (errors first, then by usage count, then symbol name), omission of test projects, case-insensitive project filter, and inclusion of third-party NuGet deprecations. These details provide strong behavioral 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 a single paragraph of about five sentences, front-loading the main purpose and then adding relevant details. It is efficient but could be slightly more concise without losing clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (grouping, sorting, multiple obsolete sources), the description covers all key behaviors. No output schema is provided, but the description explains the output structure (grouped by message and severity with counts) sufficiently for an agent to understand what to expect.

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% and both parameters have clear descriptions in the input schema. The tool description does not add significant new meaning beyond stating that errorOnly returns error-level deprecations and the project filter is case-insensitive, which is already in the schema. Baseline 3 is appropriate.

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 verb 'Find', the resource 'call sites referencing [Obsolete]-marked symbols', and the grouping by deprecation message and severity. It also distinguishes itself from the sibling tool 'find_attribute_usages' by noting it is sharper for migration-planning workflows.

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

Usage Guidelines5/5

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

The description explicitly says when to use this tool ('Sharper than find_attribute_usages for migration-planning workflows') and what to expect (includes source- and metadata-marked obsoletes, omits zero usages and test projects). It implies when not to use by contrasting with find_attribute_usages.

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