More screenshots

    Works with the AI Agents you already use

    Anthropic to OpenAI Tool Call Translation

    by Mohamed Mostafa Metawea

    1

    Run an Anthropic-style agent loop on any OpenAI-compatible provider by translating at the edge.

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Anthropic to OpenAI Tool Call Translation

    Anthropic to OpenAI Tool Call Translation

    Example session with this skill installed

    My agent loop uses Anthropic-style tool_use and tool_result blocks. How do I run it against an OpenAI-compatible provider without rewriting the loop?

    • Read your context and instructions
    • Compiled the anthropic to openai

    Summary

    Illustrative sample of the translation rules, not captured output from a live model.

    An Anthropic-style assistant message with one tool_use block (id "t1", name "read_file", input {"path": "a.txt"}) becomes an assistant message with content null and one tool_calls entry whose function arguments are the JSON string '{"path": "a.txt"}'.

    The following user message with a tool_result block for "t1" becomes a message with role "tool", tool_call_id "t1" and the result as a string.

    Next steps

    1. Write a unit test that asserts this exact output.
    2. Drop server-side tools such as web search and tell the user the agent has no web access on this provider.
    3. On invalid tool arguments, use an empty object and let the tool report the problem.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Run an agent loop that keeps its messages in the Anthropic shape (text, tool_use and tool_result blocks) on any OpenAI-compatible endpoint by translating at the edge. It comes from a small Python reference app (AI Office v1.5) and was checked against that code.

    What it does

    • Maps messages out: tool_result blocks become tool messages, tool_use blocks become tool_calls with JSON-string arguments, and an assistant message with only calls gets null content.
    • Maps tool definitions out: input_schema becomes function parameters, and provider-only server tools such as web search are dropped.
    • Maps replies back: strips think blocks, tolerates invalid tool arguments, fills missing call ids, and maps finish reasons and token usage.
    • Shows how to unit-test the translator without a network.

    How it works

    The skill lists each rule in order, with the edge cases the code handles.

    Frameworks & tools

    Plain Python with the standard library. A written playbook, not an installable package.

    Use cases

    • Making one agent loop work with several providers.
    • Adding a free or self-hosted OpenAI-compatible model to an existing agent.

    Known limitations

    Only text, tool_use and tool_result blocks are handled; images are not. The error flag on tool results has no equivalent. Providers differ, and some models handle tools poorly. This maps formats; it does not make a model good at tools.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    Run an Anthropic-style agent loop on any OpenAI-compatible provider by translating at the edge.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Anthropic to OpenAI Tool Call Translation on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.