Skip to main content
Glama
Bytebase MCP

Bytebase MCP

Official

grant_masking_exemption

Exempt a member from data masking in a Bytebase project, scoped to one database, schema, table, or columns, or to all databases. The client form confirms the exemption, expiry, and reason before it is written.

Instructions

Exempt one member from data masking in a Bytebase project, for one database (optionally one schema, table, or columns of one table) or for every database in the project. The user confirms the exemption in this client first.

Parameter

Required

Description

project

Yes

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

member

Yes

"user:{email}", "group:{email}", "serviceAccount:{email}" or "workloadIdentity:{email}"

database

One of

Database name, e.g. "instances/prod/databases/hr"; it must belong to the project

allDatabases

One of

true for every database in the project, current and future

schema

No

Narrow to one schema (needs database)

table

No

Narrow to one table (needs database)

columns

No

Narrow to these columns of the table, e.g. ["first_name", "last_name"] (needs table)

expireTime

No

RFC 3339 time the exemption ends, e.g. "2026-10-27T00:00:00Z"; without it, it does not expire

reason

No

Why, recorded with the exemption

An exemption is a standing policy change: the member bypasses the masking that applies to the covered data in query and export results, including masking set up later. It does not set up masking itself; administer_workspace changes the masking rules. For a one-off query, request an access grant instead with request_access_grant.

The tool adds one exemption and leaves every other entry as it is. For several columns of one table, pass them together in columns, so the user confirms once. It shows the user the member, the scope, the expiry and the effect, and asks them to confirm in a form; it writes only when they accept. A client that cannot show the form gets the project's masking exemption page, to grant it in the Bytebase console instead. Do not ask in chat first: the form is the question.

The same permissions apply as in the console. This and revoke_masking_exemption are the only ways to change exemptions over MCP; call_api refuses OrgPolicyService/UpdatePolicy.

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>",
      "member": "<member>"
    },
    "name": "grant_masking_exemption"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableNo
memberYes
reasonNo
schemaNo
columnsNo
projectYes
databaseNo
expireTimeNo
allDatabasesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and does so: it discloses that this is a standing policy change that also covers masking configured later, that it is additive (other entries are untouched), that a confirmation form is shown and nothing is written unless accepted, and that clients without form support get a console URL instead. It even flags the misleading pitfall that the form itself is the question and should not be preceded by a chat confirmation.

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 key behavior is front-loaded in the first two sentences and the supporting rules follow in a logical order, with the parameter reference table quarantined into one block. It is long, and the table's Required column partially restates the schema, but almost every sentence adds routing or behavioral information rather than filler.

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?

For a nine-parameter mutation tool with no annotations and no output schema, the definition covers everything an agent needs: scope semantics, expiry default, additive behavior, the human-confirmation gate, the fallback path, and the permission/authorization model. Return value documentation is not required since no output schema exists and the write-confirmation flow is described.

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 the parameter table does: it gives the project naming format ("projects/hr"), the four member identity prefixes, an example database path with the ownership constraint, the current-and-future semantics of allDatabases, the dependency of schema/table/columns on each other, an RFC 3339 expiry example plus the no-expiry default, and the purpose of reason.

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 opening sentence names a specific verb and resource (exempt one member from data masking) and spells out the scope levels: one database, or optionally one schema/table/columns, or all databases in the project. This distinguishes it immediately from revoke_masking_exemption and request_access_grant, which operate on the same domain.

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?

Explicit routing is provided on both sides: it states that masking rules themselves are changed by administer_workspace and that a one-off query should use request_access_grant instead, and it names revoke_masking_exemption as the symmetric operation. It also explains that call_api cannot do this (OrgPolicyService/UpdatePolicy is refused), closing the escape hatch an agent might otherwise try.

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