add_case_note
ChatGPTAdd a progress note, hearing update, or log entry to an existing case file.
add_diary_entry
ChatGPTSchedule a new court hearing, compliance deadline, or task in the lawyer's court diary.
create_case_file
ChatGPTCreate a new legal case file in the lawyer's case management dashboard.
draft_contract
ChatGPTGenerate a fully structured, commercially realistic, and legally enforceable contract under Pakistani laws (e.g., Contract Act 1872).
draft_petition
ChatGPTGenerate a fully formatted, professional, filing-ready legal petition or application for Pakistani courts grounded in actual statutes and case law.
get_case_details
ChatGPTGet complete details of a specific case file including clients, notes, and compliance checklist items.
get_judge_profile
ChatGPTGet detailed profile and statistics for a specific Pakistani judge, including their recent landmark cases and judgments.
get_judgment
ChatGPTRetrieve the full text, headnotes, and court PDF download of a specific judgment by its unique UUID, citation string, or caseLaw:N ID from search results. When sourceTable is 'case_law', full text may not be available. ASSISTANT INSTRUCTION: Use ONLY the text this tool returns; never supply a judgment body, holding, or quotation from memory. textIntegrity is one of 'own' (safe), 'mislabeled', 'unknown' or 'missing'. If 'textIntegrity' is 'mislabeled', the stored body is a DIFFERENT case - the one named in 'belongsTo' - so do not present it as this citation's judgment; tell the user and offer to fetch 'belongsTo' instead. If 'textIntegrity' is 'unknown', the stored body is not uniquely bound to this citation - say so and do not attribute its contents to the citation. If 'textIntegrity' is 'missing', state that no judgment text is stored. To provide the official Court PDF file to the user, link to 'pdfUrl'. To open the interactive case page on AlWakeelo, link to 'sourceUrl'. If this tool errors, report that the judgment was not found rather than answering from memory.
get_precedent_graph
ChatGPTFetch the citation network for a judgment: the cases it cites and the cases that cite it, with treatment (referred_to, relied_upon, distinguished, overruled). Accepts a judgment UUID or a citation string. Each edge is extracted from the text of its SOURCE judgment, so an edge is only as trustworthy as that judgment's text: edges whose source holds text that is not its own are returned with reliable=false and must not be used to argue precedent. ASSISTANT INSTRUCTION: Only rely on edges with reliable=true. If truncated is true the graph is incomplete - never conclude from it that a judgment was never overruled or distinguished; say the check was partial and offer to raise limit. Never state that one case cited, relied on, distinguished or overruled another on the strength of a reliable=false edge, and never assert a citation relationship this tool did not return.
legal_research
ChatGPTPerform deep, multi-stage legal research across AlWakeelo's full RAG context (intent analysis, Voyage Law-2 embeddings, reranker, citation validation, and parent-child chunk resolution). Returns the grounded text context injected into LLM system prompts, plus a per-citation verification report. ASSISTANT INSTRUCTION: The context is retrieved text and may contain citations that do not exist. Only cite a citation listed in citations with verified=true. Never repeat, complete or reconstruct an unverified citation — refer to that material descriptively without a citation, or call search_case_law instead.
list_case_files
ChatGPTList the authenticated lawyer's case files. Optionally filter by status (active, pending, closed, archived).
list_diary_entries
ChatGPTList court hearing dates, trial schedules, and compliance tasks from the lawyer's diary for a given date range.
read_court_docket
ChatGPTRead the court docket, agenda, and compliance watch for a specific date or date range.
request_document_upload
ChatGPTPRIMARY DOCUMENT TOOL FOR ALL FILES & PDFs: Generates a secure, 1-click signed upload link for the user to upload any document, PDF, scan, or photo to a case file without consuming LLM quota (<30 tokens). ASSISTANT INSTRUCTION: Always present the returned uploadUrl to the user as a clear markdown link: '[Click here to upload document](uploadUrl)'.
search_case_law
ChatGPTSearch Pakistani judgments and case law using the exact AlWakeelo hybrid search pipeline (Voyage Law-2, reranker, and court boosts). By default ONLY returns fully verified results: the citation is confirmed to exist in the judgments table AND that judgment's stored text is confirmed to be its own, so citation/title/court/year are authoritative. A hit whose citation is real but whose stored text belongs to a different case is returned with verified=false, textIntegrity='mislabeled', a belongsTo citation, and its title and summary withheld. ASSISTANT INSTRUCTION: Only cite records returned by this tool with verified=true. Never reconstruct, complete, or guess a citation yourself. Never present the title or holdings of a record whose textIntegrity is not 'own'. If droppedUnverified > 0, tell the user some hits were withheld and why.
search_judges
ChatGPTSearch the Pakistani judges directory to find judges and see their statistics (case counts, courts, active years).
search_statutes
ChatGPTSearch Pakistani statutory provisions and acts using AlWakeelo's taxonomic matching logic.
update_diary_status
ChatGPTMark a court hearing or diary task as completed, record the outcome, and optionally schedule the next hearing date.