Skip to main content
Glama
clidey

whodb-cli

Official
by clidey

whodb_platform_ontology_similar

Read-onlyIdempotent

Find rows similar to a reference row using an ontology's embeddings. Requires embeddingEnabled and a completed embedding job; backfill with whodb_platform_action reembed.

Instructions

Find rows similar to one row using the ontology's embeddings. Requires embeddingEnabled on the ontology and a completed embedding job; otherwise the platform returns an error explaining what is missing. Start a backfill with whodb_platform_action reembed. Accepts workspace {host, org, project} for per-call targeting without changing defaults.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
top_kNoNumber of neighbours (default 5)
whereNoOptional filter in the shared grammar to pre-filter candidates
fieldsNoOptional top-level output fields to include
row_idYesPrimary key of the reference row
entity_idYesOntology id with embeddingEnabled
workspaceNoOptional target for this call only. Omit to use the session default set by whodb_platform_session_use, then process/saved defaults. Discover targets with whodb_platform_hosts, whodb_platform_orgs and whodb_platform_projects.
propertiesNoProperties to include in results

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.135.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so safety is covered structurally. The description goes beyond by disclosing that the platform returns an explanatory error when embeddings are not ready, and by clarifying that per-call workspace targeting does not change session defaults.

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 purpose, then prerequisites and the recovery action, then workspace targeting. Each sentence earns its place, though the workspace sentence is somewhat dense and could be trimmed since the schema already covers it.

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?

For a read-only similarity tool with full schema coverage and a rich nested workspace object, the description supplies the key non-schema facts (embedding prerequisite, error behavior, reembed recovery, non-defaulting workspace). With no output schema, it doesn't describe return shape, but the role is otherwise fully covered.

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 every parameter including the nested workspace fields is already documented in the schema. The description restates the workspace {host, org, project} targeting and its default-vs-override semantics, adding only marginal value over the schema baseline.

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?

The description names a specific verb and resource ('Find rows similar to one row using the ontology's embeddings'), which is immediately distinguishable from sibling read tools like ontology_query or ontology_rows. An agent can tell what this does without opening the schema.

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 states clear preconditions (embeddingEnabled on the ontology, completed embedding job) and the failure behavior, plus routes the agent to whodb_platform_action reembed to start a backfill. It stops short of explicitly contrasting this with the other recall/lookup siblings (e.g. fast_lookup, ontology_query).

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

Deploy Server

Other Tools