Static source inference · medium confidence · detected: Logging
Deprecated protocol patterns detected
Summary
Server presents 8 well-structured tools with mostly complete schemas and descriptions in Chinese. Tool naming follows verb_noun patterns (list_*, execute_*, describe_*, explain_*, profile_*) with clear action intent. All tools have documented input schemas with types. However, descriptions are inconsistently detailed, some are concise and clear (opengauss_list_tables: 13 chars), others are verbose but lack actionable guidance (opengauss_explain_query and opengauss_profile_query exceed recommended length). Error handling and recovery guidance are minimal, tools appear to return raw database errors without structured categorization. The write tool (opengauss_execute_write) implements thoughtful confirmation patterns to prevent destructive accidents, but this safeguard is not generalizable across the suite. Chinese descriptions may hinder LLM reasoning in English-first agent contexts.
Output schemas are completely undocumented. No tool specifies what fields, types, or structure clients should expect in responses. LLMs need to know what fields to expect so they can plan downstream tool calls and extract the right data.'
Error handling lacks recovery guidance. Tools do not specify how errors are categorized (retryable vs. fatal), what the LLM should do next, or what invalid inputs look like. A raw error code or stack trace gives the agent nothing to act on.'
Add comprehensive English descriptions to all tools (10 - 200 characters, optimized for LLM reasoning). Example for opengauss_list_tables: 'List all tables in the specified database schema. Use this to discover available tables before querying. Returns table names, schema, and row count. Required before calling describe_table or execute_query.'
Document the complete output schema for every tool. Use JSON Schema or inline descriptions specifying field names, types, and purposes. Example: 'Returns an array of {table_name: string, schema: string, row_count: number, size_bytes: number}.'
Add error handling guidance to all tool descriptions. Specify which errors are retryable (connection timeouts, lock timeouts) vs. user-fixable (invalid SQL syntax, permission denied) vs. fatal (database offline). Include recovery hints: 'If you receive a permission denied error, the configured user may lack SELECT privilege on the target schema. Verify credentials and schema configuration.'
Convert all enum-like constraints to JSON Schema enums. For opengauss_execute_query.query, add validation: 'Only SELECT, SHOW, DESCRIBE, EXPLAIN statements are allowed.' For opengauss_execute_write.confirm, define enum: ["i_confirm_write", "i_confirm_dangerous_operation"] and enforce in validation logic.
Document pagination behavior explicitly. For opengauss_list_connections and opengauss_list_slow_queries, add to descriptions: 'Results are limited to the specified limit parameter. If more results exist, set limit=50 and call multiple times with offset logic or next_cursor (if available) to retrieve all records. Specify the actual pagination mechanism in the description or response schema.'
Spec posture evidence
Inferred effective spec: 2025-06-18+.
Relies on Logging (deprecated) - log to stderr or use OpenTelemetry
Descriptions are in Chinese, which may not be parsed correctly by English-optimized LLM agents. Rubric DIMENSION 1.B emphasizes descriptions must be written 'as if prompt-engineering', in the agent's working language. opengauss_list_tables description is only 13 characters ('列出 openGauss 数据库中的所有表'), far below the recommended 10 - 1024 character range, and lacks context on when to use it.
Result capping and pagination not documented. opengauss_list_connections and opengauss_list_slow_queries accept 'limit' parameters but descriptions do not explain what happens when results exceed the limit, whether pagination is available, or how to retrieve remaining items.
opengauss_execute_query and opengauss_explain_query lack explicit enum constraints on SQL statement types. While descriptions state 'only allow SELECT/SHOW/DESCRIBE/EXPLAIN', there is no JSON Schema enum or validation. Free-form strings invite hallucinated values.'
opengauss_execute_write confirmation parameter relies on magic strings ('i_confirm_write', 'i_confirm_dangerous_operation') with no enum constraint or validation guidance. The descriptions reference these but don't use JSON Schema enums. LLMs may hallucinate alternative confirmation strings.
No documentation on what fields are returned by discovery tools (list_tables, describe_table, list_connections, list_slow_queries). Agents cannot plan downstream calls or extract IDs without knowing the response structure.
Add response chaining IDs. If opengauss_list_connections returns connection records, ensure each includes the connection_id, backend_pid, or unique identifier so agents can reference specific connections in follow-up calls if needed.
Implement structured error responses with actionable guidance. Instead of returning raw database errors, wrap them: {"error": "Invalid SQL syntax", "detail": "Syntax error at position 42", "recovery": "Check your SQL statement. Only SELECT/SHOW/DESCRIBE/EXPLAIN are allowed.", "retryable": false}.
Consider adding batch variants for common operations (e.g., describe_tables accepting an array of table names instead of requiring one call per table). This aligns with rubric pattern:tool-composition guidance on reducing round-trips.
Translate all descriptions, parameter names, and error messages to English to ensure LLM compatibility across diverse agent environments. Chinese descriptions may not be parsed consistently by English-optimized models.