Talking to your agent from Claude Code or ChatGPT with the MCP chat tool

All in One AIAgents Through the API·· 6 views· 3 min read

The Interweb MCP server gives assistants such as Claude Code and ChatGPT the chat tool. With it, the assistant asks a question to another text model or to one of your agents, without leaving the conversation. Use it, for example, to see how the agent answers while you work on your website code, or to ask the agent that holds your company knowledge.

Before you start

The assistant must be set up with the MCP server, at https://api.interweb.co.mz/mcp. The steps for each tool are in the All in One AI MCP server and, for ChatGPT, in the MCP documentation. With a key, it needs ai:read and ai:write. In ChatGPT, and in Claude Code without a key, you sign in with your account, through OAuth.

Asking the agent

Write to the assistant as you would to a person, and say which agent:

1 "Which agents do I have?" The assistant uses list_models with the agent type and shows you the ids.
2 "Ask the agent agent/7c1e9a42-b35d8f06-a2c4e719-5d0b3f8e what time we open on Saturday."
3 "Ask the agent agent/... the questions in questions.txt and show me the answers."

The tool's fields are model, messages or prompt and, if you want, system and max_tokens. With an agent you do not need system: the agent's instructions go on their own.

What it costs

The chat tool pays the tokens at the model price, like a chat request. With an agent, it is the agent's model, and each tool round counts. In ChatGPT, the tools that spend credits, such as chat, ask for confirmation before they run. Each call shows up in the All in One AI History and counts towards the requests per minute limit.

Testing without spending

With a sandbox_ key in the header, chat always answers "Resposta de teste (sandbox)." and charges nothing. Use it to check that the tool reaches the agent. Through OAuth, requests are always production.

If the assistant says the model does not exist, ask it to look up the id with list_models. The agent must belong to the key's account, or to the account you signed in with.

Want your agent at hand in Claude Code or ChatGPT? See All in One AI.

See All in One AI

SEE ALSO

The All in One AI MCP server: images, video and voice inside Claude Code, Codex and ChatGPT

Adding the All in One AI MCP server to Claude Desktop as a custom connector

Listing your agents through the API: type=agent, base_model and status

Using your AI agent through the API: agent/ in the model field

All in One AI

Was this answer helpful? Your answer helps us improve this article.