Skip to main content
Glama

add_alias

Record an alias that maps a raw or alternate name to an existing HomeStock item, preventing duplicate inventory entries and incorrect repurchase cycles.

Instructions

Teach HomeStock that a raw string means an item it already knows.

Four input paths produce four vocabularies for one thing: a barcode gives "tesco british semi skimmed milk 2.27l", a receipt line gives "tesco semi skmd milk", a person types "milk". Without this they become three items with three wrong repurchase cycles. Resolve a name once and record it here rather than resolving it on every ingest.

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": {
      "alias": "<alias>",
      "item": "<item>"
    },
    "name": "add_alias"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYes
aliasYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It conveys that the record persists and shapes future ingests ('three wrong repurchase cycles'), which is genuinely useful, but says nothing about what happens if the alias already exists, whether it overwrites or errors, whether the item must already exist, or what 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.

Conciseness4/5

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

The first sentence is front-loaded with the core action and the rest justifies it. The multi-line vocabulary example is slightly expanded for a two-parameter tool but does earn its place by explaining why the alias matters.

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?

The motivational context is strong, but for a mutating tool with zero annotation coverage, no output schema, and two undocumented parameters, the definition leaves the agent guessing about argument format and collision behavior. It is adequate to understand the tool's role, not to call it confidently.

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 coverage is 0% and both parameters are required, so the description must compensate and largely does not. It implies `alias` is the raw string and `item` is an already-known item, but never states whether `item` is an ID or a name, nor anything about format, case, or length for `alias`.

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 states a specific verb and resource: record a mapping so HomeStock treats a raw string as an item it already knows. The concrete example ('tesco semi skmd milk' -> an existing item) makes the effect unambiguous. It stops short of naming a sibling it is not, but the intent is clear enough to act on.

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 condition for use: 'Resolve a name once and record it here rather than resolving it on every ingest,' which frames the alternative behavior it replaces. No named sibling (list_aliases, merge_items, resolve_capture) is offered as an explicit alternative, and no when-not-to-use cases are stated.

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