---
title: "7 common mistakes when building tools for AI | FluxOS MCP Blog"
description: "Vague names, technical descriptions, giant responses, too many tools: seven mistakes that make an AI assistant misuse an MCP server, and how to fix each one."
url: "https://www.fluxosmcp.com/en/blog/7-common-mistakes-when-building-tools-for-ai"
lang: "en-US"
---

[Blog](https://www.fluxosmcp.com/en/blog) · Nov 25, 2026 · FluxOS MCP Team

# 7 common mistakes when building tools for AI

[Leia este artigo em português](https://www.fluxosmcp.com/blog/7-erros-comuns-ao-criar-ferramentas-para-ia)

The MCP server is live, the key works, the assistant lists the tools. And it still calls the wrong tool, makes up an argument, or answers “I couldn’t find that information” for something that is right there.

It is almost never the model’s fault. An MCP tool is read by an assistant that knows only three things about it: **the name, the description and the arguments**. If those three pieces of text are bad, the result is bad, no matter how good the system behind them is.

These are the seven mistakes that come up most, in the order they usually show up.

## 1\. A name that only makes sense to the person who wrote it

Imported tools inherit the technical name from the source: `get_v2_orders_by_id`, `listar_2`, `op_17`. For the assistant, the name is the first clue about what the tool does.

**How to fix it:** verb plus object, in the language people will ask in. `consultar_pedido`, `listar_faturas_em_aberto`, `verificar_empresa`. If two tools have similar names (`buscar_cliente` and `consultar_cliente`), the assistant will mix them up. Merge them or make them distinct.

## 2\. A description that explains the endpoint, not the situation

“Calls GET /orders/{id}.” is a description that is both true and useless. The assistant does not need to know the URL. It needs to know **when** to use the tool.

A good description answers three questions:

- **When to use it?** “Use when the person asks about the status of an order.”
- **What to provide?** “Provide the order number, digits only.”
- **What comes back, and what does not?** “Returns status, expected date and carrier. Does not include the order items.”

The last part is the one people forget most. Saying what the tool does **not** do keeps the assistant from using it for everything.

**How to fix it:** rewrite each tool’s description after importing. In FluxOS MCP, you do that in the import review or, later, in the workflow’s trigger.

## 3\. Arguments with no explanation

`id`, `tipo`, `data`, `q`. The assistant will fill them in, and it will get them wrong: is `data` the issue date or the due date? In what format? Which values does `tipo` accept?

Collections and specs often ship arguments with no description at all. When you import a Postman collection, for example, every argument arrives as “Valor da variável” (Variable value).

**How to fix it:** give each argument a description with a format and an example.

- “CNPJ (Brazilian company tax ID) as 14 digits, numbers only (e.g., 00000000000191).”
- “Due date, in YYYY-MM-DD format.”
- “Order status. Accepted values: open, invoiced, delivered, canceled.”

When the values are a closed list, declare the list in the tool’s schema. The assistant stops making things up.

## 4\. A response the size of the database

The `listar_produtos` tool returns all twenty thousand products. The `consultar_cliente` one returns the customer record with a hundred and twenty fields. It works in testing and fails in real life: the response fills the entire conversation, costs a lot, and what matters gets lost in the middle.

The server does not trim the response for you. Whatever the tool returns, the assistant receives.

**How to fix it:**

- **A required filter** on every listing: by period, by category, by status.
- **A row limit.** In FluxOS MCP, the SQL query has a configurable maximum number of rows, and the **Filtrar** (Filter) block paginates the list, with the page and the limit exposed to the assistant.
- **Only the fields that answer the question.** An **Editar campos** (Edit fields) block cuts forty fields down to five, as in the tutorial [From endpoint to workflow](https://www.fluxosmcp.com/en/blog/from-endpoint-to-workflow-a-tool-that-looks-up-decides-and-answers).

## 5\. Too many tools

Importing the whole API feels generous: a hundred and fifty endpoints, a hundred and fifty tools. The effect is the opposite. With many similar options, the assistant chooses worse, and the tool list takes up space in every conversation, even when none of them is used.

**How to fix it:** start with three to ten tools, chosen by the questions people actually ask. If you need more, split them into servers by subject (one for sales, another for finance) and give each client only what they use. In FluxOS MCP you can also limit the tools available to each key.

A good test: can you say, in one sentence, which question each tool answers? The ones that fail the test go.

## 6\. One endpoint per tool, when the question needs three

To answer “has the order shipped yet?”, the assistant has to call `buscar_pedido`, then `buscar_entrega` with an identifier that came from the first call, then `buscar_transportadora`. Every step is a chance to get it wrong, and the business rule (“late” means more than two days past the expected date) is left to the model’s interpretation.

**How to fix it:** think in tasks, not endpoints. A `situacao_do_pedido` tool that makes the three calls and returns the finished answer fails less often and keeps the rule in a place you control. We explain the difference in [MCP or API](https://www.fluxosmcp.com/blog/mcp-ou-api-qual-e-a-diferenca-e-quando-usar-cada-um).

## 7\. An error that teaches nothing

The source API responded with a 404 and the tool returned “error”. The assistant does not know whether the order does not exist, the number is in the wrong format, or the system is down. So it tries again, the same way, or gives up.

A good error message says what happened and what to do:

- “Order not found. Check the number: it has 6 digits.”
- “The inventory system did not respond. Try again in a few minutes.”

**How to fix it:** handle the predictable cases inside the tool. On the FluxOS MCP canvas, every block can have an **erro** (error) output: instead of the execution failing, it follows that path, and a **Responder ao MCP** (Respond to MCP) block returns the message you wrote.

One caution: an error message is no place for internal details. Server addresses, SQL text and credentials should never reach the assistant. FluxOS MCP sanitizes failure messages before returning them, but the message you write is your responsibility.

## A bonus mistake: testing only with the perfect question

The person who built the tool tests it with “look up order 884102”. The person who uses it asks “what about that Aurora order, did it ship?”. The second case is the real one.

Test with vague questions, with missing data and with wrong data. And read the executions: in FluxOS MCP, every call is recorded with the arguments the assistant sent. That is where you see, with no guesswork, what it understood from your description.

## Checklist

Before publishing a tool:

- Does the name say what it does, with a verb and an object?
- Does the description say when to use it, what to provide and what comes back?
- Does every argument have a format and an example?
- Does the response have a size limit and only the necessary fields?
- Does it answer a whole question, or does it force the assistant to chain calls?
- Do the predictable errors have their own message?
- Did you test it with a poorly worded question?

None of these items requires code. All of them are text and design, and they are what separates an MCP server that impresses in a demo from one that people use every day.

To practice with data that cannot break anything, start with the [OpenAPI tutorial](https://www.fluxosmcp.com/en/blog/tutorial-postal-codes-holidays-and-rates-in-your-ai-assistant-with-openapi). And before applying this to company data, go through the [seven security questions](https://www.fluxosmcp.com/en/blog/7-questions-to-ask-before-connecting-ai-to-your-companys-data).
