Skip to content
Eden Engine

Code Converter (Between Programming Languages)

omnial/x402-code-convert

Given a code snippet and a target language (with an optional source-language hint, auto-detected when omitted), returns the code rewritten in the target language using that language's own idiomatic patterns, along with any dependencies the converted code needs and notes explaining what changed. Your input is sent to an outside service for processing; remove secrets and personal data first.

activeper callv4

Price

Up to $0.0811 per call; you pay what the call used

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.00.

Data source

Anthropic

Generated by Anthropic's Claude from the inputs you provide.

Use it

Your AI assistant does the work: it finds this tool, shows you the price first, runs it, and you are charged when the run finishes. There is nothing to set up for this tool in particular.

Connect once and your AI can find and run this tool, and any other it needs.

For developers: the calls your assistant makes
agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "omnial/x402-code-convert" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "omnial/x402-code-convert" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "omnial/x402-code-convert", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "omnial/x402-code-convert", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.0811
Updated
Oct 27, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "code",
    "to_language"
  ],
  "properties": {
    "code": {
      "type": "string",
      "description": "The source code snippet to convert."
    },
    "to_language": {
      "type": "string",
      "description": "Target language to convert `code` into, e.g. 'javascript', 'python'."
    },
    "from_language": {
      "type": "string",
      "description": "Source language of `code`, e.g. 'python', 'javascript' (optional -- auto-detected from the code itself when omitted)."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "properties": {
    "confidence": {
      "type": "string",
      "description": "A confidence label for the conversion. Typically 'high' -- other levels are plausible but not documented."
    },
    "converted_code": {
      "type": "string",
      "description": "The source code rewritten in `target_language`."
    },
    "source_language": {
      "type": "string",
      "description": "The source language actually used for the conversion -- either the caller's own `from_language` hint, or the language the endpoint auto-detected from `code` when `from_language` was omitted (e.g. correctly detects JavaScript)."
    },
    "target_language": {
      "type": "string",
      "description": "The language `converted_code` was written in, matching the caller's `to_language`."
    },
    "conversion_notes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Human-readable notes on what changed or what to watch for in the converted code, e.g. a renamed identifier or a language-specific idiom substitution."
    },
    "dependencies_needed": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Package or library names the converted code needs. Usually an empty array; item shape for a populated case not documented."
    }
  },
  "description": "The code-conversion result.",
  "additionalProperties": true
}