Skip to main content
Glama
tulha-mcp

tulha-mcp

by Ctorum

Registrar entrada de item

add_stock

Records incoming pantry quantities and adds them to existing stock by item name, creating a new item when none exists. Use it to log purchases or deliveries into a shared household inventory.

Instructions

Registra que uma quantidade de um item entrou em casa. Soma à quantidade já existente se o item já existir (por nome); cria o item se não existir. Use para "comprei mais 2kg de arroz", "chegou 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>",
      "qty": "<qty>"
    },
    "name": "add_stock"
  }
}

Input Schema

NameRequiredDescriptionDefault
minNoQuantidade mínima antes de avisar que está acabando
qtyYesQuantidade que entrou agora (vai ser somada ao estoque existente)
nameYesNome do item, ex.: 'Arroz', 'Leite integral'
unitNoUnidade (ex.: kg, un, pct). Só é usada se o item ainda não existir ou você quiser trocar.
placeNoOnde guardar: armario, geladeira ou freezer
expiresNoData de validade, formato YYYY-MM-DD
sectionNoSeção do mercado

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 does disclose the key mutation semantics: matching by name, additive quantity, and implicit creation of unknown items. It omits other consequential behaviour — which household the write targets (join_household/create_household exist as siblings), how min/unit/expires behave when the item already exists, and whether anything is returned.

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?

Three tight sentences: the operation first, the upsert rule second, real user phrasings last. Nothing is redundant and the most important rule (additive vs. create) is front-loaded.

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 7-parameter mutation tool with no annotations and no output schema, the description covers the core write semantics but leaves gaps: it says nothing about the response (e.g. whether the new total is returned) or about household scoping, both of which an agent needs before invoking a state-changing tool.

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 description coverage is 100%, so the schema already explains qty, unit, place, expires, section and min. The description adds only one semantic detail beyond the schema — that matching is done 'por nome' — which is genuinely useful for name-collision reasoning but is a small increment.

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?

States a specific verb and resource ('registra que uma quantidade de um item entrou em casa') and goes further by spelling out the upsert rule: it sums into an existing item matched by name, or creates it otherwise. That behaviour distinguishes it from set-style or consumption siblings, but no sibling is named explicitly, so differentiation is inferential rather than stated.

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?

Provides concrete trigger utterances ('comprei mais 2kg de arroz', 'chegou leite') that make the intended moment of use obvious. It stops short of exclusions — nothing says when to prefer set_item, use_item or add_shopping_entry instead — so the agent must infer the boundary from those siblings' own descriptions.

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