{"at":"2026-11-23T02:10:43.431Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T02:10:44.052Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T02:10:44.153Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T02:10:44.771Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true},"tools":{"listChanged":true}},"instructions":"claimseed generates synthetic U.S. medical-billing specimen documents (Medicare Summary Notices, hospital itemized\nstatements, Medicare Advantage explanations of benefits) with a ground truth that lists every deliberately injected\nerror. Start with list_document_types; describe_document_type shows the scenarios of one type. generate_data returns\nthe data and ground truth without rendering. verify_document scores what an extractor or bill auditor reported about\na document against its answer key: fields read, errors found and missed, and false alarms, including decoys (lines that\nlook wrong but follow the rules). degrade_document renders a scanned-looking copy (scan, fax, phone photo or low-res) with\nthe same answer key, to test reading documents that are not clean PDFs. The itemized-bill, ppo-eob and hmo-eob types can also print the same data in other layouts: pass layout_variant, an id from describe_document_type's list or seeded to pick one from the seed. msn has one layout. The answer key names the variant used. This server has no workspace folder and saves no files: render_document returns the\ndocument's pages as images (shown in the conversation by clients that display images or MCP Apps), its ground truth,\nand, with include_pdf, the PDF itself. When a document has more pages than fit in one result, render it again with\nfrom_page to see the rest; the same type, scenario and seed always give the same document. Every value is synthetic\nand every page carries specimen markers.","protocolVersion":"2025-11-25","serverInfo":{"name":"claimseed","version":"0.5.0"}}}}
{"at":"2026-11-23T02:10:44.771Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T02:10:44.771Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T02:10:44.775Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"List the document types claimseed can render, each with a short description and its scenario slugs.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"list_document_types","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"types":{"items":{"additionalProperties":false,"properties":{"description":{"type":"string"},"orientation":{"type":"string"},"scenarios":{"items":{"type":"string"},"type":"array"},"title":{"type":"string"},"type":{"type":"string"}},"required":["type","title","description","orientation","scenarios"],"type":"object"},"type":"array"}},"required":["types"],"type":"object"},"title":"List document types"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Describe one document type: every scenario with its description, period, number of claims, the errors it injects (kind, severity, rule), its decoys (lines that look wrong but follow the rules) and its public sources. It also lists the type's layout variant ids, which layout_variant accepts besides seeded (an empty list for msn, which has one layout). A scenario with neither errors nor decoys is a clean control.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"type":{"description":"document type: msn, itemized-bill, ppo-eob, hmo-eob","enum":["msn","itemized-bill","ppo-eob","hmo-eob"],"type":"string"}},"required":["type"],"type":"object"},"name":"describe_document_type","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"description":{"type":"string"},"groundTruthSchema":{"type":"string"},"layoutVariants":{"items":{"type":"string"},"type":"array"},"orientation":{"type":"string"},"scenarios":{"items":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},"type":"array"},"title":{"type":"string"},"type":{"type":"string"}},"required":["type","title","description","orientation","groundTruthSchema","scenarios","layoutVariants"],"type":"object"},"title":"Describe a document type"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Generate the data and ground truth of one document without rendering it (no file is saved). The same type, scenario and seed always give the same result. Every value is synthetic.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"layout_variant":{"description":"Optional. A layout variant id from this document type's published list, or seeded to pick one from the seed. Applies only to itemized-bill, ppo-eob and hmo-eob. Leave it out for the standard layout, unchanged. The answer key records which variant was used.","maxLength":64,"type":"string"},"scenario":{"description":"scenario slug, e.g. baseline-clean (see describe_document_type)","pattern":"^[a-z0-9][a-z0-9-]{0,63}$","type":"string"},"seed":{"default":"claimseed","description":"any short string (letters, digits, . _ -); the same seed always gives the same document","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$","type":"string"},"type":{"description":"document type: msn, itemized-bill, ppo-eob, hmo-eob","enum":["msn","itemized-bill","ppo-eob","hmo-eob"],"type":"string"}},"required":["type","scenario"],"type":"object"},"name":"generate_data","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"data":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},"groundTruth":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"}},"required":["data","groundTruth"],"type":"object"},"title":"Generate document data"},{"_meta":{"ui":{"resourceUri":"ui://claimseed/preview"},"ui/resourceUri":"ui://claimseed/preview"},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Render one document and return it in the result: its pages as images (as many as fit; from_page shows the rest), the ground truth, the PDF's SHA-256 and page count, and the PDF itself when include_pdf is set and it fits within the size limit. No file is saved. Every page carries specimen markers.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"also":{"description":"835: also write the X12 835 remittance of the same claims (msn, ppo-eob and hmo-eob only), as a file in the workspace or as text in the result","enum":["835"],"type":"string"},"from_page":{"default":1,"description":"first page to return as an image (default 1)","maximum":999,"minimum":1,"type":"integer"},"include_pdf":{"default":false,"description":"also return the PDF itself, embedded in the result; it counts toward the same size limit as the page images and is left out, with a note, when it alone is over it","type":"boolean"},"layout_variant":{"description":"Optional. A layout variant id from this document type's published list, or seeded to pick one from the seed. Applies only to itemized-bill, ppo-eob and hmo-eob. Leave it out for the standard layout, unchanged. The answer key records which variant was used.","maxLength":64,"type":"string"},"preview":{"default":"all","description":"pages returned as images: none, the first (from from_page), or all from from_page on, as many as fit in one result (default all)","enum":["none","first","all"],"type":"string"},"scenario":{"description":"scenario slug, e.g. baseline-clean (see describe_document_type)","pattern":"^[a-z0-9][a-z0-9-]{0,63}$","type":"string"},"seed":{"default":"claimseed","description":"any short string (letters, digits, . _ -); the same seed always gives the same document","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$","type":"string"},"type":{"description":"document type: msn, itemized-bill, ppo-eob, hmo-eob","enum":["msn","itemized-bill","ppo-eob","hmo-eob"],"type":"string"}},"required":["type","scenario"],"type":"object"},"name":"render_document","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"bytes":{"type":"number"},"degradation":{"type":["string","null"]},"groundTruth":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},"groundTruthFile":{"type":["string","null"]},"pages":{"type":"number"},"pdf":{"type":["string","null"]},"pdfEmbedded":{"type":"boolean"},"preview":{"additionalProperties":false,"properties":{"next":{"type":["number","null"]},"omitted":{"type":"number"},"pages":{"items":{"type":"number"},"type":"array"}},"required":["pages","omitted","next"],"type":"object"},"remittance":{"anyOf":[{"additionalProperties":false,"properties":{"embedded":{"type":"boolean"},"file":{"type":["string","null"]},"sha256":{"type":"string"}},"required":["file","sha256","embedded"],"type":"object"},{"type":"null"}]},"scenario":{"type":"string"},"seed":{"type":"string"},"sha256":{"type":"string"},"type":{"type":"string"}},"required":["type","scenario","seed","degradation","pdf","groundTruthFile","sha256","pages","bytes","pdfEmbedded","groundTruth","preview","remittance"],"type":"object"},"title":"Render a document to PDF"},{"_meta":{"ui":{"resourceUri":"ui://claimseed/preview"},"ui/resourceUri":"ui://claimseed/preview"},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Render a degraded copy of one document and return it: a flatbed scan, a fax, a phone photo or a low-resolution copy (preset), as an image-only PDF with the specimen band and watermark drawn on top of the degraded pages. The settings come from the seed and are recorded in the ground truth (degradation, degradationParams); the fields are those of the clean document. Returns page images (as many as fit), the ground truth, and the PDF itself when include_pdf is set and it fits. No file is saved.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"from_page":{"default":1,"description":"first page to return as an image (default 1)","maximum":999,"minimum":1,"type":"integer"},"include_pdf":{"default":false,"description":"also return the degraded PDF itself; it counts toward the same size limit as the page images and is left out, with a note, when it alone is over it","type":"boolean"},"layout_variant":{"description":"Optional. A layout variant id from this document type's published list, or seeded to pick one from the seed. Applies only to itemized-bill, ppo-eob and hmo-eob. Leave it out for the standard layout, unchanged. The answer key records which variant was used.","maxLength":64,"type":"string"},"preset":{"description":"scan (flatbed scan), fax (black and white, standard or fine), photo (phone photo of the page on a table) or low-res","enum":["scan","fax","photo","low-res"],"type":"string"},"preview":{"default":"all","description":"pages returned as images: none, the first (from from_page), or all from from_page on, as many as fit in one result (default all)","enum":["none","first","all"],"type":"string"},"scenario":{"description":"scenario slug, e.g. baseline-clean (see describe_document_type)","pattern":"^[a-z0-9][a-z0-9-]{0,63}$","type":"string"},"seed":{"default":"claimseed","description":"any short string (letters, digits, . _ -); the same seed always gives the same document","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$","type":"string"},"type":{"description":"document type: msn, itemized-bill, ppo-eob, hmo-eob","enum":["msn","itemized-bill","ppo-eob","hmo-eob"],"type":"string"}},"required":["type","scenario","preset"],"type":"object"},"name":"degrade_document","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"bytes":{"type":"number"},"degradation":{"type":["string","null"]},"groundTruth":{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},"groundTruthFile":{"type":["string","null"]},"pages":{"type":"number"},"pdf":{"type":["string","null"]},"pdfEmbedded":{"type":"boolean"},"preview":{"additionalProperties":false,"properties":{"next":{"type":["number","null"]},"omitted":{"type":"number"},"pages":{"items":{"type":"number"},"type":"array"}},"required":["pages","omitted","next"],"type":"object"},"scenario":{"type":"string"},"seed":{"type":"string"},"sha256":{"type":"string"},"type":{"type":"string"}},"required":["type","scenario","seed","degradation","pdf","groundTruthFile","sha256","pages","bytes","pdfEmbedded","groundTruth","preview"],"type":"object"},"title":"Render a scanned-looking copy of a document"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Score what an extractor or bill auditor reported about one document against its answer key, rebuilt from the type, scenario and seed with this version of claimseed. The report uses the answer key's vocabulary (schema://extractor-output): `fields` maps field paths of documents[0].fields to the values read; `errors` lists flagged errors as { kind, fieldRef or lineRef }. Returns field accuracy with the paths read wrong or missed, error recall and precision, false alarms, and which decoys were flagged. The result names only answer-key paths, kinds and decoy ids, never the text sent. Nothing is rendered or written.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"layout_variant":{"description":"Optional. A layout variant id from this document type's published list, or seeded to pick one from the seed. Applies only to itemized-bill, ppo-eob and hmo-eob. Leave it out for the standard layout, unchanged. The answer key records which variant was used.","maxLength":64,"type":"string"},"output":{"additionalProperties":false,"description":"the extractor's report (schema://extractor-output). What an extractor or bill auditor reports about one claimseed document, for scoring with `claimseed-core verify` or the MCP tool verify_document. It uses the answer key's vocabulary: field paths are the keys of documents[0].fields, and an error names its kind (docs/error-taxonomy.md) and its place as a fieldRef (a path in documents[0].fields, or a field inside it) or a lineRef (a path in the claims block). Either part may be left out to score only the other.","properties":{"errors":{"description":"Billing errors the tool flagged. An error is found when its kind matches and its place names the same line or total as the answer key (for a duplicate charge, either line of the pair).","items":{"additionalProperties":false,"properties":{"fieldRef":{"maxLength":200,"type":["string","null"]},"kind":{"maxLength":64,"minLength":1,"type":"string"},"lineRef":{"maxLength":200,"type":["string","null"]}},"required":["kind"],"type":"object"},"maxItems":1000,"type":"array"},"fields":{"additionalProperties":{"maxLength":1000,"type":["string","number","boolean","null"]},"description":"Values read from the document, keyed by answer-key field path. Money may be a number or printed text such as \"$1,234.50\"; dates may be ISO, M/D/YYYY or \"April 11, 2026\"; text is compared without regard to case or repeated spaces.","maxProperties":5000,"propertyNames":{"maxLength":200},"type":"object"}},"type":"object"},"scenario":{"description":"scenario slug, e.g. baseline-clean (see describe_document_type)","pattern":"^[a-z0-9][a-z0-9-]{0,63}$","type":"string"},"seed":{"default":"claimseed","description":"any short string (letters, digits, . _ -); the same seed always gives the same document","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]{0,63}$","type":"string"},"type":{"description":"document type: msn, itemized-bill, ppo-eob, hmo-eob","enum":["msn","itemized-bill","ppo-eob","hmo-eob"],"type":"string"}},"required":["type","scenario","output"],"type":"object"},"name":"verify_document","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"answerKey":{"additionalProperties":false,"properties":{"scenario":{"type":"string"},"schemaVersion":{"type":"string"},"seed":{"type":"string"}},"required":["scenario","seed","schemaVersion"],"type":"object"},"errors":{"anyOf":[{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},{"type":"null"}]},"fields":{"anyOf":[{"additionalProperties":{},"propertyNames":{"type":"string"},"type":"object"},{"type":"null"}]}},"required":["answerKey","fields","errors"],"type":"object"},"title":"Score an extractor against a document"}]}}}
