Skip to main content
Glama

Related Items

related_items
Read-onlyIdempotent

Returns related items by vector similarity. Provide either item_id (uses item's content as query) or text (embeds the text). Excludes the source item itself. Includes one-line reasons (shared tags or semantic similarity). No competitor has this feature.

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": "related_items"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNoAlternative: raw text to find similar items for.
limitNoMax related items to return.
item_idNoThe library item ID to find related items for.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description adds real value beyond them: self-exclusion of the source item, the inclusion of one-line reasons (shared tags or semantic similarity), and the similarity mechanism. It does not say what happens if neither item_id nor text is supplied.

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-loaded with the core behavior and uses short, dense sentences. The closing line "No competitor has this feature" is marketing filler that adds no invocation guidance and could be dropped.

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 tool with zero required parameters, the definition never states what happens when neither item_id nor text is provided, nor what takes precedence if both are given. Otherwise it covers input modes and output shape sufficiently for a simple read tool with no output schema.

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 100%, so baseline is 3, but the description goes further by explaining the semantic difference between the two inputs (content-derived query vs. embedded raw text). limit's behavior and bounds are left to the schema, which fully documents them.

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 specific verb and resource ("Returns related items") plus the mechanism ("by vector similarity"), which distinguishes it from the tag-based sibling related_tags without naming it. An agent knows exactly what class of output to expect.

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?

Clearly explains the two mutually exclusive input modes: item_id uses the item's content as the query, text embeds the supplied string. It does not name an alternative tool (e.g. related_tags) or say when to prefer one mode over the other, but the usage context is clear.

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.