Skip to main content
Glama

fetch_wecom_doc

Fetches Enterprise WeChat document content by URL and converts docs, mind maps, sheets, and smart sheets into Markdown, with row-range options and image links for embedded pictures.

Instructions

抓取企业微信文档内容并转为 Markdown。文档(doc)、脑图(mind)、表格(sheet)有专用解析,智能表格(smartsheet)按表格同源结构解析;文档、表格、智能表格和脑图中的图片会输出为 Markdown 图片链接;表格按工作表返回 Markdown 表格,默认最多输出 100 行数据,行数较多时用 rowStart/rowEnd 指定数据行区间(1 基,不含表头,表头行之后计起);幻灯片、流程图等类型暂无专用解析,会返回页面文本并标注来源。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "<url>"
    },
    "name": "fetch_wecom_doc"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes企业微信文档链接,如 https://doc.weixin.qq.com/doc/xxx
cookieNo可选,临时 Cookie。不传则使用已保存的 Cookie
rowEndNo可选,仅表格有效:结束数据行号(含)
rowStartNo可选,仅表格有效:起始数据行号(1 基,不含表头)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the default 100-row cap, how row ranges are counted, how images are emitted as Markdown links, and the degraded behavior for unsupported document types. It omits auth-failure behavior and any size/time limits for very large documents.

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?

Purpose is front-loaded and every clause carries information about parsing or output format. The dense single-paragraph, semicolon-chained structure makes it harder to scan than a short bulleted layout would be.

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

Completeness4/5

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

For a read-only fetch tool with no annotations and no output schema, the description covers return format, row pagination, image handling, and per-type parsing well enough to call it correctly. The remaining gap is the cookie/auth prerequisite, which is only implied by the schema.

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 coverage is 100%, so the schema already documents all four parameters including the 1-based, header-excluded row semantics. The description adds the useful default of 100 rows and the trigger condition for using the row range, but adds little else beyond the structured fields.

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?

States a specific verb and resource (抓取企业微信文档内容) plus the transformation (转为 Markdown), then enumerates per-type handling: doc, mind, sheet, smartsheet, and the fallback for slides/flowcharts. This clearly separates it from the auth-related siblings.

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?

Gives concrete conditional guidance: use rowStart/rowEnd when a sheet has many rows, and expect page text plus source annotation for unsupported types. It does not, however, state the prerequisite relationship with check_wecom_auth/set_wecom_cookie or what happens when no saved cookie exists.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools