Skip to main content
Glama

Resolve a semantic subject hierarchy

resolve_subject_hierarchy
Idempotent

Use after vocabulary_index when the specific subject type does not yet exist. Submit terms broad-to-specific, for example ['food','recipe']. The server reuses existing dictionary entries, creates only missing provisional nodes in context, adds belongs_to relationships and rejects cycles. Do not include 'review': review is the record type, not a subject category. Semantic placement must be based on meaning, never on which review arrived first. Before creating a new semantic node, distinguish a genuinely different concept from a mere naming variant. Naming variants should reuse identity; genuine meaning differences may remain separate. Classification vocabulary should represent what a subject fundamentally is. Before creating, selecting, relating or proposing a subject type, identify the semantic head and descriptive modifiers. Material, arrangement/grouping, state/condition, quantity, colour, size, location and purpose/use normally belong in attributes or relationships rather than subject-type names. This is not a simplistic head-noun rule: a compound may remain a distinct type when the combined concept has materially different identity, behaviour, relationships, classification meaning or realistic retrieval needs. The server independently validates structural writes, so client guidance cannot bypass this rule.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
termsYes

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavior: existing dictionary entries are reused, only missing provisional nodes are created, belongs_to relationships are added, cycles are rejected, and the server independently validates structural writes. This goes well beyond what annotations or the schema could convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

Although the description is long, it is dense with decision-relevant guidance for a nuanced classification task. The most important operational instructions are front-loaded, and each subsequent sentence addresses a distinct semantic rule without unnecessary repetition.

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?

Given the single parameter, the absence of an output schema, and the conceptual complexity of subject hierarchy resolution, the description covers preconditions, input semantics, server behavior, rejection rules, and client-side validation limits. An agent has enough information to call the tool correctly.

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

Parameters5/5

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

The only parameter, terms, is richly explained despite zero schema description coverage. The description specifies ordering (broad-to-specific), gives an example, and adds extensive semantic guidance about what counts as a distinct concept, how to handle modifiers, and why naming variants should reuse identity.

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 clearly states the tool's purpose and trigger condition: use it after vocabulary_index when a specific subject type does not yet exist. It specifies the exact input format (broad-to-specific terms) and what the server does with them, making it easy to distinguish from related resolution tools.

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 strong usage context, including when to use the tool, what to exclude ('review'), and how to handle naming variants. However, it does not explicitly name a fallback alternative tool when the subject type already exists, so the full vs-alternatives guidance is implied rather than explicit.

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.

TDQS

A3.6/5.0
Disambiguation3/5

Most tools are separated by resource and action, but the classification cluster (affirm_subject_classification, propose_subject_reclassification, reopen_subject_classification, get_subject_classification) and the three resolve_subject* tools require close reading to distinguish. Long descriptions help, but an agent could easily pick the wrong member of those clusters.

Naming Consistency4/5

The dominant pattern is verb_noun in snake_case (create_deliberation, list_reviews_by_visibility, resolve_subject_type, set_review_visibility). Minor deviations such as bare 'fetch' and 'search' and mixed verbs like affirm vs propose vs reopen are readable and do not break the convention.

Tool Count2/5

34 tools substantially exceeds the 25+ threshold even for a server with multiple subdomains. The many classification, type, and location variants add cognitive load, and several could be consolidated or hidden behind a smaller workflow-oriented surface.

Completeness4/5

The set covers the main lifecycles: review save/fetch/assess/delete/visibility, subject resolution/enrichment/correction, classification with voting/reopening, deliberations, locations, and vocabulary management. Minor gaps remain, such as no direct full-subject getter and no update to review text, but these appear intentional in an immutable-review design.