Skip to main content
Glama

Execute C# in Tuanjie

execute_csharp_script
Destructive

Run inline C# or a .cs file to modify Tuanjie editor scenes, GameObjects, assets, and console through the Codely Bridge.

Instructions

Executes inline C# or an existing .cs file through the official Bridge. Provide script or script_path. This can mutate the project or editor state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scriptNo
summaryNo
script_pathNo
capture_logsNo
execution_modeNo
record_game_viewNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already mark the tool as read/write and destructive, but the description adds useful concrete context: 'This can mutate the project or editor state.' It also reveals the official Bridge execution path, which is behavior beyond what the structured annotations express.

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, each earning its place: the operation, the primary parameters, and the side-effect warning. It is front-loaded and contains no filler or redundant restatement of the title.

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

Completeness2/5

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

For a code-execution tool with 6 parameters, no output schema, and destructive annotations, three sentences are insufficient. It omits how logs are captured, what execution_mode editor/play changes, how record_game_view results are surfaced, and what output or response the agent should expect.

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

Parameters2/5

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

Schema description coverage is 0%, so the description needed to compensate by explaining the 6 parameters. It only clarifies that script or script_path should be provided; summary, capture_logs, execution_mode, and record_game_view are left entirely to name inference.

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 clear verb ('Executes'), a specific resource ('inline C# or an existing .cs file'), and the execution channel ('official Bridge'). This distinguishes it from siblings targeting shaders, assets, packages, or custom tools, and it explicitly names the two accepted input forms.

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

Usage Guidelines2/5

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

No guidance is given on when to use this tool versus unity_script, execute_custom_tool, or other siblings. The only directional advice is to provide script or script_path, which is invocation detail rather than usage-selection context.

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