Skip to main content
Glama

remover_produto

Permanently deletes a product from the database using its ID. Provide the product ID to remove it.

Instructions

Exclui permanentemente um produto pelo ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
id_produtoYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The handler function for the 'remover_produto' tool. Decorated with @mcp.tool(), it takes an id_produto (int) and delegates deletion to database.deletar_registro('produtos', id_produto).
    @mcp.tool()
    def remover_produto(id_produto: int) -> str:
        """Exclui permanentemente um produto pelo ID."""
        return database.deletar_registro("produtos", id_produto)
  • server.py:110-110 (registration)
    The @mcp.tool() decorator registers 'remover_produto' as an MCP tool via FastMCP.
    @mcp.tool()
  • The underlying helper function 'deletar_registro' that performs the SQL DELETE operation on the 'produtos' table.
    def deletar_registro(tabela, registro_id):
        conn = sqlite3.connect(DB_NAME)
        cursor = conn.cursor()
        cursor.execute(f"DELETE FROM {tabela} WHERE id = ?", (registro_id,))
        conn.commit()
        conn.close()
        return f" {tabela.capitalize()} ID {registro_id} removido."
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description explicitly states 'permanentemente' (permanently), indicating irreversibility, which is a key behavioral trait. However, no annotations are provided, and the description does not disclose authentication requirements, rate limits, or side effects beyond deletion, leaving gaps for an AI agent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence that is concise and front-loaded with the action. Every word is necessary; no redundant or extraneous information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple deletion tool with one parameter and an output schema, the description covers the primary action but lacks usage guidance and parameter semantics. It is minimally complete but leaves the AI agent without full context for reliable invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description only says 'pelo ID' implying the id_produto parameter is used. It does not explain the parameter's format, source, or constraints, providing minimal added value beyond the schema's type and required flag.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Exclui permanentemente um produto pelo ID' clearly states the action (permanently delete), the resource (product), and the method (by ID). It distinguishes from sibling tools like cadastrar_produto and editar_produto, which handle other CRUD operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives, nor are there any prerequisites or conditions mentioned. The description lacks context for appropriate usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mateus-gondev/MCP-PIE'

If you have feedback or need assistance with the MCP directory API, please join our Discord server