Skip to main content
Glama
tulha-mcp

tulha-mcp

by Ctorum

Definir item da despensa

set_item

Defines the exact quantity of a pantry item and creates it if missing, allowing you to correct stock values such as exactly 3 eggs.

Instructions

Define a quantidade exata (não soma) de um item, criando-o se não existir. Use para corrigir um valor, ex.: "tenho exatamente 3 ovos".

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>",
      "qty": "<qty>"
    },
    "name": "set_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
minNo
qtyYesQuantidade exata que deve ficar registrada
nameYes
unitNo
placeNo
expiresNo
sectionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the two most important traits: the operation overwrites rather than adds, and it creates the item if it is missing. It says nothing about what happens to the other five fields when an item already exists (are min, place, expires, section preserved, overwritten, or cleared?), nor about household scoping or permissions — significant gaps for a mutation tool.

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 tightly written sentences with the core set-not-add semantics front-loaded, followed by the use case and a short example. Nothing is wasted or buried.

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

Completeness2/5

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

For a 7-parameter mutation tool with no annotations and no output schema, the description is under-specified: six parameters are undocumented and there is no indication of return behavior or how partial updates affect existing records. The core intent is clear, but an agent could easily call this correctly-but-unexpectedly.

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?

Schema description coverage is only 14%, so the description needs to compensate, but it only restates what the schema already says about 'qty' ('Quantidade exata que deve ficar registrada'). The meaning of 'min', 'unit', 'place', 'expires', and 'section' — and whether they are required on creation, ignored on update, or optional overrides — is left entirely unexplained.

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 states a specific verb and resource ('Define a quantidade exata ... de um item') and pins down decisive semantics: set rather than increment ('não soma') and upsert ('criando-o se não existir'). An agent can immediately tell this apart from additive siblings such as add_stock.

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?

It gives an explicit usage context — 'Use para corrigir um valor' — plus a concrete example ('tenho exatamente 3 ovos') that makes the corrective-set case unambiguous. It implicitly excludes the additive path via 'não soma' but never names the alternative tool, so the routing is left slightly implicit.

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