Skip to main content
Glama

update_draft

Create a new workflow version from source code.

Built-in imports (no install needed): Integrations — Bun: import { integration } from '@velane/integrations' Python: from velane.integrations import integration AI agents — Bun: Mastra — import { Agent } from '@mastra/core/agent' Python: LangGraph — from langgraph.graph import StateGraph

For chat/tool-using/LLM agent workflows you MUST use Mastra or LangGraph. Call get_agent_framework_docs before writing agent code. Do not hand-roll custom agent loops.

Call list_connections / get_integration_docs for OAuth provider APIs. For agent workflows set higher limits via timeout_ms, max_memory_mb (e.g. 512), max_cpu_percent.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
snippet_idNoDeprecated alias for workflow_id.
timeout_msNo
workflow_idYesWorkflow ID.
input_schemaNo
max_memory_mbNo
output_schemaNo
max_cpu_percentNo

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden. It discloses the core side effect (creating a workflow version), notes that imports are built-in, and warns against hand-rolling agent loops. Still, it does not say whether an existing draft is overwritten or appended, what the response contains, or what happens on invalid source code, which are important details for a mutation tool.

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 front-loaded with the core purpose, then organized into clear sections for imports, agent-framework requirements, OAuth guidance, and resource limits. It is longer than a one-liner but every block serves a distinct purpose; the only minor issue is that some guidance could be folded into parameter descriptions.

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?

This is a fairly complex code-generation tool with 8 parameters, no output schema, and no annotations, yet the description is silent about return values, how the new version relates to existing drafts, and the purpose of input_schema/output_schema. The coding guidance is useful, but an agent still lacks key information needed to confidently invoke and verify the result.

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 only 25%, so the description must compensate. It does add meaning for code ('source code'), timeout_ms, max_memory_mb, and max_cpu_percent ('set higher limits' for agent workflows). However, input_schema and output_schema receive no explanation, and defaults/units for the resource limits are missing, so the compensation is only partial.

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 opening line, 'Create a new workflow version from source code,' is a specific verb+resource statement: it tells the agent this tool turns source code into a workflow version. However, it does not distinguish update_draft from the sibling create_workflow or publish_workflow, so there is no explicit differentiation.

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 gives strong usage context: it mandates Mastra or LangGraph for chat/tool-using/LLM agent workflows, tells the agent to call get_agent_framework_docs before writing agent code, and points to list_connections/get_integration_docs for OAuth APIs. But it never says when to prefer update_draft over create_workflow or publish_workflow, so the tool-selection guidance is incomplete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

B3.2/5.0
Disambiguation5/5

Every tool has a clearly distinct purpose: workflow lifecycle, invocation, logging, metrics, KV store, secrets, connections, and documentation. Even similar tools like get_logs vs get_invocation are well-differentiated by descriptions.

Naming Consistency4/5

Most tools follow a consistent verb_noun pattern (create_workflow, get_workflow, list_workflows). The KV tools (kv_get, kv_set, kv_list, kv_delete) are internally consistent but deviate from the dominant verb_noun style by using a noun_verb prefix.

Tool Count4/5

With 18 tools, the count is slightly above the typical 3-15 range, but the broad platform scope (workflow management, invocation, logging, metrics, KV, secrets, connections, docs) justifies each tool's existence. No tool feels redundant.

Completeness3/5

Workflows have create, read, update (via update_draft), list, and publish, but lack a delete operation. Secrets support create and list but no delete/update, and connections only have list. These lifecycle gaps create potential dead ends for agents.

Resources