Skip to main content
Glama

workflow_import

Import workflow template bundles with integrity verification, schema validation, and conflict rejection to guarantee safe and consistent deployment.

Instructions

workflow 模板导入(G1 三闸 fail-closed):结构闸(manifest + 必要件 + sha256 完整性核对)→ schema 校验门(zod 结构 + 可见性枚举 + cron 语法,与 CRUD 同门)→ 落地闸(冲突拒绝)。跨企业包检出 private/result-only 节点整包拒绝(G6 加固)。血缘回流(import 事件 + 祖先链接入)+ 本体合并(本地优先)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actorNo执行者(审计留痕)
ownerNo落地 owner(trunk 直改权持有人——缺省 actor)
bundleYes导出包整体(workflow_export 返回的 bundle 对象——manifest + workflow.yml + 伴生件)
imported_asNo落地 workflow id(缺省 = 源 id + '-imported')

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.4.9

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden, and it does so thoroughly: it discloses the three fail-closed validation gates, SHA-256 integrity checking, conflict rejection, cross-enterprise package rejection for private/result-only nodes, and side effects such as lineage backflow and ontology merging. This is far beyond the minimum.

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 information-dense and front-loads the core purpose before the validation flow. It could be improved with bullet points or separation of 'when to use' from 'behavior', and the G1/G6 codes assume internal knowledge, but there is no wasted prose.

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 complex import tool with no annotations and no output schema, the description covers validation, security restrictions, conflict behavior, and side effects, which is strong. It does not describe the success return payload or explicit prerequisites beyond what the schema's owner parameter implies, but the agent has enough to invoke it correctly.

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?

The input schema already documents all four parameters with 100% coverage, so the baseline is 3. The prose adds general validation context but does not add per-parameter meaning beyond what the schema descriptions already provide.

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?

The description opens with 'workflow 模板导入' and specifies a precise resource (workflow templates) and action (import), then gives a concrete validation pipeline. It also ties the input bundle to workflow_export in the schema, which distinguishes it from creation/update siblings.

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 intended use—importing an exported workflow bundle—is implied by the input schema and the phrase 'workflow 模板导入', so an agent can infer a use case. However, it never states when to prefer it over alternatives like workflow_create/workflow_update, nor does it list exclusions beyond conflict rejection.

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