Skip to main content
Glama

roslyn:organize_usings_batch

Organize using directives across multiple C# files in a project using file pattern filtering. Preview changes before applying them to ensure proper organization.

Instructions

Organize using directives for multiple files in a project. Supports file pattern filtering (e.g., '.cs', 'Services/.cs'). PREVIEW mode by default - set preview=false to apply changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectNameNoOptional: Project name to process. If omitted, processes all projects in solution.
filePatternNoOptional: Glob pattern to filter files (e.g., '*.cs', 'Services/*.cs', '*Repository.cs'). Matches against file names, not full paths.
previewNoPreview mode (default: true). Set to false to apply changes to disk. ALWAYS preview first!
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses key behavioral traits: it's a mutation tool (implied by 'apply changes'), has a preview mode by default, and warns to preview first. However, it lacks details on permissions, error handling, or what 'organize' entails (e.g., sorting, removing unused). This is adequate but has gaps for a tool that modifies files.

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?

The description is two sentences, front-loaded with the core purpose and followed by critical usage guidance. Every word earns its place—no fluff, clear and efficient.

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

Completeness3/5

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

Given no annotations and no output schema, the description is moderately complete. It covers the tool's purpose, key parameters, and a safety warning, but as a mutation tool, it lacks details on side effects, return values, or error conditions. This is the minimum viable for a batch operation with file modifications.

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%, so the baseline is 3. The description adds value by explaining the file pattern filtering with examples ('*.cs', 'Services/*.cs') and emphasizing the preview mode's default and importance ('ALWAYS preview first!'), which enhances understanding beyond the schema. It doesn't cover all parameters deeply, but the added context justifies a score above baseline.

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 the verb ('organize') and resource ('using directives for multiple files in a project'), distinguishing it from the sibling 'organize_usings' which presumably handles single files. It specifies batch processing with file pattern filtering, making the purpose specific and differentiated.

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 provides clear context for when to use it (for organizing using directives across multiple files with pattern filtering) and includes a practical guideline to 'ALWAYS preview first!' in the parameter semantics. However, it does not explicitly state when not to use it or mention alternatives like the single-file 'organize_usings' tool.

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/pzalutski-pixel/sharplens-mcp'

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