legalize_get_meta
Retrieve frontmatter metadata from national legislation using country code and law ID for citation checks.
Instructions
Fetch only a law's frontmatter metadata (no body) - cheap for citation checks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| law_id | Yes | the filename stem. | |
| country | Yes | ISO-3166 alpha-2 code. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rank | No | Country-specific legal text type. | |
| extra | No | Country-specific frontmatter fields. | |
| title | No | ||
| law_id | Yes | Official identifier (the .md filename stem). | |
| status | No | in_force | repealed | ... | |
| country | Yes | ||
| github_url | Yes | Raw provenance URL on github.com/legalize-dev. | |
| source_url | No | Official source URL (frontmatter `source`). | |
| last_updated | No | ||
| publication_date | No | ||
| human_readable_citation | No |