Skip to main content
Glama

batch_delete_bitable_records

Delete multiple records from Feishu Bitable tables in bulk to manage data efficiently. Specify app token, table ID, and record IDs to remove selected entries.

Instructions

    批量删除多维表格记录

    参数:
        app_token: 多维表格的token
        table_id: 数据表ID
        record_ids: 要删除的记录ID列表

    返回:
        删除结果
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_tokenYes
table_idYes
record_idsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The handler function decorated with @mcp.tool() that implements the batch deletion of bitable records using the Feishu (Lark) API. It constructs a BatchDeleteAppTableRecordRequest and calls the API.
    @mcp.tool()
    @handle_feishu_error
    def batch_delete_bitable_records(
        app_token: str, table_id: str, record_ids: list[str]
    ) -> str:
        """
        批量删除多维表格记录
    
        参数:
            app_token: 多维表格的token
            table_id: 数据表ID
            record_ids: 要删除的记录ID列表
    
        返回:
            删除结果
        """
        client = get_client()
        request = (
            BatchDeleteAppTableRecordRequest.builder()
            .app_token(app_token)
            .table_id(table_id)
            .request_body(
                lark.BatchDeleteAppTableRecordRequestBody.builder()
                .records(record_ids)
                .build()
            )
            .build()
        )
        response = client.bitable.v1.app_table_record.batch_delete(request)
        return lark.JSON.marshal(response.data, indent=4)
  • Within the create_mcp_server function, this calls register_bitable_record_tools(mcp), which defines and registers the batch_delete_bitable_records tool via its @mcp.tool() decorator.
    # 注册多维表格工具
    register_bitable_app_tools(mcp)
    register_bitable_record_tools(mcp)
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states the tool performs batch deletion but doesn't mention critical aspects like whether deletions are permanent, require specific permissions, have rate limits, or affect related data. The phrase '删除结果' (deletion result) is vague and doesn't explain what the output contains (e.g., success/failure status, error details).

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 description is well-structured with clear sections for purpose, parameters, and return value. It uses bullet-like formatting in Chinese. However, the '返回' (return) section is overly vague ('删除结果' - deletion result) and could be more informative. Overall, it's appropriately sized with no redundant information.

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?

Given the tool's complexity (batch deletion with 3 parameters), no annotations, and an output schema (which should document return values), the description is moderately complete. It covers the basic purpose and parameters but lacks behavioral context (e.g., idempotency, error handling). The output schema existence reduces the need to detail return values, but the description should still guide usage relative to siblings.

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

Parameters3/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. It lists all three parameters (app_token, table_id, record_ids) with brief Chinese explanations that add basic meaning beyond the schema's English titles. However, it doesn't provide format details (e.g., token format, ID structure), constraints (e.g., max records in batch), or examples. The value added is minimal but covers all parameters.

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 clearly states the action ('批量删除' - batch delete) and resource ('多维表格记录' - bitable records). It distinguishes from siblings like batch_create_bitable_records and batch_update_bitable_records by specifying the delete operation. However, it doesn't explicitly differentiate from single-record deletion tools like update_bitable_record (which might include deletion).

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention when batch deletion is preferred over single-record deletion, nor does it reference sibling tools like batch_update_bitable_records (which might handle deletions differently) or create_bitable_record (for creation). No context about prerequisites or constraints is given.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ZYHB/yuppie-mcp-feishu'

If you have feedback or need assistance with the MCP directory API, please join our Discord server