Skip to main content
Glama
tulha-mcp

tulha-mcp

by Ctorum

Dar baixa (usei)

use_item

Decrement item stock by the amount used, log the consumption, and automatically add the item to the shopping list when stock runs out.

Instructions

Desconta uma quantidade usada de um item (não passa de zero), registra o consumo e, se o estoque ficar em falta, coloca o item na lista de compras automaticamente. Use para "usei 1 pacote de café", "acabou o leite".

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "name": "<name>"
    },
    "name": "use_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
amountNoQuantidade usada agora

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does disclose three non-obvious traits: the quantity is clamped so stock never goes below zero, consumption is logged, and an out-of-stock result silently creates a shopping-list entry. It omits error behavior for unknown item names and whether repeated calls create duplicate shopping entries.

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?

Two tight sentences: the first front-loads all behavior and side effects, the second supplies just enough example phrasing to anchor intent. No filler and no restatement of the tool name.

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

Completeness4/5

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

For a mutation tool with no annotations and no output schema, the description covers the important consequences of calling it. It stops short of describing what the call returns (e.g., resulting quantity or an out-of-stock flag) or how failures are signaled, which an agent would want before invoking it.

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

Parameters3/5

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

Schema coverage is 50%: 'amount' is documented in the schema as 'Quantidade usada agora' with default 1 and exclusiveMinimum 0, and the description reinforces the floor with '(não passa de zero)'. The required 'name' parameter is undocumented in both schema and description, so how the item is identified (exact name vs. lookup) remains unclear.

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

Purpose4/5

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

The description names a specific verb and resource ('Desconta uma quantidade usada de um item') and enumerates its side effects (registers consumption, auto-adds to the shopping list). That combination of debit-plus-logging distinguishes it in practice from discard_item/delete_item, but no sibling is named explicitly.

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

Usage Guidelines4/5

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

Two concrete usage examples ('usei 1 pacote de café', 'acabou o leite') give a clear sense of the triggering situations, including the out-of-stock case. There is no explicit statement of when NOT to use it or which sibling to prefer for a pure removal.

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