Skip to main content
Glama
ryuto-alt

DX12 Engine MCP Server

by ryuto-alt

レイキャスト

dx12_raycast
Read-only

Raycast from origin along direction to detect first hit body. Returns hit, distance, point, normal, entityId, name. Used for hit detection, wall detection, line-of-sight during gameplay.

Instructions

origin から direction 方向へ物理レイを飛ばし、最初にヒットしたボディを調べる。★Playing 中のみ意味のある結果(Editor 中は body 未登録なので hit=false)。{hit, distance?, point?, normal?, entityId?, name?}。normal は現状 常に up 方向の近似値(エンジンの既知の制約)。当たり判定確認・地面/壁の検出・ラインオブサイトの確認に。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
originYes[x,y,z] レイの始点。
directionYes[x,y,z] レイの方向(正規化不要。エンジン側で正規化される)。
maxDistanceNo最大距離(既定 1000)。

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultNoエンジンからの生の結果。実際の形は各ツールの説明 / dx12_describe_components を参照。text にも同内容を JSON 文字列で格納。
Behavior5/5

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

Beyond the readOnlyHint annotation, the description discloses that the normal is approximate and that the engine normalizes direction. These are important behavioral traits not obvious from annotations alone.

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 a single paragraph with no unnecessary words. It efficiently communicates purpose, limitations, and return format. Front-loaded with key information.

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

Completeness5/5

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

Given the tool's moderate complexity (3 parameters, no output schema), the description covers all important aspects: usage conditions, return fields with optionality, known limitations (normal approximation), and example use cases.

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

Parameters5/5

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

The input schema already covers all parameters with descriptions (100% coverage). The description adds value by noting that direction does not need to be normalized and that maxDistance defaults to 1000.

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 it fires a physics ray from origin in direction and checks the first hit body. This distinguishes it from sibling overlap tools. It also lists use cases.

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 explicitly warns that results are only meaningful during Playing, a key usage condition. It also provides example use cases (collision, ground/wall detection, line of sight). However, it does not directly compare to sibling tools (overlap_box/sphere) to guide selection.

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/ryuto-alt/dx12-mcp'

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