Skip to main content
Glama
Bytebase MCP

Bytebase MCP

Official

propose_database_change

Propose and run DDL/DML changes against a Bytebase database by submitting plain SQL; it creates the sheet, plan checks, and issue in one call.

Instructions

Run DDL/DML changes (ALTER TABLE, CREATE TABLE, INSERT, UPDATE, migrations) against a Bytebase database.

This is the primary tool for making database changes. Use this instead of manually calling CreateSheet/CreatePlan/CreateIssue via call_api.

Provide plain SQL — the tool handles database resolution, sheet creation, plan creation with automatic plan checks, and issue creation in one call. Optionally creates a rollout.

Parameter

Required

Description

database

Yes

Database name or substring

sql

Yes

SQL statement(s) in plain text (NOT base64)

title

Yes

Title for the issue/plan

instance

No

Workspace instance ID/name, or the full canonical name for a project instance

project

No

Project name or ID to narrow resolution

changeType

No

"MIGRATE" (default) or "SDL"

createRollout

No

If true, attempts rollout creation after issue

reason

No

Context or ticket reference (max 1000 chars)

Examples: propose_database_change(database="app", sql="ALTER TABLE users ADD COLUMN status VARCHAR(20)", title="Add status column") propose_database_change(database="app", sql="UPDATE orders SET status='shipped' WHERE id=42", title="Ship order 42", createRollout=true)

Notes:

  • It changes one database per call. For several databases in one plan, ask the user to use the Bytebase console or GitOps.

  • Plan checks run automatically; results included in response when available.

  • Requires bb.sheets.create, bb.plans.create, bb.issues.create permissions.

  • If createRollout=true but policy gates aren't satisfied, returns success with rolloutCreated=false and a reason.

  • nextAction AWAIT_HUMAN_APPROVAL means the issue waits for its approvers. If the user is one of them, decide_issue asks them to confirm in this client and then approves; otherwise share links.issue with an approver.

  • Masked data: a masked column reads back as "******". That is a placeholder, not a value anything holds. Any change containing it is refused, because writing it back would overwrite the real value. Ask a human to make the change in the Bytebase console instead.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "database": "<database>",
      "sql": "<sql>",
      "title": "<title>"
    },
    "name": "propose_database_change"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYes
titleYes
reasonNo
projectNo
databaseYes
instanceNo
changeTypeNo
createRolloutNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does it well: permissions required (bb.sheets.create, bb.plans.create, bb.issues.create), automatic plan checks, rollout policy-gate failure semantics (success with rolloutCreated=false), nextAction AWAIT_HUMAN_APPROVAL handling, and the masked-data refusal behavior. It stops short of describing idempotency or what happens to partially-created sheets/plans if a later step fails.

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

Conciseness4/5

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

Front-loaded with purpose and routing before the parameter table, and organized with tables, examples, and bullets that are easy to scan. It is long, but with 8 undocumented parameters and no annotations the length is largely justified; the masked-data note could arguably be condensed.

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

Completeness5/5

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

Complete for a high-stakes mutation tool: it covers the workflow stages performed internally, failure modes, approval flow, permission requirements, and the masked-value refusal. An agent has everything needed to call it correctly and to interpret the outcome, and no output schema exists to cover return values.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate, and it does with a complete parameter table covering all 8 params: defaults for changeType, the max-1000-char reason limit, the plain-text-not-base64 constraint on sql, and instance name resolution semantics. This adds substantial meaning well beyond the bare schema types.

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?

States a specific verb and resource ('Run DDL/DML changes... against a Bytebase database') and explicitly names what it is not: manual CreateSheet/CreatePlan/CreateIssue calls via call_api. An agent can distinguish it from call_api and query_database without opening any schema.

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

Usage Guidelines5/5

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

Explicitly says 'This is the primary tool for making database changes. Use this instead of manually calling...' and names the routing conditions: one database per call, multi-database work goes to the Bytebase console or GitOps, and createRollout=true only when policy gates are satisfied. Alternatives and exclusions are both stated.

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