Skip to main content
Glama

migrate_v1_to_v2

Upgrade flytekit V1 Python code to flyte-sdk V2 syntax, providing transformed code and a list of changes with warnings for manual review.

Instructions

Rewrite flytekit V1 Python code into flyte-sdk V2 syntax.

Returns the transformed code plus a list of applied changes and warnings about patterns that need manual review.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It discloses the transformation and return of warnings, but fails to mention side effects (e.g., the original code is not modified), limitations (e.g., only works on Python, specific patterns), or any error behavior. This leaves significant gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, directly front-loaded with the action and outcome. Every sentence adds value, with no redundancy or filler.

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 migration tool with one parameter and no output schema, the description covers input, output, and caveats (warnings for manual review). It lacks details on error handling or multi-file support, but is reasonably complete given the tool's simplicity.

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?

With 0% schema description coverage, the description must compensate. It specifies the 'code' parameter as 'flytekit V1 Python code', adding meaning beyond just 'code'. However, it does not discuss format, length constraints, or provide examples, so it is minimally adequate.

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 clearly states the tool's action ('Rewrite flytekit V1 Python code into flyte-sdk V2 syntax') and its outputs (transformed code, list of changes, warnings). This is a specific verb+resource pair that distinguishes it from sibling tools, which cover different Flyte operations.

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?

The description implicitly tells when to use this tool: when you have V1 code and want V2. No explicit exclusions or alternatives are mentioned, but the sibling tools do not include a migration counterpart, so the context is clear enough. A minor improvement would be stating 'Use this when you...'.

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/andreahlert/flyte-mcp'

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