Skip to main content
Glama

send_key

Send a single keyboard key event to a running Godot project, including modifier keys and press/release states.

Instructions

Send a single keyboard key event to a running interactive Godot project. Supports any key name recognized by Godot (e.g., "space", "a", "escape", "f1") and modifier keys. For sending multiple keys, prefer send_key_sequence — it processes all keys server-side in one round-trip with optional state/screenshot checkpoints. The project must be running via run_interactive.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
altNoHold Alt modifier. Default: false.
keyYesThe key name (e.g., "space", "a", "escape", "enter", "f1", "up", "down").
ctrlNoHold Ctrl modifier. Default: false.
metaNoHold Meta/Windows/Command modifier. Default: false.
shiftNoHold Shift modifier. Default: false.
pressedNoWhether the key is pressed (true) or released (false). Default: true.
Behavior4/5

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

The description adds context beyond the annotations by explaining that it supports any Godot-recognized key name, including modifiers, and that it sends a single key event. It also communicates the behavioral difference from send_key_sequence (server-side processing in one round-trip). However, it does not mention error handling or side effects, which would elevate transparency further.

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 concise and well-structured: it starts with the core action, then provides an alternative recommendation, and ends with a prerequisite. Each sentence earns its place with no redundant 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?

For a simple input-sending tool with 100% schema coverage and no output schema, the description is complete. It covers the tool's purpose, usage context, prerequisite, and alternative for multiple keys, sufficiently enabling an agent to decide when and how to invoke it.

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?

The schema already covers all 6 parameters with 100% description coverage. The description adds value by clarifying the key naming convention ('Supports any key name recognized by Godot') and confirming modifier key support, which goes beyond the generic schema descriptions.

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 tool's function: 'Send a single keyboard key event to a running interactive Godot project.' It uses a specific verb and resource, and it distinguishes itself from the sibling tool send_key_sequence by noting that for multiple keys, send_key_sequence should be preferred.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use this tool versus send_key_sequence, stating 'For sending multiple keys, prefer send_key_sequence.' It also specifies a prerequisite: 'The project must be running via run_interactive.' This clearly defines the applicable context.

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/Vollkorn-Games/godot-mcp'

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