GetWorldTimeWeatherTool

class GetWorldTimeWeatherTool(server: MinecraftServer) : McpTool(source)

Server-side MCP tool that returns world time and weather state.

Constructors

Link copied to clipboard
constructor(server: MinecraftServer)

Properties

Link copied to clipboard
open override val description: String

Human-readable description of what this tool does.

Link copied to clipboard
open override val name: String

Tool name as exposed in the MCP tools/list response.

Functions

Link copied to clipboard
open override fun execute(arguments: JsonObject): JsonObject

Executes the tool with the given arguments and returns a result JSON.

Link copied to clipboard
open override fun inputSchema(): JsonObject

Returns the JSON Schema describing the tool's input parameters.