Skip to main content
Glama
Bytebase MCP

Bytebase MCP

Official

revoke_masking_exemption

Remove one member's masking exemption in a Bytebase project after client confirmation; other members and exemptions stay unchanged.

Instructions

Remove one member's masking exemption in a Bytebase project. The user confirms in this client first.

Parameter

Required

Description

project

Yes

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

member

Yes

The member as the policy lists it, e.g. "user:bob@example.com"

condition

Yes

The exemption's condition expression, exactly as OrgPolicyService/GetPolicy returns it for "{project}/policies/masking_exemption"; "" for an exemption with no condition

The member is removed from every exemption whose condition matches exactly; an exemption left with no member is removed. Other members and other exemptions stay as they are. The tool asks the user to confirm in a form, and writes only when they accept. A client that cannot show the form gets the project's masking exemption page.

The same permissions apply as in the console.

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>",
      "condition": "<condition>"
    },
    "name": "revoke_masking_exemption"
  }
}

Input Schema

NameRequiredDescriptionDefault
memberYes
projectYes
conditionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/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 well: it discloses that the member is stripped from every exemption whose condition matches exactly, that an exemption left empty is deleted, and that other members and exemptions are untouched. The one weak spot is 'the same permissions apply as in the console', which tells an agent nothing concrete about the authorization required.

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 destructive action and its scope are front-loaded in the first sentence, followed by the parameter table and then the behavioral consequences. The structure is easy to scan; the table adds some length but every row carries non-redundant 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 three-parameter mutation with no annotations and no output schema, the definition covers parameters, matching semantics, confirmation flow, and fallback well. It stops short of describing what the call returns or how a non-matching condition is reported, which an agent would want before invoking.

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 coverage is 0%, so the table is doing essential work: it gives the project name format ('projects/hr'), the member format ('user:bob@example.com'), and the precise provenance of the condition string ('exactly as OrgPolicyService/GetPolicy returns it', with "" for no condition). This is exactly the compensation a zero-coverage schema needs.

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 opening sentence names a specific verb and resource ('Remove one member's masking exemption') and scopes it to a single member in a Bytebase project. It never names the inverse sibling grant_masking_exemption, so the contrast with the add-exemption tool is left implicit rather than stated.

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 establishes the interactive prerequisite clearly: the user confirms in this client first, and a client that cannot render the form is redirected to the project's masking exemption page. What's missing is any explicit exclusion or routing advice, e.g. when to use grant_masking_exemption instead or what to do when the condition string doesn't match.

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