Skip to main content
Glama
alexneargarder

unity-inspector-mcp

compile_script

Compile a C# script without running it. Returns compilation success/failure and any compiler errors. Useful for validating scripts before execution.

Instructions

Compile a C# script without running it. Returns compilation success/failure and any compiler errors. Useful for validating scripts before execution.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesScript name (from scripts/csharp/) or absolute file path to a .cs file

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/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 a key behavioral trait: the script is not executed. It also states the return content: compilation success/failure and compiler errors. It does not mention potential side effects like generated build artifacts, but the core behavior is disclosed clearly.

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 with no filler. The primary action and key distinction are front-loaded, followed by return behavior and usage guidance. Every sentence earns its place.

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?

For a single-parameter compile tool with no output schema, the description covers the purpose, behavior, return value, and usage context. It could be slightly more complete by mentioning side effects or explicitly routing away from execution tools, but it is largely adequate.

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?

The input schema has 100% coverage and already clearly describes the single `path` parameter as a script name or absolute file path. The description adds no parameter-specific meaning beyond the schema, so the baseline score of 3 is appropriate.

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 uses a specific verb and resource: 'Compile a C# script', and explicitly distinguishes itself from running tools by adding 'without running it'. This clearly differentiates it from sibling tools like execute_script or execute_code.

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 phrase 'Useful for validating scripts before execution' gives clear context for when to use the tool. It does not explicitly name alternatives or state when not to use it, so it falls short of a full 5.

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

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/alexneargarder/unity-inspector-mcp'

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