Skip to main content
Glama
sevoniva

OceanBase MCP

by sevoniva

Generate Read-only Query Templates

ob_generate_query

Generate read-only SQL templates from table metadata filtered by policies, without executing the queries.

Instructions

Generate read-only SQL templates from policy-filtered table metadata without executing them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tableYes
schemaNo
maxRowsNo
profileNo
scenariosNo
maxColumnsNo
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the burden. It states read-only and no execution, which discloses the key behavioral trait (non-destructive). However, it lacks details on authentication, rate limits, or error behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence that is front-loaded with the key verb and resource, containing no fluff. Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has 6 parameters, no output schema, and no annotations. The description is insufficient: it does not explain what a 'SQL template' is, how to use 'scenarios', or the format of the generated output. For a tool of moderate complexity, this is incomplete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description adds no meaning to any of the 6 parameters. It does not explain the purpose or constraints of parameters like 'scenarios' or 'maxColumns', which are left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb (generate), resource (SQL templates), source (policy-filtered table metadata), and constraint (read-only, without execution). It distinguishes from siblings like ob_query (executes) and ob_get_table_ddl (returns DDL).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for generating templates without executing, but lacks explicit guidance on when to use this tool versus alternatives (e.g., ob_query for execution, ob_explain for plan). No exclusion or context is provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sevoniva/oceanbase-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server