Skip to content

Commit 7544574

Browse files
committed
chore: mcp description improvement
1 parent da9e2e9 commit 7544574

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src-tauri/src/capabilities

‎src-tauri/src/capabilities/sql.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ fn connection_id_schema() -> Value {
688688
pub fn register_sql_tools(reg: &mut CapabilityRegistry) {
689689
reg.register(Capability {
690690
name: "sqlkit__execute_query",
691-
description: "Execute a read-only SQL query (SELECT, SHOW, EXPLAIN) and return the result set. Use this whenever a task needs database data: row counts, table contents, aggregations, or data checks — instead of shelling out to psql/mysql CLI. Write statements (INSERT/UPDATE/MERGE), deletes (DELETE/TRUNCATE), and DDL (CREATE/ALTER/DROP) are rejected — use sqlkit__execute_write, sqlkit__execute_delete, or sqlkit__execute_ddl respectively. Report results in the user's language (中文/English).",
691+
description: "Execute a read-only SQL query (SELECT, SHOW, EXPLAIN) and return the result set with columns, types, rows, and execution time.\n\nUse when a task needs database data: row counts, table contents, aggregations, or data checks — instead of shelling out to psql/mysql CLI.\n\nExample: {\"sql\": \"SELECT COUNT(*) FROM users\"}.\n\nWrite statements (INSERT/UPDATE/MERGE), deletes (DELETE/TRUNCATE), and DDL (CREATE/ALTER/DROP) are rejected — use sqlkit__execute_write, sqlkit__execute_delete, or sqlkit__execute_ddl respectively.",
692692
handler: Arc::new(ExecuteQueryHandler),
693693
input_schema: json!({"type": "object", "properties": {
694694
"connection_id": connection_id_schema(),

0 commit comments

Comments
 (0)