database_mcp_sqlite/types.rs
1//! SQLite-specific MCP tool request types.
2//!
3//! Unlike `MySQL` and `PostgreSQL`, `SQLite` operates on a single file and
4//! has no database selection. These types omit the `database_name`
5//! field present in the shared server types.
6
7use rmcp::schemars;
8use rmcp::schemars::JsonSchema;
9use serde::Deserialize;
10
11/// Request to get a table's schema.
12#[derive(Debug, Default, Deserialize, JsonSchema)]
13pub struct GetTableSchemaRequest {
14 /// The table name to inspect. Use `list_tables` first to see available tables.
15 pub table_name: String,
16}
17
18/// Request for `read_query` and `write_query` tools.
19#[derive(Debug, Default, Deserialize, JsonSchema)]
20pub struct QueryRequest {
21 /// The SQL query to execute.
22 pub query: String,
23}