Skip to main content
Glama
Bytebase MCP

Bytebase MCP

Official

call_api

Executes a Bytebase API operation to query databases or propose changes using an operationId and optional JSON body; first use search_api to retrieve the operation schema.

Instructions

Execute a Bytebase API endpoint. Use search_api first to get operationId and schema.

Parameter

Required

Description

operationId

Yes

e.g., "SQLService/Query"

body

No

JSON request body

Resource names: Preserve the exact canonical name returned by SearchDatabases or ListDatabases: instances/prod/databases/main for a workspace instance, or projects/my-project/instances/prod/databases/main for a project instance.

Example: call_api(operationId="SQLService/Query", body={"name": "projects/my-project/instances/i/databases/db", "statement": "SELECT 1"})

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": {
      "operationId": "<operationId>"
    },
    "name": "call_api"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo
operationIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It does disclose the two-step mechanism (discover via search_api, then execute with operationId + body), which is real context, but it never states that this can invoke mutating endpoints, what permissions are required, whether operations are reversible, or how failures surface — significant omissions for a tool that can execute arbitrary API calls.

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?

The front-loaded first sentence and the bolded search_api prerequisite put the most actionable information first, and the table and example are efficient for the amount of information conveyed. The resource-name caveat is relevant but slightly buried after the parameter table, which is the only structural weakness.

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

Completeness3/5

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

For a generic endpoint dispatcher with two params and no output schema, the definition covers the invocation path well (discovery, parameter shape, resource naming, example). It is incomplete on the return side — nothing about response shape, pagination, or error semantics — and gives no signal about which endpoints are safe to call, which matters most for a catch-all tool with no annotations.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate, and it largely does: a table documents both parameters with required/optional status, the operationId example shows the exact 'Service/Method' format, and the canonical resource-name rules (instances/prod/databases/main vs projects/my-project/instances/...) plus a worked call example add meaning well beyond the bare schema.

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 states a specific verb and resource: 'Execute a Bytebase API endpoint', with the operationId example 'SQLService/Query' clarifying that this is a generic dispatcher over Bytebase's service. It is clearly distinguishable from concrete siblings like query_database because it routes through search_api for the operation definition, though it does not explicitly say why one would pick this over a purpose-built sibling.

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

Usage Guidelines4/5

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

It gives an explicit prerequisite: 'Use search_api first to get operationId and schema', which is the critical when-to-use condition for a generic dispatcher. It stops short of exclusions (e.g., preferring query_database or propose_database_change for common operations), so an agent must infer that this is the escape hatch rather than the default.

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