lagrum_eu_cases_bm25
ChatGPTBM25 keyword search across EU legal cases. Searches the Markdown body of each judgment, the formatted case code, and the article references. Up to 12 keywords, AND-combined. Returns snippets and ranks; lower rank = more relevant. Use lagrum_eu_legal_case_text with the celexCode of a case_law_text hit to read the full case. All text returned by this tool is in Swedish. Free-text parameters (e.g. keywords, subchapter names) should be supplied in Swedish.
lagrum_eu_cases_by_article
ChatGPTReturn the EU legal cases that reference a specific article of a specific regulation. articleReference is the article-level EUR-Lex Cellar compact form (e.g. 'A05', 'A05a', 'A05BIS'). Sub-article-level strings with paragraph/point suffixes like 'A05P1' or 'A05LA' are rejected with 400 — use by-regulation for finer-grained searches. Use lagrum_eu_legal_case_text with the returned legalCaseCelexCode to read the full case. All text returned by this tool is in Swedish.
lagrum_eu_cases_by_directive_article
ChatGPTReturn all EU legal cases that reference a specific article of a specific directive. articleReference is the article-level EUR-Lex Cellar compact form (e.g. 'A05', 'A05a', 'A05BIS'). Sub-article-level strings with paragraph/point suffixes like 'A05P1' or 'A05LA' are rejected with 400 — use lagrum_eu_directives_cases_by_directive for finer-grained searches. Use lagrum_eu_legal_case_text with the returned legalCaseCelexCode to read the full case. All text returned by this tool is in Swedish.
lagrum_eu_cases_by_regulation
ChatGPTReturn every (legal_case_celex, article_reference) pair that references one regulation. The article_reference uses the EUR-Lex Cellar compact form (e.g. 'A05P1' = Article 5, paragraph 1). Useful when you want a complete cross-reference table for one regulation. Results are supplemented from EUR-Lex Communication: new case documents so judgments whose cross-reference entry has not been indexed yet are still returned. Cases discovered that way carry an empty articleReferences list, because the relationship is recorded at act level. All text returned by this tool is in Swedish.
lagrum_eu_directives_articles_text
ChatGPTFetch the full Markdown text of up to 50 EU directive articles in one call. Use the celexCode + articleReference (EUR-Lex Cellar compact form, e.g. 'A05', 'A05a', 'A05BIS') from lagrum_eu_directives_bm25 or lagrum_eu_directives_toc. Only article-level references are accepted: sub-article-level strings with paragraph/point suffixes like 'A05P1' or 'A05LA' are rejected with 400. Articles not found are listed under notFound. All text returned by this tool is in Swedish.
lagrum_eu_directives_bm25
ChatGPTSearch EU directives by up to 12 Swedish keywords (AND match). Returns ranked snippets from articles, recitals and other sections. Use a hit’s CELEX code and articleReference with lagrum_eu_directives_articles_text for the full article.
lagrum_eu_directives_cases_by_directive
ChatGPTReturn every (legal_case_celex, article_reference) pair that references one directive. The article_reference uses the EUR-Lex Cellar compact form (e.g. 'A05P1' = Article 5, paragraph 1). Useful when you want a complete cross-reference table for one directive. Results are supplemented from EUR-Lex Communication: new case documents so judgments whose cross-reference entry has not been indexed yet are still returned. Cases discovered that way carry an empty articleReferences list, because the relationship is recorded at act level. All text returned by this tool is in Swedish.
lagrum_eu_directives_toc
ChatGPTReturn the hierarchical table of contents (subdivisions → chapters → sections → articles) of one EU directive, identified by its CELEX code. Use the basic-directive form (e.g. '31995L0046' for the Data Protection Directive) for the directive as adopted, or the consolidated form (e.g. '01995L0046-20180525') for a specific consolidated version. All text returned by this tool is in Swedish.
lagrum_eu_legal_case_text
ChatGPTGet the full Markdown body of an EU legal case (CJEU judgment), plus the regulations it references. Accepts either the celex_code_for_legal_case (e.g. '62019CJ0439') or the formatted case code (e.g. 'C-439/19'). Use the regulationsReferenced list to look up article text via lagrum_eu_regulations_articles_text. All text returned by this tool is in Swedish.
lagrum_eu_regulations_articles_text
ChatGPTFetch the full Markdown text of up to 50 EU regulation articles in one call. Use the celexCode + articleReference (EUR-Lex Cellar compact form, e.g. 'A05', 'A05a', 'A05BIS') from lagrum_eu_regulations_bm25 or lagrum_eu_regulations_toc. Only article-level references are accepted: sub-article-level strings with paragraph/point suffixes like 'A05P1' or 'A05LA' are rejected with 400. Articles not found are listed under notFound. All text returned by this tool is in Swedish.
lagrum_eu_regulations_bm25
ChatGPTSearch EU regulations by up to 12 Swedish keywords (AND match). Returns ranked snippets from articles, recitals and other sections. Use a hit’s CELEX code and articleReference with lagrum_eu_regulations_articles_text for the full article.
lagrum_eu_regulations_toc
ChatGPTReturn the hierarchical table of contents (subdivisions → chapters → sections → articles) of one EU regulation, identified by its CELEX code. Use the basic-regulation form (e.g. '32016R0679' for GDPR) for the regulation as adopted, or the consolidated form (e.g. '02016R0679-20160504') for a specific consolidated version. All text returned by this tool is in Swedish.
lagrum_eu_treaties_articles_text
ChatGPTFetch the full Swedish Markdown text of up to 50 EU treaty articles. Supply a treaty CELEX code and article-level reference such as A005. Use lagrum_eu_treaties_bm25 or lagrum_eu_treaties_toc to find valid references.
lagrum_eu_treaties_bm25
ChatGPTSearch EU treaties by up to 12 Swedish keywords (AND match). Returns ranked article and preamble snippets. Use a hit’s CELEX code and articleReference with lagrum_eu_treaties_articles_text for full text.
lagrum_eu_treaties_cases_by_article
ChatGPTFind CJEU cases that cite a specified EU treaty article. Supply a treaty CELEX code and a three-digit article-level reference such as A005. Use lagrum_eu_legal_case_text to read a returned case. Results are supplemented from EUR-Lex Communication: new case documents so judgments whose cross-reference entry has not been indexed yet are still returned; because a CN relationship naming a 9-char article CELEX is recorded at article granularity, those judgments are returned with the matching A0NN articleReference.
lagrum_eu_treaties_cases_by_treaty
ChatGPTReturn every (legal_case_celex, article_reference) pair that references one treaty. The article_reference uses the EUR-Lex Cellar compact form (e.g. 'P1', 'L1', 'LA', 'P1L2'). Useful when you want a complete cross-reference table for one treaty. Results are supplemented from EUR-Lex Communication: new case documents so judgments whose cross-reference entry has not been indexed yet are still returned. Cases discovered that way may carry an empty articleReferences list, because the relationship may name a protocol or table-of-contents work rather than an article. All text returned by this tool is in Swedish.
lagrum_eu_treaties_toc
ChatGPTList the articles and preamble of an EU treaty identified by a six-character treaty CELEX code, such as 12016E. Nine-character article CELEX codes are also accepted. Returns article references for full-text lookup.
lagrum_get_bet_pages
ChatGPTGet specific pages (up to 100) from a single Betänkande (committee report) document, identified by its identifier. Identifier format: 'yyyy:XXnn' or 'yyyy/yy:nn' (e.g. '2005/06:BoU10'). Use lagrum_search_bet_pages to find relevant page numbers first. All text returned by this tool is in Swedish.
lagrum_get_case_details
ChatGPTGet the full details of a Swedish legal case. Accepts any of: case number (målnummer, e.g. 'T 1234-20'), referatnummer (e.g. 'NJA 2000 s. 488'), or labour-court case number (e.g. 'AD 2020 nr 50'). Returns full sammanfattning, fullständig innehall, related cases, preparatory works, etc. plus the list of paragraphs the case references (adjusted for renumberings). All text returned by this tool is in Swedish.
lagrum_get_laws_by_area
ChatGPTBrowse Swedish laws by legal area. Omit code to list area headings and subheadings; pass a returned heading code to list the laws and their SFS codes.
lagrum_get_legal_cases_for_paragraph
ChatGPTGet Swedish legal cases (rättsfall) that reference a specific paragraph. The API automatically follows paragraph renumberings so cases across all historical versions of the paragraph are returned. Each case carries malNummer, avgorandeDatum, domstolNamn and sammanfattning. Use lagrum_get_case_details with malNummer (or a referatnummer like 'NJA 2000 s. 488') to read the full case. All text returned by this tool is in Swedish.
lagrum_get_paragraph_changes
ChatGPTRetrieve the amendment and renumbering history of a canonical SFS paragraph. Returns changeActions, renumberingEvents and proposition, committee-report and parliamentary-decision references. Follow the renumbering chain for older amendments; retrieve cited documents with the relevant document tools.
lagrum_get_paragraph_text
ChatGPTGet the full text of up to 50 legal paragraphs (lagparagrafer) in one call. Each paragraph must use its canonical paragraph_number ID (K{n}P{n} or P{n}, e.g. K12P1, K12P55f, P1). Human-readable citation forms such as '12:1' or '4 §' are rejected by the API. If you only have a human-readable citation, use lagrum_search_paragraphs first to discover the canonical paragraphNumber. Returns chapter, subchapter, paragraphNumber and full paragraphText. All text returned by this tool is in Swedish.
lagrum_get_paragraph_text_from_chapter
ChatGPTRetrieve full Swedish paragraphs in an SFS law by chapter number or section heading. Use chapterNumber from lagrum_get_toc as a bare digit string. Omit both filters to retrieve every paragraph of a chapterless law.
lagrum_get_prop_pages
ChatGPTGet specific pages (up to 100) from a single Proposition (government bill) document, identified by its identifier. Identifier format: 'yyyy/yy:nn' or 'yyyy:nn' (e.g. '2005/06:80'). Use lagrum_search_prop_pages to find relevant page numbers first. All text returned by this tool is in Swedish.
lagrum_get_rskr_text
ChatGPTGet the full HTML text of a Riksdagsskrivelse (parliamentary decision). Identifier format: 'yyyy/yy:nnn' or 'yyyy:nnn' (e.g. '2018/19:266'). Find candidates via lagrum_get_paragraph_changes. All text returned by this tool is in Swedish.
lagrum_get_swedish_government_web_page_text
ChatGPTRead the stored text of a Swedish government authority web page using a URL returned by lagrum_search_swedish_government_web_pages. Pass the URL exactly as it was returned -- the lookup is an exact match against the local index. Returns the source URL, title, heading outline and up to 20,000 characters of page text. truncated indicates whether text was cut, and totalChars gives the stored page's full character count. Only the page prefix is available; there is no pagination. Content is mainly Swedish, with some English-language pages. Reads only the local scraped snapshot; the live website is not fetched.
lagrum_get_toc
ChatGPTBrowse a Swedish law by SFS code to find its chapter structure and canonical paragraph IDs. Returns chapterNumber and paragraphNumbersOnly where available. For chapterless laws, returns section headings or top-level paragraphNumbersOnly. Use lagrum_get_paragraph_text for full text. Content is in Swedish.
lagrum_search_bet_pages
ChatGPTBM25 keyword search inside a single Betänkande (committee report) document. Identifier format: 'yyyy/yy:nn' (e.g. '2007/08:SkU10'). Returns ranked snippets and page numbers; lower bm25Rank = more relevant. Then call lagrum_get_bet_pages with the returned page numbers. All text returned by this tool is in Swedish. Free-text parameters (e.g. keywords, subchapter names) should be supplied in Swedish.
lagrum_search_cases
ChatGPTFind Swedish legal cases by 1–20 Swedish keywords (AND match). Returns up to 200 ranked cases and their currentParagraphs adjusted for renumbering. Use lagrum_get_case_details for the full case.
lagrum_search_paragraphs
ChatGPTFind Swedish statute paragraphs by 1–20 Swedish keywords (AND match). Returns up to 1,000 ranked matches with SFS codes and canonical paragraph IDs. Use lagrum_get_paragraph_text to read full text.
lagrum_search_prop_pages
ChatGPTBM25 keyword search inside a single Proposition document. Identifier format: 'yyyy/yy:nn' or 'yyyy:nn' (e.g. '1982/83:11'). Returns ranked snippets and page numbers; lower bm25Rank = more relevant. Then call lagrum_get_prop_pages with the returned page numbers. All text returned by this tool is in Swedish. Free-text parameters (e.g. keywords, subchapter names) should be supplied in Swedish.
lagrum_search_swedish_government_web_pages
ChatGPTSearch a local snapshot of Swedish government authorities' websites, for example skatteverket.se, socialstyrelsen.se and transportstyrelsen.se. Returns relevant pages with source URLs, titles, heading outlines, snippets and a selected section prefix of up to 3,000 characters per page. The prefix can omit a later match within that section. Keywords are combined with AND; if no pages match, the search retries with OR and reports the mode used. Results are ordered by relevance. Prefer Swedish keywords and use root words for broader matches. Content is mainly Swedish, with some English-language pages. Live websites are not fetched. Use lagrum_get_swedish_government_web_page_text to read more of a returned page.