Skip to main content
Glama

feishu_sheet

Create, read, update, find, and export Feishu/Lark spreadsheets directly through API calls. Manage spreadsheet data programmatically for automation and integration workflows.

Instructions

【以用户身份】飞书电子表格工具。支持创建、读写、查找、导出电子表格。

电子表格(Sheets)类似 Excel/Google Sheets,与多维表格(Bitable/Airtable)是不同产品。

所有 action(除 create 外)均支持传入 url 或 spreadsheet_token,工具会自动解析。支持知识库 wiki URL,自动解析为电子表格 token。

Actions:

  • info:获取表格信息 + 全部工作表列表(一次调用替代 get_info + list_sheets)

  • read:读取数据。不填 range 自动读取第一个工作表全部数据

  • write:覆盖写入,高危,请谨慎使用该操作。不填 range 自动写入第一个工作表(从 A1 开始)

  • append:在已有数据末尾追加行

  • find:在工作表中查找单元格

  • create:创建电子表格。支持带 headers + data 一步创建含数据的表格

  • export:导出为 xlsx 或 csv(csv 必须指定 sheet_id)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
urlNo电子表格 URL,例如 https://xxx.feishu.cn/sheets/TOKEN 或 https://xxx.feishu.cn/wiki/TOKEN(与 spreadsheet_token 二选一)
spreadsheet_tokenNo电子表格 token(与 url 二选一)
rangeNo读取范围(可选)。格式:<sheetId>!A1:D10 或 <sheetId>(sheetId 通过 info 获取)。不填则自动读取第一个工作表全部数据
sheet_idNo工作表 ID(可选)。仅当不提供 range 时生效,指定要读取的工作表。不填则读取第一个工作表
value_render_optionNo值渲染方式:ToString(默认)、FormattedValue(按格式)、Formula(公式)、UnformattedValue(原始值)
valuesNo二维数组,每个元素是一行。例如 [["姓名","年龄"],["张三",25]]
findNo查找内容(字符串或正则表达式)
match_caseNo是否区分大小写(默认 true)
match_entire_cellNo是否完全匹配整个单元格(默认 false)
search_by_regexNo是否使用正则表达式(默认 false)
include_formulasNo是否搜索公式(默认 false)
titleNo电子表格标题
folder_tokenNo文件夹 token(可选)。不填时创建到「我的空间」根目录
headersNo表头列名(可选)。例如 ["姓名", "部门", "入职日期"]。提供后会写入第一行
dataNo初始数据(可选)。二维数组,写在表头之后。例如 [["张三", "工程", "2026-01-01"]]
file_extensionNo导出格式:xlsx 或 csv
output_pathNo本地保存路径(含文件名)。不填则只返回文件信息
Behavior4/5

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

With no annotations provided, the description carries full burden and does well by disclosing key behavioral traits: it warns that write is '高危,请谨慎使用' (high-risk, use cautiously), explains automatic parsing of URLs/tokens for all actions except create, describes default behaviors (e.g., no range reads first sheet entirely), and notes export format constraints. It doesn't cover rate limits, authentication needs, or detailed error handling, but provides substantial operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized but not optimally structured: it starts with a general statement, then a product comparison, then action details. Some sentences are redundant (e.g., range info repeated). While informative, it could be more front-loaded with core purpose and key warnings, and some details could be trimmed or integrated more efficiently.

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 (18 parameters, no output schema, no annotations), the description is moderately complete. It covers core actions, warnings, and some defaults, but lacks details on return values, error cases, authentication requirements, and comprehensive usage scenarios. It compensates somewhat for the lack of annotations but doesn't fully address all contextual gaps for a multi-action tool.

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 high at 94%, so the baseline is 3. The description adds some value by clarifying parameter usage in context (e.g., URL vs spreadsheet_token parsing, range defaults, sheet_id for csv export), but doesn't extensively explain semantics beyond what the schema descriptions already cover for most parameters.

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 tool's purpose as a Feishu spreadsheet tool supporting create, read/write, find, and export operations. It explicitly distinguishes from sibling tools by noting that spreadsheets are different from bitable/airtable products, and lists 7 specific actions with brief explanations, making the purpose highly specific and differentiated.

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 provides clear context about when to use certain features (e.g., '除 create 外' for URL parsing, 'csv 必须指定 sheet_id' for export), and distinguishes spreadsheets from bitables. However, it doesn't explicitly state when to choose this tool over sibling tools like feishu_bitable_app or feishu_drive_file, missing explicit alternatives or exclusions.

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/WilliamMo101/lark-hermes-mcp'

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