Loading...
Loading...
Compare original and translation side by side
| Tool | Purpose |
|---|---|
| Explore database structure — schemas, tables, columns, indexes, procedures, functions |
| Run SQL statements against the database |
search_objects_prod_pgexecute_sql_staging_mysql| 工具 | 用途 |
|---|---|
| 探索数据库结构——架构、表、列、索引、存储过程、函数 |
| 在数据库上运行SQL语句 |
search_objects_prod_pgexecute_sql_staging_mysqlsearch_objects(object_type="schema", detail_level="names")publicdbosearch_objects(object_type="schema", detail_level="names")publicdbosearch_objects(object_type="table", schema="public", detail_level="names")search_objects(object_type="table", schema="public", pattern="%user%", detail_level="names")pattern%_detail_level="summary"search_objects(object_type="table", schema="public", detail_level="names")search_objects(object_type="table", schema="public", pattern="%user%", detail_level="names")pattern%_detail_level="summary"search_objects(object_type="column", schema="public", table="users", detail_level="full")search_objects(object_type="index", schema="public", table="users", detail_level="full")search_objects(object_type="column", schema="public", table="users", detail_level="full")search_objects(object_type="index", schema="public", table="users", detail_level="full")execute_sql(sql="SELECT id, email, created_at FROM public.users WHERE created_at > '2024-01-01' ORDER BY created_at DESC")execute_sql(sql="SELECT id, email, created_at FROM public.users WHERE created_at > '2024-01-01' ORDER BY created_at DESC")detail_levelsearch_objects| Level | What you get | When to use |
|---|---|---|
| Just object names | Browsing, finding the right table |
| Names + metadata (row count, column count, comments) | Choosing between similar tables, understanding data volume |
| Complete structure (columns with types, indexes, procedure definitions) | Before writing queries, understanding relationships |
namessummaryfulldetail_levelsearch_objects| 级别 | 内容 | 使用场景 |
|---|---|---|
| 仅返回对象名称 | 浏览查找、定位目标表 |
| 名称 + 元数据(行数、列数、注释) | 在相似表中做选择、了解数据量 |
| 完整结构(带类型的列、索引、存储过程定义) | 编写查询前、了解表间关系 |
namessummaryfull{tool}_{source_id}undefined{tool}_{source_id}undefined
In single-database setups, the tools are simply `search_objects` and `execute_sql` without any suffix. When the user mentions a specific database or environment, call the correspondingly named tool.
在单数据库配置中,工具名称就是`search_objects`和`execute_sql`,没有后缀。当用户提到特定数据库或环境时,调用对应名称的工具。search_objectsundefinedsearch_objectsundefinedundefinedundefinedsummaryfullsummaryfullfullfullsearch_objectsexecute_sql;search_objectsexecute_sql;search_objectsnamesfullexecute_sql_prod_pgexecute_sqlsearch_objectsnamesfullexecute_sql_prod_pgexecute_sql