Skip to content

Commit e624d69

Browse files
feat(mcp): guide agents to sqlkit tools for database access
Strengthen execute_query description so AI agents reach for sqlkit on any SQL data task (row counts, table contents, aggregations) instead of psql/mysql CLIs, and report results in the user's language (中文/English). Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
1 parent 1acf1b1 commit e624d69

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. 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.",
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).",
692692
handler: Arc::new(ExecuteQueryHandler),
693693
input_schema: json!({"type": "object", "properties": {
694694
"connection_id": connection_id_schema(),

0 commit comments

Comments
 (0)