Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
QAVANIN_MCP_PROXYNoOptional HTTP proxy for requests to qavanin.ir.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
qv_lawA

Read the full text of a law, regulation, court vote or opinion as sections (articles, notes, headings).

Each section has id, label ('ماده 10', 'تبصره 1'), text, status ('amended', 'repealed', 'opinion'; absent when plain) and history: true when qv_article_history can show its amendments. Long laws are paged by offset/next_offset within max_chars; the civil code has about 1,500 sections and takes about 15 s to load the first time. Get the id from qv_search. Use article to answer "what does article N say".

qv_law_infoA

Metadata of a law: type, approving body, approval, notification and gazette dates and numbers, last status, effective date, executing bodies and recipients of the copy.

Use after qv_search to cite a law ("approved 1318/..., published in gazette no. ...") or to check its type. Court votes and opinions carry almost no metadata. Dates are Jalali.

qv_amendmentsA

Which laws amended this one, which this one amends, and which of its articles were amended.

Returns amended_by and amends (id, title, approval date) and articles: section id, label, number of changes and the latest change. Read one article's full history with qv_article_history(section_id).

qv_article_historyA

Every amendment of one article: type (اصلاحی...), date, the amending law and the replacing text.

Use after qv_law or qv_amendments when asked how an article changed. Oldest change first. An article that was never amended returns an empty list.

qv_relatedA

Documents related to a law: other laws, and regulations, court votes and legal opinions that cite or interpret it (hundreds for the civil code, newest first).

Returns laws and others, each with id, title and date; read any with qv_law. Votes of the Administrative Justice Court and opinions are listed by title only.

qv_searchA

Search the Iranian law and regulation database (qavanin.ir, 168,000 documents) and list matching titles.

Returns total hits, page count and items with id (the IDS to give qv_law, qv_law_info, qv_amendments and qv_related), title, approval date (Jalali), approving body and repealed for repealed ones. Text search shows no snippets. Use for "which law covers X", "all regulations of body Y in a date range" and "latest laws". Sorting by date has many ties, so paging a long list may repeat or skip a row; narrow the filters instead.

qv_lookupA

Find the ids that qv_search filters take: approving bodies, executing bodies, subjects, types, statuses, lists.

Returns items with id and name; approvers, executors and subjects also have count (documents) and are paged by 20. Example: kind='approver', query='مجلس' gives the Majlis id to pass as approver_id.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.2/5.0

Scored across 7 tools

Disambiguation4/5

Each tool targets a distinct aspect: search, filter-id lookup, full text, metadata, amendment relationships, per-article history, and related documents. The only real overlap is between qv_amendments (summary of which laws amended this one) and qv_article_history (full history of one article), but the descriptions explicitly cross-reference each other to clarify the boundary.

Naming Consistency4/5

All tools share a consistent 'qv_' prefix and readable snake_case suffixes, giving a predictable family. However, the convention mixes verbs (qv_lookup, qv_search) with nouns (qv_law, qv_law_info, qv_amendments, qv_related), so it is mostly rather than fully consistent.

Tool Count5/5

Seven tools is well-scoped for a read-only legal database, with each tool earning its place by covering a distinct layer (search, lookup, read, metadata, amendments, history, relations). No redundant or filler tools are present.

Completeness4/5

The surface covers the full read lifecycle of a law: find it, resolve filter ids, read its text, get metadata, trace amendments and related documents. Since the server is read-only over an external corpus, CRUD is not expected; minor gaps like a direct citation/formatter or bulk-export tool remain but are workable via existing tools.

Maintenance

ActivityNo data
ResponsivenessNo issues