Skip to main content
Glama

Look up a legal-norm priority between two values

aio_lookup_reference
Read-onlyIdempotent

Ask the AIO Commons reference dataset kr-lnpd@0.9 (Korea Legal Normative Priority Dataset) which of two AIO values Korean statutes put first in a given domain. kr-lnpd@0.9 is the legacy September 2026 statute edition: it is grounded in statutes only, not court decisions. The current Korea hierarchy is the unified statute + court-decision hierarchy on the observation map (https://aioq.org/en/lab/value-map; data: https://aioq.org/data/commons/valuemap/v0.1/jurisdictions/KR.unified_cells.json); lookup_context.superseded_by says so on every answer. Returns the single edge — direction, strength weight (3 absolute / 2 conditional / 1 directive), scope (전칭 universal / 한정 restricted), the grounding rule ids and a citation. If the domain itself is silent, the BASE layer (the hierarchy every domain inherits from general statutes) is consulted and flagged with base_layer_hit; BASE is excluded from headline counts and comparison. The dataset records what the statutes say, not what the public believes, and carries no expert review yet. domain echoes the requested domain; lookup_context.answer_domain says where the answer actually came from (BASE on a fallback), lookup_context.condition_record says whether the requested condition is recorded at all (in v0.9 it never is), and found: true means only that an edge between the two codes exists (match_basis: code_match_only). CC BY 4.0.

Input Schema

NameRequiredDescriptionDefault
domainYesDomain code, e.g. "MED", "EDU", "COM". Use "BASE" to query the shared base layer directly.
value_aYesFirst AIO value code, e.g. "Sep" (personal safety).
value_bYesSecond AIO value code, e.g. "Sda" (self-direction, action).
conditionNoSituation axes. scale 1-5 (individual→society), reversibility 1-3 (reversible→irreversible), time 1-3 (immediate→long term); "U" means unspecified.
jurisdictionNoJurisdiction code. Only "KR" is published so far.KR

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, it discloses that every answer carries `superseded_by`, that a silent domain falls back to BASE and is flagged with `base_layer_hit` (excluded from headline counts), that the dataset has no expert review, and that `found: true` means only a code match exists. These are exactly the caveats an agent needs to avoid over-reading a result.

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?

Purpose is front-loaded in the first sentence and the density is high, with almost every clause carrying a caveat the agent needs. It is a single dense block rather than a structured list, and the trailing CC BY 4.0 note is marginal, but little is genuinely wasted.

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, so the description carries the burden of explaining the return value — and it does: direction, strength weight scale (3/2/1), scope (전칭/한정), grounding rule ids, citation, plus the lookup_context fields. Together with the BASE fallback rule, nothing essential for correct interpretation 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 already 100%, so the baseline is 3; the description earns above baseline by clarifying that `domain` echoes the request while `lookup_context.answer_domain` shows where the answer came from, and that the `condition` axes are never actually recorded in v0.9. That is semantic value the schema cannot express.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a concrete verb and resource: ask the kr-lnpd@0.9 reference dataset which of two AIO value codes Korean statutes rank first within a domain. It also scopes the source (statute-only, not court decisions), which implicitly separates it from the org-priority sibling. It stops short of naming `aio_lookup_org_priority` as the counterpart, so the differentiation is inferable rather than explicit.

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 tells the agent this is the legacy September 2026 statute-only edition and points to the current unified hierarchy with a concrete URL and data path, which is real routing guidance. It does not state a crisp 'use tool X instead when Y', so the agent must draw the conclusion itself.

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.