Skip to main content
Glama
JSungMin

vs-token-safer

diagnostics

Scan source files for compiler and linter errors and warnings, returning a token-capped, sorted summary with counts.

Instructions

Compiler/linter errors + warnings (semantic, via the language server) → a token-capped file:line:col severity [code]: message list, sorted error→hint with a count summary. The compact alternative to reading raw build/compiler output. Read-only; empty = clean. Default scope is ONE file (path); scope="directory" scans the project (a bounded set of code files — see VTS_DIAG_DIR_MAX).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoSource file to check (or, with scope=directory, the subdirectory to scan; default = project root).
scopeNo`file` (default) checks one `path`; `directory` scans the project for errors/warnings across files.
projectPathNoProject root (cwd).
backendNoBackend override; auto-detected.
maxResultsNoMax diagnostics returned (default 60).
Behavior4/5

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

Discloses read-only nature, empty means clean, token-capped output, sorting order, and directory scanning limit (VTS_DIAG_DIR_MAX). No annotations provided, so description carries full burden.

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 efficiently convey purpose, format, scope, and constraints. Front-loaded with actionable 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?

Covers all key aspects: output format, scope behavior, parameter defaults, and limits. Lacks output schema but describes format adequately.

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%, but description adds meaningful context: explains scope='directory' behavior, default path resolution, backend auto-detection, and maxResults default.

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 explicitly states it returns 'compiler/linter errors + warnings' in a structured format, clearly distinguishing it from raw build output and sibling tools like 'search_text'.

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?

Describes when to use it ('compact alternative to reading raw build/compiler output') and explains scope options, but does not provide explicit when-not-to-use guidance or contrast with other diagnostic-related siblings.

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/JSungMin/vs-token-safer'

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