Skip to main content
Glama

learn_workflow

Generate reusable YAML workflow templates by learning from natural language descriptions or past session records.

Instructions

从口头描述或历史 session 中学习工作流,生成可复用的 YAML 模板。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdYes任务 session 的工作目录绝对路径
nameYes模板名称,作为文件标识。如 phase5-audit
stepsNo直接提供的步骤数组,优先于 description
spec_docsNo项目规范文档路径列表
descriptionNo口头描述的工作流步骤。AI 应从自然语言描述中提取步骤序列并传入此字段,格式:'1. 第一步\n2. 第二步...' 或用换行分隔。
from_sessionNo从指定 session 的 IO 记录中提取用户 prompt 作为步骤。优先于 description 和 steps。
Behavior2/5

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

No annotations provided, so description bears full burden. It fails to disclose side effects (e.g., file creation, storage location), permissions needed, or whether it modifies state. Only states the abstract purpose.

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?

Single sentence is concise and front-loads key purpose. However, it is in Chinese, which may be less accessible for some AI agents, and could be slightly more structured.

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?

Description is adequate but incomplete: fails to explain where the YAML template is saved, output details, or precedence rules among parameters (though schema covers these). With 6 parameters and no output schema, more context is needed.

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 baseline 3 applies. The description adds no extra parameter semantics beyond what the schema already provides (e.g., precedence of steps/description/from_session is in schema but not in 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 learns workflows from verbal descriptions or historical sessions and generates reusable YAML templates. This distinguishes it from sibling tools like execute_workflow, but explicit differentiation is missing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use (learning workflows), but lacks explicit when-not-to-use or alternative references. Given many sibling tools, exclusion guidance would be helpful.

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/FirenzeClaw/kimi-session-orchestrator'

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