从文件生成合作草稿
import_cooperation_document仅导入用户提供的文件字节,不接受服务器路径或URL。返回有来源记录的PRIVATE+DRAFT供用户核对,不保存方案、不公开、不发送。支持PDF/PPT/PPTX/DOC/DOCX/TXT/MD,20MiB。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base64 | Yes | ||
| message | No | ||
| fileName | Yes |
import_cooperation_document仅导入用户提供的文件字节,不接受服务器路径或URL。返回有来源记录的PRIVATE+DRAFT供用户核对,不保存方案、不公开、不发送。支持PDF/PPT/PPTX/DOC/DOCX/TXT/MD,20MiB。
| Name | Required | Description | Default |
|---|---|---|---|
| base64 | Yes | ||
| message | No | ||
| fileName | Yes |
Changes observed during successful MCP inspections.
Input schema / properties / base64 / maxLengthPrevious value: -29360128New value: +27962028Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The annotations only convey read-only/world/idempotence/destructive hints; the description adds meaningful behavioral context: it returns a PRIVATE+DRAFT with source tracking, does not persist the plan, does not publish it, and does not send it. This goes beyond the structured hints without contradicting them.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single compact sentence front-loads the most decision-relevant constraint (user bytes only, no paths/URLs) before the supporting details of output visibility, formats, and size. Every clause earns its place and there is no boilerplate.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a three-parameter import tool with no output schema, the description covers input constraints, supported file types, size limit, output visibility, and absence of side effects. It stops short of explaining the fileName and message parameters or how exactly base64 should be encoded, but the core calling contract is well specified.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
It adds important constraint semantics for the file payload: supported formats (PDF/PPT/PPTX/DOC/DOCX/TXT/MD) and the 20MiB limit, and it clarifies that only user-provided bytes are accepted. However, with 0% schema description coverage, the description still leaves fileName and the optional message parameter undocumented, so it only partly compensates for the schema gap.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names a specific action and resource: importing a cooperation document from user-provided file bytes to generate a cooperation draft. It clearly differentiates scope by rejecting server paths/URLs and specifying output as PRIVATE+DRAFT, which separates it from URL-upload and sharing siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It explicitly states when to use: only when file bytes are supplied by the user, and it excludes server paths/URLs as inputs. It also clarifies output constraints (not saved/published/sent), but it does not name alternative tools or give a conditional routing rule beyond the file-bytes boundary.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.