Skip to main content
Glama
AxonityAI

Axonity Flow MCP Server

Official
by AxonityAI

replace_workflow_document

Replace the entire workflow document atomically to apply comprehensive updates. Use after reading current version to avoid conflicts.

Instructions

Replace the ENTIRE workflow document in one atomic call. Read the workflow first to get the current version, then call this again only after rereading on a stale 409. Unlike apply_workflow_mutations, this is a single PUT and treats the payload as the complete editable document — prefer the mutation commands, which the backend validates and normalises per edit.

The response is the same SUMMARY (version, launchable, validationIssues, stepCount, edgeCount), not the stored document; pass returnDocument: true or call read_workflow for that.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe workflow's id.
documentYesThe complete workflow document object to persist.
returnDocumentNoInclude the full workflow document in the response. Defaults to false — a real document can exceed the response limit and turn a successful call into an error. Prefer read_workflow when you need it.
expectedVersionYesThe version you read before replacing the document.
Behavior5/5

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

No annotations given, so description carries full burden. Discloses atomic call, PUT behavior, response being summary not document, and explains returnDocument risks. Fills behavioral gaps completely.

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?

Well-structured with front-loaded core action (replace entire document). Four sentences covering key aspects without redundancy, though could be slightly more concise.

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?

Covers atomic operation, version control, alternatives, response summary fields, and returnDocument caveat. Missing output schema but description provides adequate return expectations for basic use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline 3. Description adds value beyond schema: explains document as 'complete', warns about returnDocument exceeding limits and suggests read_workflow, and contextually ties expectedVersion to prior read and 409 handling.

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?

Clearly states 'Replace the ENTIRE workflow document in one atomic call' using a specific verb and resource. Distinguishes from sibling 'apply_workflow_mutations' by noting this is a single PUT that treats payload as complete editable document.

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

Usage Guidelines5/5

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

Explicitly instructs to read workflow first for version, handle stale 409, and prefer mutation commands for validation. Provides clear when-to-use and when-not-to-use guidance.

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/AxonityAI/axonity-mcp'

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