A language model on its own can only write text. It can't read your database, open a pull request or check whether your tests pass. An agent toolkit is the set of tools an AI agent can call to read data, use real systems and take actions. The model decides what to do. The toolkit is what actually does it.
When people say an agent "fixed a bug" or "booked a meeting", the model didn't touch anything. It asked a tool to, and the tool did the work under its own rules. That hand-off explains most of what makes agents useful, and most of what makes them safe.
It's also a buildable project in its own right. Toolkits are now a category in AI hackathons: the Agent Stack 48 hackathon has a whole track for tools, MCP servers and APIs that other agents can use, judged on the same terms as complete agents.
An agent is a loop
A chatbot answers once. An agent works in a loop:
- It reads a goal, such as "the build is failing, fix it".
- It picks a tool that gets it closer, such as "run the tests".
- It reads what the tool returned.
- It decides the next step, and repeats until the goal is met or it gives up.
The model is the part that decides. Everything else in that loop (running tests, reading files, sending the email) happens in tools. Give the same model a better toolkit and the agent can do more, without changing a word of the prompt.

What a tool actually is
A tool is a normal function with three things attached: a name, a plain-language description, and a list of the inputs it accepts. The model never sees your code. It sees the description and decides whether the tool fits.
Here's a real tool from an MCP server that helps agents fix failing CI builds. It's ordinary Python with a decorator:
@server.tool()
def replace_in_file(path: str, old_text: str, new_text: str) -> dict:
"""Replace one exact snippet in a source file. Tests and CI config are protected."""
return workspace.replace_in_file(path, old_text, new_text)
The docstring is what the model reads when deciding whether to call this tool, so it says exactly what the tool does and what it won't do. Vague descriptions are a common reason agents pick the wrong tool.
The model never runs the tool itself. It sends back a structured request ("call replace_in_file with these three values"), and code outside the model runs it and returns the result.
Function calling vs. MCP
There are two common ways to connect tools to a model, and they solve different problems.
Function calling is built into model APIs like Gemini, Claude and GPT. You describe your tools inside your own app, and the model can call them. It works well, but the tools only exist inside that one app.
MCP, the Model Context Protocol, is an open standard that puts tools in their own small program, called an MCP server. Any app that speaks MCP can connect to it, ask what tools it offers, and use them. Claude Desktop, VS Code, Gemini CLI and custom agents can all plug into the same server.
Side by side:
- Where the tools live: with function calling, inside your app's code. With MCP, in a separate server.
- Who can use them: with function calling, only your app. With MCP, any MCP-compatible app or agent.
- Best for: function calling suits a single agent with a few private tools. MCP suits tools you want to reuse or share.
A useful way to picture it: function calling is wiring a drill directly into one machine. MCP is a standard wall socket, so any machine with the right plug can use the same drill.
The two combine well: the CI fixing agent below uses function calling to talk to its model and MCP to reach its tools.
MCP servers and MCP clients
MCP always has two sides, and keeping them apart makes everything else easier to follow.
- The MCP server is the toolkit. It holds the tools and the rules. It has no AI model inside it and never decides anything. It waits for requests like "run
read_fileonpagination.py", does the work, and returns the result. - The MCP client is on the agent's side. It connects to a server, asks which tools are available and sends tool calls. The client sits inside the app or agent that has the AI model, and the model decides which tools to call.
So the agent is the brain, and the MCP server provides the hands. One server can serve many different clients, and one agent can connect to many servers at once.
You often don't have to build the client yourself. Apps like Claude Desktop, VS Code and Gemini CLI already include one. To connect your server, you add an entry to the app's MCP settings that says how to start it. In Claude Desktop, for example, that entry goes in its config file and looks like this:
{
"mcpServers": {
"ci-triage-tools": {
"command": "python",
"args": ["/path/to/mcp_server.py"]
}
}
}
The app starts the server when it launches and shows its tools to the model, and from then on you can ask for things in plain language. Each app keeps these settings in a slightly different place, so check its MCP docs for the exact file. If you're building your own agent, you write the client side yourself with an MCP SDK, which is what the example below does.
APIs, MCP servers and SDKs: which one to build
All three can be part of an agent toolkit. The difference is who you expect to call them.
- An API (a web endpoint) suits tools that any software should be able to use, AI or not.
- An MCP server suits tools built for AI agents, with names and descriptions a model can read.
- An SDK (a code library) suits developers building their own agents who want your capability as a few lines of code.
Many good toolkits are an API underneath with an MCP server on top.
The toolkit is where the rules live
This is the part beginners often miss. A prompt is a request. A tool is a guarantee.
You can tell a model "never edit the test files", and it will usually listen. But if the replace_in_file tool itself refuses any path under tests/, the model can't edit the tests even if it tries. The CI agent's MCP server does exactly that, and it also refuses any path outside the project folder.
That's why toolkits are how companies give agents real access safely. Read-only database tools, row limits, allow-lists of commands and "draft, don't send" email tools all put the limits in the toolkit, where a confused or manipulated model can't talk its way past them.
A real example: an agent that fixes failing builds
Here's a toolkit and an agent working together, as two separate programs. The MCP server is the toolkit: it offers six tools (summarize a failed CI run, list files, read a file, edit a file, run the tests, and show the changes). The agent is a small custom program built on Gemini, and it acts as the MCP client. It connects to the server, asks what tools it has, and lets Gemini decide which to call. Here it is fixing a real pagination bug:

The agent looks around, runs the tests to see the failure for itself, reads the code and the tests, makes a one-line fix, and checks that the tests pass. Then the program re-runs the tests a final time, outside the agent and the server, so "fixed" always means verified.
Because the tools sit in a standard MCP server, this custom agent is only one possible client. Claude Desktop, VS Code or any other MCP client could connect to the same server, using a config entry like the one above, and get the same six tools. The full project is open source at github.com/vicdevman/ci-fix-agent-mcp.
What to build for a tools track
If you're entering a toolkit track at a hackathon, here are three starting points:
- Safe database access: an MCP server that lets any agent explore a database's structure and run read-only queries, with row limits and blocked writes.
- Document-to-data API: turns invoices, receipts or contracts into clean JSON that any agent can call.
- Open-data connector: an MCP server for a public data portal (transport, health, government budgets), so agents can query it in plain language.
Whatever you build, a few habits make a toolkit easy for agents to use:
- Keep each tool small and specific.
run_testsbeatsdo_ci_stuff. - Write descriptions for the model. Say what the tool does, what it needs and what it refuses.
- Return structured results.
{"passed": false, "output": "..."}is easier for a model to act on than a wall of text. - Put limits in the tool, not the prompt.
- Demo it with an agent. Judges want to see an agent use your tool, and Agent Stack 48 requires it for tool submissions.
Frequently Asked Questions
What is an agent toolkit in simple terms?
It's the collection of tools an AI agent can use to act: reading files, querying databases, calling APIs, sending messages. The AI model decides which tool to use; the toolkit carries out the action.
Do I need MCP to build an agent toolkit?
No. Plain APIs, SDKs and function calling all work. MCP is worth using when you want any AI app or agent to plug into your tools without custom integration code.
Can I submit a tool instead of a full agent at an AI hackathon?
At hackathons with a tools track, yes. At Agent Stack 48, tools and toolkits are a full track competing for the same prizes, and you don't need to build a complete agent app. You do need to show an agent or agentic workflow using your tool.
If you want to try this yourself, start with one tool: a single function with a clear description that does one real thing. Connect it to an AI app you already use, and watch the model decide when to call it. Everything else in agent toolkits builds on that one interaction.


Comments
No comments yet.