Skip to main content
Glama
Bytebase MCP

Bytebase MCP

Official

set_just_in_time_access

Enable or disable just-in-time access for a Bytebase project so members can request time-boxed, one-off query permissions. Shows a confirmation form and applies the change only after you accept.

Instructions

Turn just-in-time access on or off for one Bytebase project. The user confirms the change in this client first.

Parameter

Required

Description

project

Yes

Project name, e.g. "projects/hr"

enabled

Yes

true to turn it on, false to turn it off

Just-in-time access lets members request access grants in the project: time-boxed permission to run one statement, for a one-off query. With it off, new requests are refused, and active grants stop applying until it is turned on again; they are not revoked.

The tool shows the user the change and asks them to confirm in a form. It changes the setting only when they accept; declining or cancelling changes nothing. A client that cannot show the form gets the project's settings link, to change it in the Bytebase console instead. Do not ask in chat first: the form is the question.

Changing it needs bb.projects.update, as in the console. This is the only way to change it over MCP; call_api refuses ProjectService/UpdateProject.

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": {
      "project": "<project>",
      "enabled": "<enabled>"
    },
    "name": "set_just_in_time_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
enabledYes
projectYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/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 so: it discloses the confirmation flow, that declining or cancelling is a no-op, the permission required (bb.projects.update), and the non-obvious side effect that active grants stop applying but are not revoked. This is exactly the context an agent cannot get from structured fields.

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 core action is front-loaded, and the confirmation semantics, side effects, and permission follow in a logical order. A markdown table for only two parameters is somewhat heavier than needed, but every line still conveys usable information.

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

Completeness4/5

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

For a two-parameter mutation tool with no output schema, the description covers preconditions, confirmation behavior, side effects, and failure fallback. The one gap is what the tool returns on success (for example a confirmation message or the updated setting), which an agent might want to report back.

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 does via a table that documents both parameters, gives a project name format example ('projects/hr'), and explains the boolean meaning. It stops short of clarifying whether a bare project ID is accepted, so the format guidance is slightly incomplete.

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 first sentence gives a specific verb pair and resource with explicit scope: 'Turn just-in-time access on or off for one Bytebase project.' It is immediately distinguishable from nearby tools, and the description later states it is the only MCP path for this change while call_api refuses ProjectService/UpdateProject.

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?

It states when to use it (any change to this setting over MCP), what not to do ('Do not ask in chat first: the form is the question'), and which alternative is blocked (call_api). It also gives a fallback path (settings link in the Bytebase console) for clients that cannot render the form.

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