vibelawyer
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| VIBELAWYER_MCP_PORT | No | The port to use when VIBELAWYER_MCP_TRANSPORT=http. Example: 8000. | |
| VIBELAWYER_MCP_TOKEN | No | Optional secret token for HTTP authentication when using HTTP transport. | |
| VIBELAWYER_MCP_TRANSPORT | No | The transport mode for the MCP server. Set to 'http' to enable HTTP transport (optional). Defaults to stdio if not set. |
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
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_volumesC | 列出本案全部卷宗:卷宗名称、文件名、总页数。阅卷第一步应先调用此工具掌握卷宗全貌。 参数结构(args 字段): {} |
| get_volume_outlineA | 获取某卷的逐页概览(每页字数 + 首行内容),用于在大卷中快速定位文书边界,再决定 read_pages 精读哪些页。 参数结构(args 字段): {volume(必填): 卷宗名称; max_pages(必填)} |
| read_pagesA | 读取指定卷宗的某一页码区间文本,每页标注页码。扫描件/乱码页会自动经本地中文OCR提取文字,故大多数页面可直接拿到可读文本。仅当某页仍提示 needs_ocr(OCR失败/空白页)时,才需改用 get_page_image 视觉识别(若环境支持视觉)或如实标注内容无法识别。所有引用须以 见《卷名》P起-止 的格式回溯到此处读取的页码。 参数结构(args 字段): {volume(必填): 卷宗名称(见 list_volumes 的名称,如:刑事侦查案卷); start_page(必填): 起始页码(1-based,含); end_page(必填): 结束页码(1-based,含)} |
| search_volumesB | 在卷宗中检索关键词,返回命中卷宗/页码与上下文片段。用于快速定位某事实、某人的所有出现位置。 参数结构(args 字段): {query(必填): 检索关键词(如人名、金额、罪名、日期); volume(必填)} |
| get_page_imageA | 将指定页渲染为图片返回(用于扫描件无文本层时的视觉识别)。模型应直接‘看图’提取文字与结构信息,再通过对应 record_* 工具登记。 参数结构(args 字段): {volume(必填): 卷宗名称; page(必填): 页码(1-based)} |
| set_case_basicC | 登记案件基本信息表:主体、涉嫌罪名、涉案金额、卷宗数量。 参数结构(args 字段): {case_name(必填); defendant(必填); charge(必填); total_amount(必填); volume_count(必填)} |
| record_partyA | 登记当事人基本情况(第一部分)。职务犯罪须填 position 与 appointment_history。 参数结构(args 字段): {name(必填): 姓名; volume(必填): 来源卷宗; page_start(必填): 来源起始页; page_end(必填): 来源结束页; gender(必填); ethnicity(必填); birth(必填); native_place(必填); id_no(必填); education(必填); occupation(必填); position(必填); appointment_history(必填); address(必填)} |
| record_indictmentA | 登记起诉书/起诉意见书内容(第二部分)。full_text_summary 应原样复制涉及被告人的指控事实。 参数结构(args 字段): {doc_type(必填): 文书类型:起诉书 / 起诉意见书; volume(必填): 来源卷宗; page_start(必填): 来源起始页; page_end(必填): 来源结束页; defendant(必填); charge(必填); total_amount(必填); issuer(必填); issue_date(必填); legal_basis(必填); sentencing_circumstances(必填); full_text_summary(必填)} |
| add_charged_factA | 登记起诉书指控的单笔事实(第三/四部分的整理依据)。 参数结构(args 字段): {index(必填): 第几笔事实(从1开始); description(必填): 该笔事实概述:时间/地点/人物/行为/金额; volume(必填): 来源卷宗; page_start(必填): 来源起始页; page_end(必填): 来源结束页; amount(必填); time_period(必填)} |
| record_statementA | 登记供述/辩解或证言。role=defendant(被告人)/codefendant(同案人)/witness(证人)。须提取笔录时间、办案人员、办案地点、是否同步录音录像、笔录内容;full_text 必须逐字转录全部问答(辩护引用原话是刚需,仅登记摘要视为未完成)。 参数结构(args 字段): {person(必填): 供述/证言人姓名; role(必填): defendant / codefendant / witness 之一; volume(必填): 卷宗; page_start(必填): 起始页; page_end(必填): 结束页; record_time(必填); investigators(必填); location(必填); has_av_recording(必填); occasion(必填); charged_fact_ref(必填); content_summary(必填); full_text(必填)} |
| record_procedural_docA | 登记程序性文书(第六部分)。包含从被调查至当前的全部程序性文书,需含文号、时间、地点。 参数结构(args 字段): {doc_type(必填): 文书类型:立案决定书/拘留/逮捕/取保候审/监视居住/搜查/扣押/鉴定意见/移送起诉等; volume(必填): 卷宗; page_start(必填): 起始页; page_end(必填): 结束页; doc_no(必填); time(必填); location(必填); fact_group(必填); content_summary(必填)} |
| record_documentary_evidenceA | 登记书证(第七部分,客观证据)。须列明时间、文件名称、卷宗页码、主要内容,并按待证事实分组(fact_group);含转账/流水内容的书证登记后再用 add_transaction 逐笔登记资金流水。 参数结构(args 字段): {name(必填): 文件名称; volume(必填): 卷宗; page_start(必填): 起始页; page_end(必填): 结束页; doc_no(必填); time(必填); source(必填); fact_group(必填); content_summary(必填)} |
| add_transactionA | 为已登记的书证逐笔登记资金流水(转账记录/回款/返利/工资提成等)。银行流水类书证必须逐笔登记,不得只写汇总——逐笔流水是金额勾稽与辩护核账的基础。 参数结构(args 字段): {evidence_name(必填): 所属书证名称(须与 record_documentary_evidence 登记的 name 完全一致); date(必填): 交易日期; payer(必填): 付款方; payee(必填): 收款方; amount(必填): 金额(保留原文表述,如 人民币45万元); account(必填); note(必填); page(必填)} |
| add_catalog_entryB | 登记阅卷目录(卷宗目录)一条:卷宗名称、页码、所含文件、笔录时间等。 参数结构(args 字段): {volume_name(必填): 卷宗名称; file_name(必填): 本卷所含文件名称; page_range(必填); doc_type(必填); record_time(必填); note(必填)} |
| record_conclusionsB | 登记阅卷结论:核心事实、证据链条、矛盾点、待核查疑点。供后续辩护意见参考。 参数结构(args 字段): {core_facts(必填); evidence_chain(必填); contradictions(必填); doubts(必填)} |
| record_funds_summaryA | 登记资金勾稽摘要(辩护关键数字):报案合计/合同合计/指控金额/已返还/违法所得/已退赔。由结论员在综合全部书证与笔录后计算登记;各口径不一致时必须在 note 中说明差异。 参数结构(args 字段): {reported_amount(必填); contract_amount(必填); charged_amount(必填); returned_amount(必填); illegal_income(必填); restitution(必填); note(必填)} |
| validate_citationsB | 校验所有已登记记录的来源引用是否落在真实卷宗页码区间内,返回不合规项。阅卷结束前必跑。 参数结构(args 字段): {} |
| get_workspace_summaryC | 查看当前阅卷工作区进度:各部分已登记记录数与案件基本信息。 参数结构(args 字段): {} |
| write_outputsC | 生成阅卷笔录(Word)与阅卷目录(Excel)(含案件信息表与结论),返回文件路径。 参数结构(args 字段): {fmt(必填)} |
| create_caseA | 创建案件会话:发现 case_dir 下卷宗 PDF,登记页数。返回 case_id 与卷宗清单. 随后可 start_review 获取宿主执行 playbook,或直接调用读卷/登记工具。 |
| list_casesA | 列出全部案件会话及状态. |
| get_case_statusB | 查询案件会话当前状态(含工作区登记计数). |
| start_reviewA | 下发标准阅卷 playbook,由宿主 Agent 按 steps 顺序调用 MCP 工具完成阅卷. 不再启动后台 Claude/LLM job(不依赖 Claude Code CLI)。 model / effort / max_turns 由宿主自行决定,本参数仅保留兼容、写入提示。 进度请用 get_case_status / get_workspace_summary 查看登记计数。 |
| get_review_progressA | 查询阅卷进度:无后台 job;请结合 get_case_status 的 section_counts 判断宿主执行进度. |
| download_outputB | 下载已生成的阅卷笔录(docx)或阅卷目录(xlsx);若文件未生成则按当前工作区即时渲染兜底. fmt: 'docx' | 'xlsx'. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 25 tools
Most tools are clearly separated by document type, but get_case_status, get_workspace_summary, and get_review_progress all report overlapping progress/count information, creating real ambiguity. get_page_image and read_pages are well-distinguished, so the confusion is limited mainly to the status/progress cluster.
Naming is predominantly verb_noun snake_case, e.g. list_volumes, record_party, validate_citations. Minor inconsistencies exist: set_case_basic vs. the record_* family, add_* vs. record_*, and a somewhat mixed use of list_/get_ for retrieval.
25 tools is at the heavy end and includes at least three near-redundant status/progress tools. The many record_* tools are defensible because they map to distinct evidence and document categories, but the set would feel tighter with the status cluster consolidated.
The toolset covers the full review workflow: locating and reading volumes, registering parties/evidence/statements/transactions, validating citations, and exporting outputs. The main gaps are the absence of update/delete tools for correcting mis-registered records and no way to retrieve individual registered records, but these are workable gaps rather than blocking ones.