Glider tool reference
Find a tool, then open its parameters, examples, and result notes. Choose a task
Status
server_status- Reports workspace readiness, load failures, cache state, and watcher activity.
Solution & Workspace
load- Loads a C# solution or project. File watches are enabled by default.
reload- Reloads the currently loaded solution/project from disk.
unload- Unloads the current in-memory workspace and stops file watching. Use before external builds or IDE work when you need Glider to release the loaded workspace.
sync- Refreshes existing workspace documents from disk without writing files. Use reload for project structure changes.
get_file_contents- Gets text content for a file under the loaded root, with optional line-window limits. Supports files outside the loaded C# project model when they are still inside the loaded root.
get_structure- Gets a C# outline with opaque symbolKey values for semantic tools. Select a declaration, then pass its key unchanged to get_symbol_info or find_references.
Unreleased semantic outline contract. Available in development builds.
write_file- Writes a .cs file under the loaded root, then updates or reloads the workspace. Set applyChanges=false for a preview that writes no file.
Diagnostics
get_diagnostics- Returns compiler diagnostics and optional analyzer diagnostics for the loaded C# workspace.
diagnostic_hotspots- Groups diagnostics into hotspots by file, project, category, or ID so you can plan cleanup before drilling into raw diagnostics.
Symbol Discovery
find_code- Recommended first-call router for code navigation. Starts with semantic symbol discovery by default, then routes to references, implementations, callers, hierarchy, file outline, or literal text search.
resolve_symbol- Quick lookup: resolves a name or pattern into candidate symbols with stable symbolKeys. Use when you already know the symbol name. Lightweight alternative to search_symbols.
search_symbols- Searches symbol index by name pattern (* and ? wildcards). Full-featured: namespace/accessibility filters, sorting, paging. Use for exploration or filtered/sorted results. Returns stable symbolKeys.
get_symbol_at_position- Resolves the symbol at an exact file position. Addressable symbols return an opaque key.
get_symbol_info- Gets detailed information about a symbol by its stable key (signature, docs, locations).
References & Relationships
find_unused_symbols- Finds likely-unused source symbols with zero non-self references. Skips generated code, overrides/interface implementations, and reflection-sensitive symbols by default.
find_unused_parameters- Finds likely-unused parameters with zero references inside their declaring method or constructor. Skips generated code and reflection-sensitive members by default.
find_references- Finds all references to a symbol. Requires a symbolKey (use resolve_symbol or search_symbols to get one). Supports scope/filtering/grouping/paging.
find_overrides- Finds overrides of a virtual/abstract member. Requires a symbolKey.
find_implementations- Finds implementations of an interface/abstract type or member. Requires a symbolKey.
Code Analysis
get_type_info- Gets detailed information about a type (members, inheritance, interfaces, docs, and location).
get_type_source- Gets source code for a type (bounded by max lines).
get_method_signature- Returns a method signature, parameters, documentation, and location.
get_method_source- Gets source code for a method (bounded by max lines).
Semantic & Text Search
semantic_query- Finds symbols by semantic predicates (kinds, name patterns, modifiers, parameter/return types, and attributes). Useful for queries like “async methods without CancellationToken”.
search_text- Searches loaded source documents, declared additional files, and analyzer configuration for literal or regex matches.
Type Hierarchy
get_type_hierarchy- Gets base types, interfaces, and derived types for a type. Requires a symbolKey.
get_derived_types- Finds derived types of a base type. Requires a symbolKey.
find_member_in_hierarchy- Walks a member's override chain to find the original declaration. Requires a symbolKey.
Call Graph & Impact
find_callers- Finds methods that call a given method. Requires a symbolKey.
get_outgoing_calls- Finds methods called by a given method's body. Requires a symbolKey. Supports depth-limited expansion and paging.
analyze_change_impact- Summarizes impact of changing a symbol (references, callers, implementations, overrides). Requires a symbolKey.
changed_symbols- Resolves changed line ranges to the declarations containing them, with symbol keys and a change classification. Start a review here.
get_cascade_impact- Expands analyze_change_impact transitively to show callers, implementations, and overrides up to a requested depth. Use it for bounded refactor planning before changing a symbol.
Refactoring
rename_symbol- Renames a C# symbol and its references across the loaded workspace.
move_type- Moves a type to another file or namespace and updates supported references.
move_member- Moves a member to another type and updates static type-qualified references.
replace_member- Replaces one C# member selected by its exact symbolKey.
Unreleased: available on main, but absent from Glider 11.0.0. Install a release that includes this tool before use.
replace_range- Replaces a nonempty contiguous range in a loaded C# document. Exact source guards reject stale edits. Use applyChanges=false for a preview. Prefer replace_member for complete member declarations.
Unreleased tool. Available in development builds after Glider 11.0.0.
add_member- Inserts a C# member into an existing type and returns a diff.
add_type- Creates a top-level C# type in a new file and returns a diff.
Code Fixes & Formatting
organize_usings- Organizes using directives in a C# file (sort + remove unused) and returns diff output.
format_document- Formats a C# document according to the project's formatting rules and returns diff output.
External Source
view_external_definition- Views source code for external symbols (NuGet/framework), via SourceLink or decompilation.
find_external_dependency_usages- Finds source usages of symbols that come from a referenced external assembly, keyed by assembly name or full metadata reference identity.
consolidate_package_version- Rewrites one package to a target version across supported PackageReference, packages.config, and legacy package-folder HintPath declarations. Set applyChanges=false for a preview diff.
find_package_consolidation_candidates- Groups PackageReference and packages.config declarations across the loaded workspace to highlight version drift, central package management adoption, and alignment candidates.
find_package_usages- Maps a NuGet package to compile assemblies and metadata reference identities, then summarizes semantic source usages of that package.
Architecture & Metrics
get_type_dependencies- Analyzes type dependencies (uses / used_by).
analyze_complexity- Analyzes cyclomatic complexity and size metrics. Select an exact member method or type with symbolKey, or use file and name filters.
get_project_graph- Analyzes the loaded workspace at the project-reference level. Returns direct edges, roots/leaves, transitive reachability, and cycle groups for architecture review.
get_project_format_summary- Summarizes loaded workspace project file formats and project kinds for SDK-style migration planning. Returns aggregate counts, optional filtered project details, and optional dependency layers.
find_unused_project_references- Tests each direct ProjectReference by removing it in memory and checking whether new compiler errors appear in the referencing project. Use it for compile-backed project cleanup planning.
Batching
batch- Runs multiple tool operations sequentially in one request.
Feedback
send_feedback- Sends abstract feedback and product facts as a public GitHub issue. Search open and closed Glider issues for a duplicate. Check the loaded root against the intended worktree and build configuration, then repeat the operation. Update and restart when practical; state any check you could not do. Include observed evidence when available. For an invented code example, supply evidence, run instructions, and invented files. Use preview first, show the complete public text to the user, and get explicit approval before sending.