Skip to main content
Glama

Test (structured)

dotnet_test

Runs .NET tests and returns structured pass/fail/skip counts plus concise failure messages, listing only failed tests instead of raw output.

Instructions

Run dotnet test and return structured results: pass/fail/skip counts, failure messages. Much more compact than raw test output. Only failures are listed.

Input Schema

NameRequiredDescriptionDefault
cwdNoRequired. Project root directory
filterNoTest filter expression (e.g. 'FullyQualifiedName~MyTest')
projectNoPath to .csproj or .sln file (default: auto-detected in cwd)

Output Schema

NameRequiredDescriptionDefault
totalYes
failedYes
passedYes
skippedYes
summaryYes
exitCodeYes
failuresYes
retainedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv5.0.1

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses output filtering ('Only failures are listed') and compactness, but omits execution traits such as timeouts, required SDK/build state, and possible side effects like build artifacts.

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?

Three short sentences, front-loaded with the action and return shape, and each sentence adds distinct value without repetition.

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?

An output schema exists, so return values need not be explained, but the description still summarizes them. It covers purpose and output filtering; only execution prerequisites and runtime characteristics are missing for an annotation-free runner.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents cwd, filter, and project. The description adds no parameter-level meaning beyond that; baseline 3 applies.

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?

States a specific action ('Run dotnet test') and the exact return shape (pass/fail/skip counts, failure messages), while contrasting it with raw test output. This clearly distinguishes it from generic test runners and sibling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implies it should be used for .NET test runs and that it is preferable to raw output, but gives no explicit when-to-use/when-not guidance relative to siblings like dotnet_build or npm_test, nor prerequisites such as build state.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.