Skip to main content
Glama

hu_get_text

Read-onlyIdempotent

Fetch the complete HTML text of a Hungarian legal document using its type, year, and serial number.

Instructions

Fetch the full document HTML content of a Hungarian piece of legislation.

For Acts (torveny), pass doc_type="TV" and omit issuer. For anything else, pass the issuer code (case-sensitive - use hu_list_issuers).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearYes4-digit year.
issuerNoNJT issuer code, case-sensitive (required for everything except `"TV"`).
serialYesthe document's serial number within that year.
doc_typeYesNJT type code, e.g. ``"TV"`` (torveny / Act) or ``"R"`` (rendelet / decree).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearYes
titleNo
formatNonjt-html-fragment
issuerNo
serialYes
contentNo
eli_uriNo
doc_typeYes
subtitleNo
byte_sizeNo
source_urlNo
dataset_noteNoNemzeti Jogszabalytar (NJT) is Hungary's official, free-to-use national legislation database, maintained by MKIFK (Magyar Kozlonykiado es Igazsagugyi Forditokozpont Zrt.) at njt.jog.gov.hu. Hungary publishes a genuine, documented national ELI (European Legislation Identifier) URI scheme since 2023 (see /eli/urisemak). Each ELI URI resolves (HTTP 302) to a server-rendered HTML document page carrying the consolidated (currently-in-force, unless a historical date is requested) text of the act. There is no REST/JSON API and no headless full-text search - the search/browse UI is an AngularJS SPA that requires a session and JavaScript; documents must be addressed by a known ELI (type + year + serial, and an issuer code for non-Act types).
in_force_dateNo
human_readable_citationNo
Behavior4/5

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

Annotations already mark the tool as read-only, idempotent, and non-destructive, so the description doesn't need to restate safety. It adds value by disclosing that the output is HTML content, that issuer codes are case-sensitive, and that the tool behaves differently for Acts vs. other document types, which enriches the behavioral understanding.

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?

The description is extremely concise: two short sentences that front-load the main purpose, followed by a focused usage note. Every word contributes, with no repetition or filler, making it easy to parse quickly.

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 read-only annotations, full schema coverage, and the presence of an output schema, the description fully covers the essential use cases. It explains the key distinction between Acts and other documents, which is the main contextual complexity, and doesn't leave obvious gaps for a tool of this simplicity.

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?

The schema covers all four parameters with descriptions, giving a baseline of 3. The description elevates this by explaining the relationship between doc_type and issuer (omit issuer for TV, require issuer otherwise) and providing concrete examples like 'TV' and 'R'. This goes beyond mere parameter listing.

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 opens with a specific verb and resource: 'Fetch the full document HTML content of a Hungarian piece of legislation.' This clearly states the tool's function, and the subsequent guidance about Acts vs. other types differentiates it from sibling tools like hu_get_act or hu_get_legislation.

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

Usage Guidelines5/5

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

The description explicitly tells when to pass doc_type="TV" and omit issuer, and when to pass the issuer code, even directing users to hu_list_issuers for valid codes. This provides concrete conditions for use and points to a sibling tool, making usage guidance clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/matematicsolutions/hu-eli-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server