Skip to main content
Glama
homebox-mcp

homebox-mcp

by dgahagan

field_index

Read-only

Builds a one-pass {field_value: assetId} index for a custom field to deduplicate records before bulk import, scanning all entities because search queries don't index custom fields.

Instructions

Return {field_value: assetId} for every entity that has the named custom field — a one-pass index for DEDUPE before a bulk import (q does not index custom fields, so this scans every entity). field_name defaults to $HOMEBOX_ALIAS_FIELD. assetId may be empty for un-asset'd rows. Archived items are included: their values are still taken. Deliberately uncapped: a truncated dedupe index causes duplicates, so expect a large result on a large inventory.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

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

Input Schema

NameRequiredDescriptionDefault
field_nameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

readOnlyHint=true already covers the safety profile, yet the description still discloses that archived items are included, that assetId can be empty for un-asset'd rows, and that the result is deliberately uncapped and may be very large. Those are exactly the surprises an agent needs warning about before calling a bulk scan.

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?

Front-loads the return shape, then layers caveats (default field, empty assetId, archived items, no cap). Dense and mostly earning its words, though the parenthetical about 'q' and the justification for being uncapped run longer than needed.

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

Completeness5/5

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

There is no output schema, and the description fully compensates by specifying the returned mapping and its edge cases, plus the unbounded result size. Nothing essential to calling this single-parameter read tool correctly is missing.

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

Parameters4/5

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

Schema coverage is 0% and the schema shows only a nullable string with default null, so the description carries the load: it reveals that field_name defaults to $HOMEBOX_ALIAS_FIELD and that it selects which custom field to index. It does not say what happens when the field name is not found, leaving a small gap.

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?

States a precise verb and return shape: 'Return {field_value: assetId} for every entity that has the named custom field', plus the scope (one-pass index, scans every entity). An agent knows exactly what it gets back, not just what the tool is called.

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?

Gives a clear use case — DEDUPE before a bulk import — and explains why the query path ('q') cannot substitute, which implicitly routes the agent here instead of a search tool. It does not name a concrete alternative tool or state an explicit when-not-to-use case, so it stops short of a 5.

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