Skip to main content
Glama

Match labels to items

layerz_match_items
Read-only

Resolves free-text labels (e.g. row labels of a parsed file) to existing item UIDs of a model: the top 3 candidates per label across exact_uid, exact_name, slug and fuzzy (Levenshtein) methods, each with a score. An empty candidate list means no existing item matched. Deterministic, no LLM call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelsYesFree-text labels to resolve.
model_idNoTarget model UUID. Required for user-scoped API keys; validated against the bound model for model-scoped keys.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / labels / description
      Previous value: -"Free-text labels to resolve (e.g. row labels from an Excel sheet)."New value: +"Free-text labels to resolve."
    • changedInput schema / properties / model_id / description
      Previous value: -"Target model UUID. Required for user-scoped API keys; ignored (or validated against scope) for model-scoped keys."New value: +"Target model UUID. Required for user-scoped API keys; validated against the bound model for model-scoped keys."
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and non-destructive, so the safety profile is covered. The description adds genuinely useful behavior: determinism ('no LLM call'), the candidate-per-label cap of 3, the scoring, and the meaning of an empty candidate list. It omits any note on ordering or score range, keeping it short of a 5.

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?

Two tightly packed sentences with the purpose front-loaded and zero filler. The parentheticals and clause list make it dense but still readable; nothing is wasted.

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?

With no output schema, the description carries the return-value burden and does it well: candidate count, methods, scoring, and empty-list semantics are all stated. Minor gaps remain (score scale, ranking order), but an agent has enough to call and interpret 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 description coverage is 100%, so the schema already documents both parameters, including model_id's scoping rules. The description clarifies what a label resolves to and the result shape per label, but adds little parameter-level meaning beyond the schema, matching the baseline 3.

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+resource: resolving free-text labels to existing item UIDs of a model. It further specifies the mechanics (top 3 candidates across exact_uid, exact_name, slug, and Levenshtein fuzzy matching, each scored), which no sibling tool does, so an agent can distinguish it from layerz_parse_file or layerz_validate_model immediately.

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?

Anchors the use case concretely with 'e.g. row labels of a parsed file,' implying this follows a parse step and precedes item creation/update. It does not name explicit alternatives or exclusions, so it falls short of a full when-to-use/when-not statement.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources