# Anthropic to OpenAI Tool Call Translation

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

Anthropic to OpenAI Tool Call Translation is a paid AI agent skill on Agensi by Mohamed Mostafa Metawea. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9.99 (one-time purchase)
- Creator: [Mohamed Mostafa Metawea](https://www.agensi.io/creators/mohamed-mostafa-metawea)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/anthropic-to-openai-tool-call-translation

## 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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Anthropic to OpenAI Tool Call Translation skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does Anthropic to OpenAI Tool Call Translation do?

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

### Which AI agents support Anthropic to OpenAI Tool Call Translation?

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.

### How do I use Anthropic to OpenAI Tool Call Translation?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
