Skip to main content
Glama

get_relations

Read-onlyIdempotent

The relations of a provision on a date: Level 2 acts that implement it, Level 3 documents that explain it, provisions that cite it, defined terms it uses, amending acts and corrigenda — each with its basis, method and evidence (public keys only: the legal basis as the document states it, the consolidation, the corrigendum and its URL, the source object). Inverse edges are computed; targets are resolved on as_of. A relation starts on the date its source text exists (for a Q&A answer, the register's date of the answer); a source without a stated date has src_from null.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "ref": "<ref>"
    },
    "name": "get_relations"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesA page address (https://www.headlesslaw.com/… or a path such as /mica/articles/75) or a citation ("Art 75(3) MiCA", "Article 75(3) of Regulation (EU) 2023/1114", "2025/298", a CELEX number).
typeNoOne of implements, answers, guides, refers_to, uses_term, amended_by, corrected_by, related_annex.
as_ofNoA date YYYY-MM-DD.
releaseNoOptional release id (or its first 8+ hex characters) to pin a multi-call task to one release; releases stay available for 24 hours after they leave the live position. Outside that window the answer is release_unavailable (isError), naming the current release — never silently another release.
directionNoin or out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, closed-world and non-destructive behavior, so the safety profile is covered. The description adds genuinely useful semantics beyond that: inverse edges are computed, targets are resolved at as_of, and evidence is limited to public keys. It does not describe volume, pagination, or failure modes beyond the release window.

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

Conciseness3/5

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

The purpose is front-loaded and there is little outright filler, but the long em-dash enumeration and the nested parenthetical about evidence keys make it a dense run-on that is harder to parse than needed. Information density is high, yet readability suffers.

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 burden of explaining return content, and it does so by naming the evidence fields (legal basis, consolidation, corrigendum and URL, source object) and the date semantics. Missing only shape-level detail such as ordering or result size, which is minor for a read-only lookup.

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 baseline is 3. The prose does add meaning beyond the schema — it explains what the relation categories represent and how src_from is derived when a source has no stated date — but it never maps those prose categories onto the enumerated type values, and the direction parameter is left entirely to the schema.

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 specific verb+resource (the relations of a provision) and enumerates the relation classes returned (implementing acts, explanatory documents, citing provisions, defined terms, amending acts, corrigenda). An agent can tell this apart from retrieval siblings like get_provision or get_document. It does not explicitly name those siblings, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied rather than stated: the reader infers to use this when they need cross-references around a provision. There is concrete operational guidance about pinning a multi-call task to a release and about as_of-based resolution, but no explicit when-to-use/when-not or named alternative such as compare or get_definition.

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