Skip to main content
Glama

batch_create_bitable_records

Add multiple records to Feishu Bitable tables in bulk operations, supporting up to 1000 entries per request for efficient data management.

Instructions

    批量创建多维表格记录(最多1000条)

    参数:
        app_token: 多维表格的token
        table_id: 数据表ID
        records: 记录列表,每条记录是一个fields字典

    返回:
        创建的记录信息
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_tokenYes
table_idYes
recordsYes

Implementation Reference

  • The core handler function for the 'batch_create_bitable_records' tool. It uses the Lark_oapi client to batch create records in a Bitable app table, with input parameters app_token, table_id, and records list.
    @mcp.tool()
    @handle_feishu_error
    def batch_create_bitable_records(
        app_token: str, table_id: str, records: list[dict]
    ) -> str:
        """
        批量创建多维表格记录(最多1000条)
    
        参数:
            app_token: 多维表格的token
            table_id: 数据表ID
            records: 记录列表,每条记录是一个fields字典
    
        返回:
            创建的记录信息
        """
        client = get_client()
        request = (
            BatchCreateAppTableRecordRequest.builder()
            .app_token(app_token)
            .table_id(table_id)
            .request_body(
                lark.BatchCreateAppTableRecordRequestBody.builder()
                .children(records)
                .build()
            )
            .build()
        )
        response = client.bitable.v1.app_table_record.batch_create(request)
        return lark.JSON.marshal(response.data, indent=4)
  • Top-level registration of bitable tools, including the call to register_bitable_record_tools(mcp) which defines and registers the batch_create_bitable_records tool.
    # 注册多维表格工具
    register_bitable_app_tools(mcp)
    register_bitable_record_tools(mcp)

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