Skip to main content
Glama

Find Overrides

find_overrides
Read-onlyIdempotent

Lists override-to-base method relationships for a given method name, showing which derived methods override a base and what each override targets.

Instructions

List the override-to-base relationships for methods of a given name - the class-inheritance counterpart to find_implementations (which covers interfaces). Each row pairs an overriding method with the nearest ancestor in its base-class chain that declares the virtual/abstract method it overrides: 'Derived.M(params) overrides Base'.

One call answers both 'who overrides this virtual/abstract method?' (impact, before you change a base method) and 'what does this override?' (comprehension). For a type's base and derived types use get_type_hierarchy; for the callers of a method use find_usages.

Returns a capped envelope: items (the rows, sorted), count, totalFound, truncated - at most 100 rows. Empty items means no method of that name is an override. When the overridden base is a BCL/framework virtual outside the solution (object.ToString, Stream.Dispose) the row reads '... overrides (external base)'; one a source generator wrote reads 'Derived.M(params) (generated) overrides Base'.

Types render in their DECLARATION FORM ('Strategy.M(...) overrides ResilienceStrategy', the render get_type_hierarchy uses), so a generic and a non-generic namesake stay separate rows, and a nested type follows its outer types ('Outer.Inner.M(...)'). A row carries no namespace: two same-named types that differ only by namespace collapse into one row, so read a row as the relationship, not as one attributed type; 'mergedNamesakes' names each such row and its types.

Read-only; works on a recalled session. A qualified methodName ('Widget.ToString') matches nothing. There is no type filter, and each overload is a row of its own. An empty answer carries 'nearest' when a close declared method name exists - for a qualified methodName the bare method name. A leading 'note' says an override in a Visual Basic or F# project is not listed, or that a name declared nowhere here may be declared there.

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": {
      "sessionId": "<sessionId>",
      "methodName": "<methodName>"
    },
    "name": "find_overrides"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYesThe session_id returned by analyze_solution. Also takes an absolute .sln/.slnx/.slnf path, analyzed on first use.
methodNameYesThe method's exact (case-sensitive) simple name, e.g. 'ToString' or 'Dispose'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.46513
    • changedInput schema / properties / sessionId / description
      Previous value: -"The session_id returned by analyze_solution."New value: +"The session_id returned by analyze_solution. Also takes an absolute .sln/.slnx/.slnf path, analyzed on first use."
  2. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description still adds real behavioral context beyond them: a 100-row cap, the truncated/totalFound envelope, '(external base)' and '(generated)' row markers, namespace collapsing with mergedNamesakes, and a 'note' for VB/F# projects. That is substantive disclosure, but the annotations already carry much of the burden, keeping this mid-range rather than top.

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?

Front-loaded with the core relationship and the sibling contrast, then organized into usage, return envelope, rendering caveats, and caveats. It is long and the middle paragraph is dense, but nearly every sentence carries operational information rather than filler.

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?

No output schema exists, and the description compensates fully by describing the envelope fields (items, count, totalFound, truncated), the 100-row cap, what an empty result means, and the 'nearest' suggestion field. Edge cases an agent would otherwise misread — external bases, generated methods, merged namesakes, VB/F# omissions — are all covered.

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 baseline is 3, but the description adds genuine meaning beyond the schema: methodName must be a simple name because a qualified name matches nothing, there is no type filter, and each overload is its own row. It also clarifies sessionId accepts a path and works on a recalled session. The overlap with the schema keeps it from a 5.

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?

States a specific verb and resource ('List the override-to-base relationships for methods of a given name') and immediately distinguishes itself from the nearest sibling by naming find_implementations as the interface counterpart. The row format ('Derived.M(params) overrides Base') makes the output shape concrete.

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?

Gives two explicit use cases (impact analysis before changing a base method, and comprehension of what a method overrides) and routes elsewhere by name: get_type_hierarchy for a type's base/derived types, find_usages for callers. Exclusions are stated too — no type filter, qualified methodName matches nothing.

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