Skip to main content
Glama

Serena

by oraios

find_referencing_symbols

Identify symbols referencing a specified symbol in code, returning metadata and code snippets. Use to locate direct subclasses or other references efficiently in large codebases.

Instructions

Finds symbols that reference the symbol at the given name_path. The result will contain metadata about the referencing symbols as well as a short code snippet around the reference (unless include_body is True, then the short snippet will be omitted). Note that among other kinds of references, this function can be used to find (direct) subclasses of a class, as subclasses are referencing symbols that have the kind class. Returns a list of JSON objects with the symbols referencing the requested symbol.

Input Schema

NameRequiredDescriptionDefault
exclude_kindsNoSame as in the `find_symbol` tool.
include_kindsNoSame as in the `find_symbol` tool.
max_answer_charsNoSame as in the `find_symbol` tool.
name_pathYesFor finding the symbol to find references for, same logic as in the `find_symbol` tool.
relative_pathYesThe relative path to the file containing the symbol for which to find references. Note that here you can't pass a directory but must pass a file.

Input Schema (JSON Schema)

{ "properties": { "exclude_kinds": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "Same as in the `find_symbol` tool.", "title": "Exclude Kinds" }, "include_kinds": { "anyOf": [ { "items": { "type": "integer" }, "type": "array" }, { "type": "null" } ], "default": null, "description": "Same as in the `find_symbol` tool.", "title": "Include Kinds" }, "max_answer_chars": { "default": 200000, "description": "Same as in the `find_symbol` tool.", "title": "Max Answer Chars", "type": "integer" }, "name_path": { "description": "For finding the symbol to find references for, same logic as in the `find_symbol` tool.", "title": "Name Path", "type": "string" }, "relative_path": { "description": "The relative path to the file containing the symbol for which to find references.\nNote that here you can't pass a directory but must pass a file.", "title": "Relative Path", "type": "string" } }, "required": [ "name_path", "relative_path" ], "title": "applyArguments", "type": "object" }

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/oraios/serena'

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