Skip to main content
Glama
sevoniva

OceanBase MCP

by sevoniva

Generate Mapper Context

ob_generate_mapper_context

Generates read-only table and column context for MyBatis mappers, SQL files, or explicit tables to simplify database inspection.

Instructions

Generate read-only table and column context for a MyBatis mapper, SQL file, or explicit table.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlNo
lineNo
tableNo
formatNojson
schemaNo
profileNo
filePathNo
maxTablesNo
maxColumnsNo
Behavior3/5

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

The description explicitly states 'read-only', implying no side effects or mutations. However, with no annotations, it does not disclose additional behavioral traits like authentication requirements, rate limits, or what happens with invalid inputs. It is adequate but minimal.

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

Conciseness3/5

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

The description is very concise (one sentence) and front-loaded. However, given the complexity (9 parameters, 0% schema descriptions), the conciseness sacrifices necessary detail. It is not overly verbose, but lacks completeness.

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?

For a tool with 9 parameters, no output schema, and no annotation, the description is insufficient. It does not explain return format, parameter interactions, or how the 'context' is structured. The agent would lack critical information to use the tool correctly.

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%. The description mentions three input sources (mapper, SQL file, table) but does not map them to specific parameters (sql, filePath, table). Other parameters like line, maxTables, maxColumns, format, schema, profile are entirely unexplained, leaving the agent with no semantic guidance.

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

Purpose4/5

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

The description clearly states the tool generates 'read-only table and column context' for three types of input: MyBatis mapper, SQL file, or explicit table. The verb 'generate' and the resource are specific, but it does not differentiate from similar sibling tools like ob_get_table_context or ob_describe_table.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives. The context signals and sibling list show many related tools, but the description offers no criteria for selecting this tool, such as 'use for MyBatis mapper context specifically'.

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