Skip to main content
Glama

get_code_fixes

Retrieve available code fixes for a specific diagnostic by providing diagnostic ID, file path, and line number. Returns structured edits that can be reviewed and applied.

Instructions

Get available code fixes for a specific diagnostic at a file location. Returns structured text edits that can be reviewed and applied. Returns an envelope with items sorted by title, totalCount, truncated, and limit (default 100).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lineYesLine number where the diagnostic occurs
limitNoMaximum number of items to return (default: 100). Items are sorted by title.
filePathYesFull path to the source file
diagnosticIdYesDiagnostic ID (e.g., 'CA1822', 'CS0168')
Behavior4/5

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

No annotations provided, so the description carries the burden. It discloses the return envelope structure (items, totalCount, truncated, limit) and the default limit of 100, and implies a read-only operation ('reviewed and applied').

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences: first states purpose, second explains return format. No unnecessary words, front-loaded with key information.

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

Completeness4/5

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

The tool has 4 parameters and no output schema, so the description compensates by detailing the envelope structure. However, it omits prerequisites (e.g., solution must be loaded) and error conditions. Adequate but not exhaustive.

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 description coverage is 100% (all 4 parameters described). The description adds minor value by mentioning sorting by title and default limit, slightly augmenting the schema. Baseline 3 is exceeded.

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 'Get available code fixes for a specific diagnostic at a file location' uses a specific verb and resource, clearly distinguishing from sibling tools like get_code_actions which handle other code actions.

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 implies usage after identifying a diagnostic at a file location, but does not explicitly state when to use this over alternatives. It provides clear context but lacks exclusion guidance.

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