{"id":102100,"target_id":"6d745d4d465f2e09","observed_at":"2026-11-12T21:44:59Z","from_subject":"sha256-ewoB64NK6XConHWlMkXOkFqnnbemu2+u1d85Nttt81A=","to_subject":"sha256-tw/4YKfXy+vfpc0nFeV6qYqv7GwUkZtceslyYJ3IMR4=","from_toolset":"sha256-tiSIhKub17zqOgJt7MMy1r9YKOcNKzenJ6wUT6LaMTY=","to_toolset":"sha256-/303irR19GsYjpHCXaLA+xL5Ioj9kOcSAMCa803IDY8=","summary":{"added":[],"removed":[],"modified":[{"tool":"qv_amendments","fields":{"description":[["=","Which laws amended this one, which this one amends, and which of its articles were amended.\n\n    Returns "],["-","`amended_by`"],["+","`amended_by`, `amends`"],["="," and "],["-","`amends`"],["+","`articles`"],["="," "],["-","(id, title, approval date) and `articles`: section"],["+","(section"],["="," id, label, "],["-","number"],["+","changes,"],["="," "],["-","of"],["+","latest). Full history: qv_article_history."],["=","\n    "],["-","changes and the latest change. Read one article's full history with qv_article_history(section_id).\n    "]],"inputSchema":[{"path":"$.\"properties\".\"ids\".\"description\"","old":"\"Law id (IDS) from qv_search, digits only, e.g. '12021850837713548188'.\"","new":"\"Id from qv_search, e.g. '12021850837713548188'.\""},{"path":"$.\"properties\".\"limit\".\"description\"","old":"\"Max amending/amended laws listed per direction.\"","new":"\"Max laws per direction.\""}]}},{"tool":"qv_article_history","fields":{"description":[["=","Every amendment of one article: type (اصلاحی...), date, the amending law and the replacing text.\n\n    "],["-","Use after qv_law or qv_amendments when asked how an article changed. "],["=","Oldest change "],["-","first."],["+","first;"],["="," "],["-","An"],["+","empty"],["="," "],["-","article that\n    was"],["+","if"],["="," never "],["-","amended returns an empty list."],["+","amended."],["=","\n    "]],"inputSchema":[{"path":"$.\"properties\".\"section_id\".\"description\"","old":"\"Section id from qv_law (items marked history) or qv_amendments.\"","new":"\"Section id from qv_law or qv_amendments.\""}]}},{"tool":"qv_law","fields":{"description":[["=","Read the"],["-"," full"],["="," text of a law, regulation, court vote or opinion as sections (articles, notes, headings).\n\n    "],["-","Each section has"],["+","Sections:"],["="," `id`, "],["-","`label` ('ماده 10', 'تبصره 1'),"],["+","`label`,"],["="," `text`, `status` "],["-","('amended',"],["+","(amended,"],["="," "],["-","'repealed',"],["+","repealed,"],["="," "],["-","'opinion'; absent\n    when plain) and"],["+","opinion),"],["="," `history: true` "],["-","when"],["+","(see"],["="," "],["-","qv_article_history can show its amendments. Long laws are paged"],["+","qv_article_history).\n    Paged"],["="," by"],["-","\n    "],["+"," "],["=","`offset`/`next_offset` within `max_chars`; the civil code "],["-","has about 1,500 sections and "],["=","takes about 15 "],["-","s to load\n    the first time. Get the id from qv_search."],["+","s."],["="," Use `article` "],["-","to"],["+","for"],["="," "],["-","answer"],["+","one"],["="," "],["-","\"what does article N say\"."],["+","article."],["=","\n    "]],"inputSchema":[{"path":"$.\"properties\".\"article\".\"description\"","old":"\"Only this article with its notes, e.g. '10', 'ماده 10', '10 مکرر'.\"","new":"\"Only this article with its notes, e.g. '10', '10 مکرر'.\""},{"path":"$.\"properties\".\"date\".\"description\"","old":"\"Jalali 'YYYY/MM/DD': the text as it stood on that date (before later amendments).\"","new":"\"Jalali 'YYYY/MM/DD': text as of that date.\""},{"path":"$.\"properties\".\"ids\".\"description\"","old":"\"Law id (IDS) from qv_search, digits only, e.g. '12021850837713548188'.\"","new":"\"Id from qv_search, e.g. '12021850837713548188'.\""},{"path":"$.\"properties\".\"max_chars\".\"description\"","old":"\"Text budget per call.\"","new":"\"Text budget.\""},{"path":"$.\"properties\".\"offset\".\"description\"","old":"\"Skip this many sections (use next_offset from the last call).\"","new":"\"Sections to skip (next_offset).\""},{"path":"$.\"properties\".\"with_opinions\".\"description\"","old":"\"Add interpretive opinions (نظر تفسیری) as extra sections.\"","new":"\"Add interpretive opinions (نظر تفسیری).\""}]}},{"tool":"qv_law_info","fields":{"description":[["=","Metadata of a law: type, "],["-","approving body,"],["+","approver,"],["="," approval, notification and gazette "],["-","dates and numbers, last"],["+","data,"],["="," status,"],["-","\n    effective date,"],["="," executing "],["-","bodies and recipients of the copy."],["+","bodies."],["=","\n\n    Use"],["-"," after qv_search"],["="," to cite a law "],["-","(\"approved 1318/..., published in gazette no. ...\") "],["=","or"],["-"," to"],["="," check its"],["-","\n    "],["+"," "],["=","type. Court votes and opinions carry almost "],["-","no metadata. Dates are Jalali."],["+","none."],["=","\n    "]],"inputSchema":[{"path":"$.\"properties\".\"ids\".\"description\"","old":"\"Law id (IDS) from qv_search, digits only, e.g. '12021850837713548188'.\"","new":"\"Id from qv_search, e.g. '12021850837713548188'.\""}]}},{"tool":"qv_lookup","fields":{"description":[["=","Find the ids that qv_search filters take: approving bodies, executing bodies, subjects, types, statuses, lists.\n\n    Returns items with `id` and "],["-","name;"],["+","name"],["="," "],["-","approvers, executors and subjects also have"],["+","(plus"],["="," `count` "],["-","(documents)"],["+","for"],["="," "],["-","and"],["+","approver,"],["="," "],["-","are"],["+","executor, subject)."],["=","\n    "],["-","paged by 20. Example: kind='approver', query='مجلس' gives the Majlis id to pass as approver_id.\n    "]],"inputSchema":[{"path":"$.\"properties\".\"kind\".\"description\"","old":"\"'approver' (مرجع تصویب), 'executor' (دستگاه مجری), 'subject' (موضوع), 'type' (نوع مصوبه), 'status' (وضعیت) or 'list' (curated lists).\"","new":"\"approver (مرجع تصویب), executor (دستگاه مجری), subject (موضوع), type, status or list.\""},{"path":"$.\"properties\".\"page\".\"description\"","old":"\"Page of 20 for approver, executor and subject.\"","new":"\"Pages of 20 (approver, executor, subject).\""},{"path":"$.\"properties\".\"query\".\"description\"","old":"\"Name fragment, e.g. 'دیوان' or 'بانک'. Empty lists the most used.\"","new":"\"Name fragment, e.g. 'دیوان'. Empty lists the most used.\""}]}},{"tool":"qv_related","fields":{"description":[["=","Documents related to a law: other laws, and regulations, "],["-","court "],["=","votes and"],["-"," legal"],["="," opinions that cite "],["-","or\n    interpret "],["=","it "],["-","(hundreds for the civil code, newest"],["+","(newest"],["="," first).\n\n    Returns `laws` and "],["-","`others`,"],["+","`others`"],["="," "],["-","each"],["+","(id,"],["="," "],["-","with"],["+","title,"],["="," "],["-","id, title and date;"],["+","date);"],["="," read any with qv_law."],["-"," Votes of the"],["=","\n    "],["-","Administrative Justice Court and opinions are listed by title only.\n    "]],"inputSchema":[{"path":"$.\"properties\".\"ids\".\"description\"","old":"\"Law id (IDS) from qv_search, digits only, e.g. '12021850837713548188'.\"","new":"\"Id from qv_search, e.g. '12021850837713548188'.\""},{"path":"$.\"properties\".\"limit\".\"description\"","old":"\"Max related documents returned per group.\"","new":"\"Max per group.\""}]}},{"tool":"qv_search","fields":{"description":[["=","Search the Iranian law and regulation database "],["-","(qavanin.ir, 168,000 documents)"],["+","(qavanin.ir)"],["="," and list matching titles.\n\n    Returns "],["-","total"],["+","total,"],["="," "],["-","hits, page count"],["+","pages"],["="," and items "],["-","with"],["+","(`id`"],["="," "],["-","`id`"],["+","for"],["="," "],["-","(the"],["+","the"],["="," "],["-","IDS"],["+","other"],["="," "],["-","to give qv_law, qv_law_info, qv_amendments and\n    qv_related),"],["+","tools,"],["="," title, "],["-","approval"],["+","approved,"],["="," "],["-","date"],["+","approver,"],["="," "],["-","(Jalali),"],["+","`repealed`)."],["="," "],["-","approving body and `repealed` for repealed ones. Text search shows\n    no"],["+","No"],["="," snippets."],["+","\n    Date"],["="," "],["-","Use for \"which law covers X\", \"all regulations of body Y in a date range\" and \"latest laws\".\n    Sorting by date"],["+","sort"],["="," has"],["-"," many"],["="," ties, so "],["+","deep "],["=","paging"],["-"," a long list"],["="," may repeat or skip "],["-","a row;"],["+","rows;"],["="," narrow the filters instead.\n    "]],"inputSchema":[{"path":"$.\"properties\".\"approved_from\".\"description\"","old":"\"Approval date from, Jalali 'YYYY/MM/DD'.\"","new":"\"Jalali 'YYYY/MM/DD'.\""},{"path":"$.\"properties\".\"approved_to\".\"description\"","old":"\"Approval date to, Jalali 'YYYY/MM/DD'.\"","new":"\"Jalali 'YYYY/MM/DD'.\""},{"path":"$.\"properties\".\"approver_id\".\"description\"","old":"\"Approving body ids from qv_lookup(kind='approver'); several are OR-ed.\"","new":"\"Ids from qv_lookup(kind='approver'); OR-ed.\""},{"path":"$.\"properties\".\"command_no\".\"description\"","old":"\"Notification number (شماره ابلاغ), digits, substring.\"","new":"\"شماره ابلاغ, digits, substring.\""},{"path":"$.\"properties\".\"executor_id\".\"description\"","old":"\"Executing body ids from qv_lookup(kind='executor').\"","new":"\"Ids from qv_lookup(kind='executor').\""},{"path":"$.\"properties\".\"in_text\".\"description\"","old":"\"Search the full text of every law, not only the titles.\"","new":"\"Search full text, not only titles.\""},{"path":"$.\"properties\".\"kind\".\"description\"","old":"\"'law' (Majlis statutes), 'regulation', 'vote' (court rulings), 'opinion' (legal opinions).\"","new":"\"law (Majlis statutes), regulation, vote (court rulings), opinion.\""},{"path":"$.\"properties\".\"limit\".\"description\"","old":"\"Results per page.\""},{"path":"$.\"properties\".\"list_id\".\"description\"","old":"\"A curated list id from qv_lookup(kind='list'), e.g. 113 for the latest laws.\"","new":"\"Id from qv_lookup(kind='list'), e.g. 113 latest laws.\""},{"path":"$.\"properties\".\"match\".\"description\"","old":"\"'all_words' every word as a whole word, 'phrase' words adjacent, 'part_of_word' substring match (the site default, widest), 'any_word' at least one whole word.\"","new":"\"all_words: every whole word; phrase: adjacent; part_of_word: substring (widest); any_word.\""},{"path":"$.\"properties\".\"newspaper_no\".\"description\"","old":"\"Official gazette number (شماره روزنامه رسمی), digits, substring.\"","new":"\"شماره روزنامه رسمی, digits, substring.\""},{"path":"$.\"properties\".\"page\".\"description\"","old":"\"Page number, from 1.\"","new":"\"From 1.\""},{"path":"$.\"properties\".\"query\".\"description\"","old":"\"Words to find, Persian or Arabic letters, e.g. 'مالیات بر ارزش افزوده'.\"","new":"\"Words to find, e.g. 'مالیات بر ارزش افزوده'.\""},{"path":"$.\"properties\".\"sort\".\"description\"","old":"\"By approval date, or 'title' (alphabetical by database collation; stable for paging).\"","new":"\"By approval date, or alphabetical 'title' (stable for paging).\""},{"path":"$.\"properties\".\"status\".\"description\"","old":"\"Legal status. 'repealed' = منسوخه; 'moot' = بااجرامنتفی می شود. 'valid' undercounts.\"","new":"\"Legal status; 'valid' undercounts.\""},{"path":"$.\"properties\".\"subject_id\".\"description\"","old":"\"Subject ids from qv_lookup(kind='subject').\"","new":"\"Ids from qv_lookup(kind='subject').\""},{"path":"$.\"properties\".\"type_id\".\"description\"","old":"\"Document type ids from qv_lookup(kind='type').\"","new":"\"Ids from qv_lookup(kind='type').\""}]}}],"detail":"full","newAddresses":[],"newAddressesTotal":0},"label_id":"urn:uuid:22baea3e-3361-4c1b-8cc9-e79c3bed9a8c","run_id":370467,"from_package_version":"0.1.2","to_package_version":"0.2.1","from_server_version":"0.1.2","to_server_version":"0.2.1","from_registry_version":"0.2.0","to_registry_version":"0.2.1","name":"io.github.sepehr071/qavanin-mcp","endpoint":"pypi:qavanin-mcp","title":"Qavanin"}