Skip to main content
Glama

create_wordcloud_from_file

Generate word cloud visualizations directly from document files (PDF, Word, TXT, MD) by extracting text and creating customizable visual representations with themes, shapes, and multiple output formats.

Instructions

从文档文件直接生成词云图(提取文字 + 生成词云图的组合操作)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filePathYes文档文件的路径
fileTypeYes文件类型
themeNo词云图主题色彩default
shapeNo词云图形状rectangle
wordGapNo文字间隙
fontSizeNo文字大小范围
angleRangeNo角度范围
angleStepNo角度步长
outputPathNo输出文件路径(支持绝对路径和相对路径)./wordcloud.svg
formatNo输出格式(svg、png、jpg、jpeg、webp)svg
backgroundColorNo背景颜色(十六进制颜色代码)#ffffff
qualityNoJPG/WEBP 格式的质量设置(1-100)
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions this is a '组合操作' (combined operation) but doesn't specify whether this creates files, modifies data, requires specific permissions, has rate limits, or what the output looks like. For a tool with 12 parameters that presumably generates files, this is insufficient behavioral context. The description doesn't contradict annotations (none exist), but fails to provide needed behavioral information.

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, efficient Chinese sentence that clearly states the core functionality. It's appropriately concise without being under-specified. The structure is front-loaded with the main purpose. While it could potentially include more context, what's present is well-structured and wastes no words.

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

Completeness2/5

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

Given the tool's complexity (12 parameters, nested objects, no output schema, and no annotations), the description is incomplete. It doesn't explain what the tool returns (presumably a file path or image data), doesn't mention error conditions, and provides no behavioral context for a tool that likely creates files. With rich input schema but no output schema and no annotations, the description should do more to help the agent understand the complete operation.

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 100%, so the schema already documents all 12 parameters thoroughly. The description adds no parameter-specific information beyond the general concept of generating word clouds from files. It doesn't explain parameter relationships, constraints, or provide additional semantic context. With complete schema coverage, the baseline is 3 even without parameter details in the description.

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 tool's purpose: '从文档文件直接生成词云图' (generate word cloud directly from document files) and specifies it's a combination operation of text extraction and word cloud generation. It distinguishes from sibling tools by mentioning this combined functionality, though it doesn't explicitly name the alternatives. The purpose is specific (verb+resource+scope) but could be more explicit about differentiation.

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 the sibling tools (extract_text_from_file and generate_wordcloud). It doesn't mention prerequisites, alternatives, or specific contexts where this combined operation is preferable to using the separate tools. The agent receives no usage guidance beyond the basic functionality description.

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/OnePieceLwc/word-cloud-mcp'

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