Skip to main content
Glama

upload_bitable_attachment

Upload a file to a Bitable as an image or attachment. Returns a file_token to insert into record attachment fields.

Instructions

[Official API] Upload a file as a Bitable attachment (drive/v1/medias/upload_all with parent_type=bitable_image or bitable_file). Returns file_token suitable for writing into a Bitable Attachment-type field via batch_create/update_bitable_records (the field value should be [{file_token}]).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_tokenYesBitable app token (the bascn... or basc... id)
file_pathYesAbsolute path to the file on disk
kindNoWhether the attachment is an image (bitable_image) or a generic file (bitable_file). Default: file.
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the tool uploads a file (a write operation) and returns a file_token. It does not specify authorization needs or side effects, but for a file upload, the behavior is well-understood.

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 a single sentence with key technical details (API, return value, usage). It is front-loaded and efficient, but could be slightly more structured with separate sentences for purpose and usage.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite no output schema, the description explains the return value (file_token) and how to use it. It includes the API endpoint and parent_type parameterization. The context is complete for an agent to correctly invoke and process the tool.

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 description coverage is 100%, and the description adds value by explaining the 'kind' parameter (maps to parent_type values) and noting that file_path is an absolute path. It clarifies the relationship between parameters and the API call.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the purpose: uploading a file as a Bitable attachment, with the specific API endpoint and parent_type parameter. It distinguishes this from other upload tools (upload_drive_file, upload_file, upload_image) by targeting Bitable attachments.

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?

The description explains that the returned file_token is suitable for writing into Bitable Attachment-type fields, implying the usage context. It does not explicitly state when not to use this tool or mention alternatives, but the sibling list includes other upload tools, providing implicit differentiation.

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/EthanQC/feishu-user-plugin'

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