Skip to main content
Glama

create_bitable_record

Add a single record to a Feishu multidimensional table by specifying table ID and field values. This tool enables data entry into structured Bitable databases.

Instructions

    在多维表格中创建单条记录

    参数:
        app_token: 多维表格的token
        table_id: 数据表ID
        fields: 记录字段字典,例如 {"text_field": "值", "number_field": 123}

    返回:
        创建的记录信息
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_tokenYes
table_idYes
fieldsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • Core implementation of the 'create_bitable_record' tool handler. Creates a single record in a Feishu Bitable (multi-dimensional table) using the Lark_oapi client. Includes type hints serving as input schema and docstring documentation.
    @mcp.tool()
    @handle_feishu_error
    def create_bitable_record(app_token: str, table_id: str, fields: dict) -> str:
        """
        在多维表格中创建单条记录
    
        参数:
            app_token: 多维表格的token
            table_id: 数据表ID
            fields: 记录字段字典,例如 {"text_field": "值", "number_field": 123}
    
        返回:
            创建的记录信息
        """
        client = get_client()
        request = (
            CreateAppTableRecordRequest.builder()
            .app_token(app_token)
            .table_id(table_id)
            .request_body(lark.AppTableRecord.builder().fields(fields).build())
            .build()
        )
        response = client.bitable.v1.app_table_record.create(request)
        return lark.JSON.marshal(response.data, indent=4)
  • Top-level registration of the bitable_record_tools, which registers the 'create_bitable_record' tool among others, in the MCP server initialization.
    register_bitable_app_tools(mcp)
    register_bitable_record_tools(mcp)
  • The registration function that defines and registers the 'create_bitable_record' tool using @mcp.tool() decorator.
    def register_bitable_record_tools(mcp: FastMCP):
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states it creates a record but doesn't mention permissions required, whether it's idempotent, error handling, or rate limits. The description is minimal and doesn't provide adequate behavioral context for a mutation tool.

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 parameters and returns, and reasonably concise. However, the '返回' section could be more informative given it has an output schema, and some sentences could be more 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?

For a 3-parameter mutation tool with no annotations, the description is minimally adequate but has significant gaps. It covers basic purpose and parameters but lacks usage guidance, behavioral context, and comprehensive parameter semantics. The existence of an output schema helps, but overall completeness is limited.

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?

The description lists all three parameters with brief explanations and an example for 'fields', adding some semantic context beyond the schema. However, with 0% schema description coverage, this only partially compensates - it doesn't explain parameter formats, constraints, or provide comprehensive examples for 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 ('创建单条记录' - create a single record) and resource ('在多维表格中' - in a multi-dimensional table), making the purpose specific and understandable. However, it doesn't explicitly differentiate from sibling tools like 'batch_create_bitable_records' or 'create_bitable_app', which would be needed for a perfect score.

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. With multiple sibling tools available (e.g., batch_create_bitable_records, create_bitable_app, search_bitable_records), there's no mention of when this single-record creation is preferred over batch operations or other related tools.

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