Skip to main content

Module execute_tool

Module execute_tool 

Source
Expand description

The execute tool: runs a SQL query against the database and returns typed results. This is the primary tool exposed by the MCP server.

Structs§

ExecuteInput
The input parameters for the execute tool.
ExecuteOutput
The result of executing a SQL query.
ExecuteTool
Marker type for the execute tool. Implements SqliteServerTool to wire up the tool’s schema, handler, and routing. Stateless — all context comes from McpServerSqlite.
Row
A single row returned from a query, represented as a mapping of column names to their typed values.

Enums§

ExecuteError
Errors specific to the execute tool’s query preparation and result reading logic.
Value
A dynamically-typed SQLite value preserving the original column type. Serialized as a tagged enum with kind and value fields so that consumers can distinguish between types unambiguously.