Skip to main content
Glama

parse_source_content

Parse raw Markdown or text into structured content for template filling. Supports direct regex or LLM extraction, returning image prompts and recommended template slug.

Instructions

将原始 Markdown/正文解析为模板填充所需的结构化 content 对象。支持 direct(纯正则)和 llm(调 LLM 提取)两种模式。编排层调用此工具后,直接将返回的 content 传给 fill_placeholders。同时返回图片提示词和推荐的模板 slug。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo解析模式:direct=纯正则解析,llm=调 LLM 提取(需 llmConfig)
llmConfigNoLLM API 配置,仅 llm 模式需要
sourceTextYes原始 Markdown 或纯文本正文内容
templateSlugNo强制指定模板 slug;留空则自动推荐最匹配的模板
Behavior3/5

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

无注解,描述承担全部责任。解释了两种模式及llm模式配置要求,并列出输出项,但未说明错误处理、输入限制或副作用,行为透明度中等。

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?

两句话简洁明了,信息密度适中,但第二句话罗列输出项稍显密集,结构尚可。

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?

在无输出schema的情况下,说明了返回的结构化对象、图片提示词和推荐模板slug,并指明在编排中的角色(传递给fill_placeholders),对4参数工具较完整,但缺少错误处理描述。

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覆盖率100%,描述基本复述schema内容,对参数含义无显著补充(如sourceText仅重述‘原始Markdown或纯文本’),但额外说明templateSlug留空则自动推荐,略有增值。

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?

明确说明工具用于将原始Markdown/正文解析为结构化content对象,支持两种模式,并指出与fill_placeholders的衔接以及返回图片提示词和推荐模板slug,与兄弟工具区分度高。

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?

说明了调用时机(在fill_placeholders之前)和返回内容如何传递,但未明确说明不适合使用的情况或替代方案,仅提供基本使用导向。

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/SUSTechWLA/ppt-generator-mcp'

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