Skip to main content
Glama

get_diagnostics

List compiler errors and warnings across the solution, optionally including analyzer diagnostics for trusted solutions.

Instructions

List compiler errors and warnings across the solution, optionally including analyzer diagnostics. Analyzer diagnostics require the solution to be trusted (see 'trust_solution'). Returns an envelope with items, totalCount, truncated, limit, and a severity summary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of items to return (default: 1000). Items are sorted severity-desc, then file, then line.
projectNoOptional project name filter
severityNoMinimum severity: 'error' or 'warning' (default: warning)
includeAnalyzersNoInclude analyzer diagnostics (default: false — requires trust_solution to be called first)
Behavior4/5

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

No annotations exist, so the description carries full burden. It discloses that results are sorted by severity descending, file, and line, and that the return envelope includes fields like totalCount, truncated, limit, and severity summary. It does not mention side effects or destructive behavior, which is appropriate for a read-only diagnostic tool.

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 sentences: the first conveys the core purpose, and the second provides essential usage context about trust and return format. No wasted words; every sentence is necessary and front-loaded.

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 no output schema, the description adequately explains the return envelope. It covers the prerequisite for analyzer diagnostics and the sorting behavior. For a tool with four well-documented parameters, the description is complete.

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% with descriptions for all parameters. The description adds value by explaining the return envelope structure (items, totalCount, truncated, limit, severity summary) and reiterating the trust requirement for analyzer diagnostics, which is not fully captured in the schema alone.

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 that the tool lists compiler errors and warnings, with an option to include analyzer diagnostics. It uses specific verb 'list' and resource 'compiler errors and warnings across the solution', which distinguishes it from sibling tools like get_project_health or analyze_method.

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 explicitly mentions that analyzer diagnostics require the solution to be trusted and directs users to 'trust_solution', providing clear context for when the includeAnalyzers parameter is usable. However, it does not specify when to use this tool over alternatives or provide when-not 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