Skip to main content
Glama

batch_get_bitable_records

Retrieve multiple records (up to 100) from Feishu Bitable multidimensional tables in a single operation using specified record IDs.

Instructions

    批量获取多维表格记录(最多100条)

    参数:
        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 main execution logic for the 'batch_get_bitable_records' tool. It uses the Lark API to batch retrieve records from a Bitable app table given app_token, table_id, and list of record_ids.
    @mcp.tool()
    @handle_feishu_error
    def batch_get_bitable_records(
        app_token: str, table_id: str, record_ids: list[str]
    ) -> str:
        """
        批量获取多维表格记录(最多100条)
    
        参数:
            app_token: 多维表格的token
            table_id: 数据表ID
            record_ids: 记录ID列表
    
        返回:
            记录信息
        """
        client = get_client()
        request = (
            BatchGetAppTableRecordRequest.builder()
            .app_token(app_token)
            .table_id(table_id)
            .request_body(
                lark.BatchGetAppTableRecordRequestBody.builder()
                .records(record_ids)
                .build()
            )
            .build()
        )
        response = client.bitable.v1.app_table_record.batch_get(request)
        return lark.JSON.marshal(response.data, indent=4)
  • Registration call for the bitable_record_tools, which includes the batch_get_bitable_records tool via decorator in the register function.
    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. It mentions the 100-record limit, which is useful behavioral context. However, it lacks critical details: authentication requirements, rate limits, error handling (e.g., what happens if some IDs are invalid), response format specifics, or whether it's idempotent. For a batch operation with zero annotation coverage, this is insufficient.

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 (purpose, parameters, return) and uses minimal sentences. Each part earns its place: the purpose statement includes the key constraint (100-record limit), and parameter/return sections are directly helpful. Slight room for improvement in flow, but overall efficient.

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 3 parameters with 0% schema coverage and an output schema exists (so return values are documented elsewhere), the description does an adequate job. It covers the purpose and parameters semantically. However, for a batch read tool with no annotations, it should ideally include more behavioral context like error handling or performance notes to be fully complete.

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 description coverage is 0%, so the description must compensate. It lists all three parameters with brief Chinese explanations that add meaning: 'app_token' as the table's token, 'table_id' as the data table ID, and 'record_ids' as a list of record IDs. This clarifies their roles beyond schema titles. However, it doesn't specify formats (e.g., ID length/pattern) or constraints beyond the implied array for record_ids.

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 get) and resource ('多维表格记录' = multi-dimensional table records), with the specific scope of '最多100条' (up to 100 records). It distinguishes from siblings like 'search_bitable_records' by focusing on retrieval by specific IDs rather than searching. However, it doesn't explicitly contrast with individual record retrieval tools.

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

Usage Guidelines3/5

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

The description implies usage when needing to fetch multiple records by their IDs (up to 100), but doesn't explicitly state when to use this versus alternatives like 'search_bitable_records' for filtering or individual get operations. No guidance on prerequisites, error conditions, or performance considerations is provided.

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