{"at":"2026-11-23T02:33:31.924Z","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:33:32.425Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T02:33:32.526Z","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:33:33.059Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true},"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"passwerk","version":"0.1.1"}}}}
{"at":"2026-11-23T02:33:33.059Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T02:33:33.059Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T02:33:33.067Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Reads PDF, XLSX, CSV, DOCX and TXT documents into a DocumentBundle with page, line, table and cell provenance, deterministically and without OCR or a model. Returns a per-document summary and a bundleId to pass to extract_facts; ask for detail \"full\" to see the pages. Unsupported or unreadable files are reported, not dropped.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"detail":{"description":"summary (default): per-document counts and the bundleId; full: the whole DocumentBundle","enum":["summary","full"],"type":"string"},"inline":{"description":"Document bytes as base64, for hosts that cannot pass paths","items":{"properties":{"base64":{"type":"string"},"name":{"minLength":1,"type":"string"}},"required":["name","base64"],"type":"object"},"type":"array"},"lang":{"description":"Language of the text summary (default en)","enum":["de","en"],"type":"string"},"limits":{"additionalProperties":{},"description":"Partial IngestLimits override (maxInputBytes, maxCells, ...)","properties":{},"type":"object"},"paths":{"description":"Files or directories on the server’s file system (a directory contributes its PDF, XLSX, CSV, DOCX and TXT files, non-recursive). Preferred for local installs","items":{"minLength":1,"type":"string"},"type":"array"}},"type":"object"},"name":"ingest_documents","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"bundle":{"additionalProperties":{},"properties":{"documents":{"items":{"additionalProperties":{},"properties":{},"type":"object"},"type":"array"}},"required":["documents"],"type":"object"},"bundleId":{"type":"string"},"documents":{"items":{"additionalProperties":false,"properties":{"contentType":{"type":"string"},"error":{"additionalProperties":{},"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"format":{"type":"string"},"lang":{"type":"string"},"lines":{"type":"number"},"name":{"type":"string"},"pages":{"type":"number"},"sha256":{"type":"string"},"tables":{"type":"number"}},"required":["name","format","contentType","sha256","lang","pages","tables","lines"],"type":"object"},"type":"array"},"error":{"description":"Set when the call failed","type":"string"},"errors":{"items":{"additionalProperties":false,"properties":{"message":{"type":"string"},"path":{"type":"string"}},"required":["path","message"],"type":"object"},"type":"array"}},"type":"object"},"title":"Ingest supplier documents"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Turns a DocumentBundle into a FactSet: labelled values with normalised numbers, units and dates, each with file, page, line or cell provenance. Pure heuristics, no model. Returns the FactSet and a factSetId to pass to suggest_mappings.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"bundle":{"anyOf":[{"additionalProperties":{},"properties":{"bundleId":{"minLength":1,"type":"string"}},"required":["bundleId"],"type":"object"},{"additionalProperties":{},"properties":{"documents":{}},"required":["documents"],"type":"object"}],"description":"A DocumentBundle object, or { bundleId } as returned by ingest_documents"},"lang":{"description":"Language of the text summary (default en)","enum":["de","en"],"type":"string"}},"required":["bundle"],"type":"object"},"name":"extract_facts","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"bundleId":{"type":"string"},"error":{"description":"Set when the call failed","type":"string"},"factSetId":{"type":"string"},"facts":{"additionalProperties":{},"properties":{"facts":{"items":{"additionalProperties":{},"properties":{"id":{"type":"string"},"label":{"type":"string"},"raw":{"type":"string"}},"required":["id","label","raw"],"type":"object"},"type":"array"}},"required":["facts"],"type":"object"}},"type":"object"},"title":"Extract facts"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Scores every fact against the knowledge-base synonym index (DE/EN), unit and type checks and the attribute range, and returns candidate mappings sorted by confidence with a DE/EN explanation and provenance. Review proposals under 0.7 with the user or the source page, then pass the accepted ones to apply_mappings. Ask for detail \"full\", or pass attributeIds, to see every candidate with its file, page and cell in the text.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"attributeIds":{"description":"Keep only proposals for these attribute ids; unknown ids are reported, not an error. When given, the text lists every match, not just the first 10, with provenance, even in summary mode","items":{"type":"string"},"maxItems":200,"minItems":1,"type":"array"},"category":{"description":"Passport category; decides applicability","enum":["EV","LMT","INDUSTRIAL_GT_2KWH"],"type":"string"},"detail":{"description":"summary (default): header line plus the first 10 proposals, no provenance. full: every proposal after the filters, one line each, with provenance (file, page, cell); no cap","enum":["summary","full"],"type":"string"},"facts":{"anyOf":[{"additionalProperties":{},"properties":{"factSetId":{"minLength":1,"type":"string"}},"required":["factSetId"],"type":"object"},{"additionalProperties":{},"properties":{"facts":{}},"required":["facts"],"type":"object"}],"description":"A FactSet object, or { factSetId } as returned by extract_facts"},"lang":{"description":"Language of the text summary (default en)","enum":["de","en"],"type":"string"},"minConfidence":{"description":"Drop proposals below this confidence (default 0). 0.7 is the review threshold","maximum":1,"minimum":0,"type":"number"}},"required":["facts","category"],"type":"object"},"name":"suggest_mappings","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"category":{"type":"string"},"counts":{"additionalProperties":false,"properties":{"atLeast07":{"type":"number"},"listed":{"type":"number"},"total":{"type":"number"}},"required":["total","atLeast07","listed"],"type":"object"},"error":{"description":"Set when the call failed","type":"string"},"factSetId":{"type":"string"},"proposals":{"items":{"additionalProperties":{},"properties":{"attributeId":{"type":"string"},"confidence":{"type":"number"},"why":{"additionalProperties":false,"properties":{"de":{"type":"string"},"en":{"type":"string"}},"required":["de","en"],"type":"object"}},"required":["attributeId","confidence","why"],"type":"object"},"type":"array"}},"type":"object"},"title":"Suggest attribute mappings"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Folds accepted mapping decisions (or manual values) into a PassportDraft. Idempotent: the same decision twice is a no-op; a different value for an attribute that already has one is reported as a conflict and not applied unless override is true. Pass meta instead of draft to start a new draft.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"draft":{"anyOf":[{"additionalProperties":{},"properties":{"draftId":{"minLength":1,"type":"string"}},"required":["draftId"],"type":"object"},{"additionalProperties":{},"properties":{"meta":{}},"required":["meta"],"type":"object"}],"description":"The draft to extend. Omit and pass meta to start a new one"},"lang":{"description":"Language of the text summary (default en)","enum":["de","en"],"type":"string"},"mappings":{"description":"Accepted proposals from suggest_mappings, or manual values","items":{"additionalProperties":{},"properties":{"attributeId":{"minLength":1,"type":"string"},"confidence":{"type":"number"},"override":{"description":"Replace an existing different value instead of flagging a conflict","type":"boolean"},"path":{"description":"Composite leaf path, e.g. \"name.de\"","type":"string"},"source":{"items":{"additionalProperties":{},"properties":{"file":{"type":"string"}},"required":["file"],"type":"object"},"type":"array"},"unit":{"type":"string"},"value":{}},"required":["attributeId","value"],"type":"object"},"type":"array"},"meta":{"description":"Starts a new draft. Exactly one of draft or meta","properties":{"category":{"enum":["EV","LMT","INDUSTRIAL_GT_2KWH"],"type":"string"},"createdAt":{"description":"ISO date-time; default: the server clock","type":"string"},"passportId":{"description":"The battery passport identifier, a URI (URL or URN)","minLength":1,"type":"string"}},"required":["category","passportId"],"type":"object"}},"required":["mappings"],"type":"object"},"name":"apply_mappings","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"applied":{"type":"number"},"conflicts":{"items":{"additionalProperties":{},"properties":{"attributeId":{"type":"string"}},"required":["attributeId"],"type":"object"},"type":"array"},"draft":{"additionalProperties":{},"properties":{"meta":{"additionalProperties":{},"properties":{},"type":"object"}},"required":["meta"],"type":"object"},"draftId":{"type":"string"},"error":{"description":"Set when the call failed","type":"string"}},"type":"object"},"title":"Apply mapping decisions"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Runs all four validation layers on a PassportDraft: L1 schema, L2 AAS meta-model (aas-core), L3 IDTA 02035 template conformance, L4 domain plausibility. Returns the verdict (valid, valid_with_warnings, invalid) and every finding with layer, rule id, path, DE/EN message, legal reference and fix hint. The only source of a validity claim.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"asOf":{"description":"ISO date-time treated as \"now\" by the plausibility layer; default: draft.meta.createdAt","type":"string"},"draft":{"anyOf":[{"additionalProperties":{},"properties":{"draftId":{"minLength":1,"type":"string"}},"required":["draftId"],"type":"object"},{"additionalProperties":{},"properties":{"meta":{}},"required":["meta"],"type":"object"}],"description":"A PassportDraft object, or { draftId } as returned by an earlier call"},"lang":{"description":"Language of the text summary (default en)","enum":["de","en"],"type":"string"},"skipPlausibility":{"description":"Skip L4 (domain plausibility). Default false","type":"boolean"}},"required":["draft"],"type":"object"},"name":"validate_passport","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"draftId":{"type":"string"},"error":{"description":"Set when the call failed","type":"string"},"findings":{"items":{"additionalProperties":{},"properties":{"layer":{"enum":["L1","L2","L3","L4"],"type":"string"},"message":{"additionalProperties":false,"properties":{"de":{"type":"string"},"en":{"type":"string"}},"required":["de","en"],"type":"object"},"path":{"type":"string"},"ruleId":{"type":"string"},"severity":{"enum":["error","warning"],"type":"string"}},"required":["layer","ruleId","severity","path","message"],"type":"object"},"type":"array"},"layers":{"additionalProperties":{},"properties":{},"type":"object"},"verdict":{"enum":["valid","valid_with_warnings","invalid"],"type":"string"}},"type":"object"},"title":"Validate a passport draft"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"The to-do list for a PassportDraft: every attribute bucketed as required, conditional, deferred or optional with status, legal references, who typically has the data and a suggested action; completeness for mandatory and overall data points, grouped by submodel and by data owner. Runs validate_passport first so invalid values count as gaps. Ask for detail \"full\" and a status/bucket filter to see every open attribute with its legal reference and next action, unabridged, for use without the structured content. Not legal advice.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"asOf":{"description":"ISO date-time treated as \"now\" for applicability; default: draft.meta.createdAt","type":"string"},"bucket":{"description":"Keep only items in one of these buckets; completeness stays unfiltered","items":{"enum":["required","conditional","deferred","optional"],"type":"string"},"type":"array"},"detail":{"description":"summary (default): open mandatory items, capped at 10. full: every item after the status/bucket filters, grouped by data owner, one line each with status, bucket, legal refs and the suggested next action; no cap","enum":["summary","full"],"type":"string"},"draft":{"anyOf":[{"additionalProperties":{},"properties":{"draftId":{"minLength":1,"type":"string"}},"required":["draftId"],"type":"object"},{"additionalProperties":{},"properties":{"meta":{}},"required":["meta"],"type":"object"}],"description":"A PassportDraft object, or { draftId } as returned by an earlier call"},"lang":{"description":"Language of the text summary (default en)","enum":["de","en"],"type":"string"},"status":{"description":"Keep only items with one of these statuses; completeness stays unfiltered","items":{"enum":["present","missing","invalid","conflict","not_applicable"],"type":"string"},"type":"array"}},"required":["draft"],"type":"object"},"name":"gap_report","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"byDataOwner":{"items":{"additionalProperties":{},"properties":{},"type":"object"},"type":"array"},"bySubmodel":{"items":{"additionalProperties":{},"properties":{},"type":"object"},"type":"array"},"category":{"type":"string"},"completeness":{"additionalProperties":false,"properties":{"mandatory":{"additionalProperties":{},"properties":{"percent":{"type":"string"},"present":{"type":"number"},"total":{"type":"number"}},"required":["present","total","percent"],"type":"object"},"overall":{"additionalProperties":{},"properties":{"percent":{"type":"string"},"present":{"type":"number"},"total":{"type":"number"}},"required":["present","total","percent"],"type":"object"}},"required":["mandatory","overall"],"type":"object"},"draftId":{"type":"string"},"error":{"description":"Set when the call failed","type":"string"},"filter":{"additionalProperties":{},"properties":{"bucket":{"items":{"enum":["required","conditional","deferred","optional"],"type":"string"},"type":"array"},"status":{"items":{"enum":["present","missing","invalid","conflict","not_applicable"],"type":"string"},"type":"array"}},"type":"object"},"isNotLegalAdvice":{"const":true,"type":"boolean"},"items":{"items":{"additionalProperties":{},"properties":{"attributeId":{"type":"string"},"bucket":{"type":"string"},"status":{"type":"string"}},"required":["attributeId","status","bucket"],"type":"object"},"type":"array"},"sources":{"items":{"type":"string"},"type":"array"}},"type":"object"},"title":"Gap report"},{"_meta":{"ui":{"resourceUri":"ui://passwerk/workbench.html","visibility":["model","app"]}},"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Opens the interactive passwerk workbench in hosts that render MCP Apps (Claude Desktop, Claude web): upload documents, accept or edit mapping proposals, read the gap report and export, all on the user’s machine. Pass the current draft so the user reviews it visually; the workbench keeps the draft id in sync so gap_report and emit_passport can continue on it. Hosts without a UI receive the same draft, validation report and gap report as text.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"draft":{"anyOf":[{"additionalProperties":{},"properties":{"draftId":{"minLength":1,"type":"string"}},"required":["draftId"],"type":"object"},{"additionalProperties":{},"properties":{"meta":{}},"required":["meta"],"type":"object"}],"description":"The draft to review; omit to open an empty workbench"},"facts":{"anyOf":[{"additionalProperties":{},"properties":{"factSetId":{"minLength":1,"type":"string"}},"required":["factSetId"],"type":"object"},{"additionalProperties":{},"properties":{"facts":{}},"required":["facts"],"type":"object"}],"description":"Extracted facts to review alongside the draft"},"lang":{"description":"Language of the text summary (default en)","enum":["de","en"],"type":"string"}},"type":"object"},"name":"review_passport","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"draft":{"additionalProperties":{},"properties":{"meta":{"additionalProperties":{},"properties":{},"type":"object"}},"required":["meta"],"type":"object"},"draftId":{"type":"string"},"error":{"description":"Set when the call failed","type":"string"},"factSetId":{"type":"string"},"facts":{"additionalProperties":{},"properties":{"facts":{"items":{"additionalProperties":{},"properties":{},"type":"object"},"type":"array"}},"required":["facts"],"type":"object"},"gap":{"additionalProperties":{},"properties":{"items":{"items":{"additionalProperties":{},"properties":{},"type":"object"},"type":"array"}},"required":["items"],"type":"object"},"report":{"additionalProperties":{},"properties":{"findings":{"items":{"additionalProperties":{},"properties":{"layer":{"enum":["L1","L2","L3","L4"],"type":"string"},"message":{"additionalProperties":false,"properties":{"de":{"type":"string"},"en":{"type":"string"}},"required":["de","en"],"type":"object"},"path":{"type":"string"},"ruleId":{"type":"string"},"severity":{"enum":["error","warning"],"type":"string"}},"required":["layer","ruleId","severity","path","message"],"type":"object"},"type":"array"},"verdict":{"enum":["valid","valid_with_warnings","invalid"],"type":"string"}},"required":["verdict","findings"],"type":"object"}},"type":"object"},"title":"Review a passport in the workbench"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Emits a PassportDraft as AAS JSON (IDTA 02035 submodels), an AASX package, the draft JSON and/or the HTML sheet, and re-validates the emitted output. Fail-honest: files are returned even when the verdict is invalid, and the verdict is never better than validate_passport’s. Bytes come back base64 inline unless outDir is given.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"asOf":{"description":"ISO date-time treated as \"now\" by the re-validation","type":"string"},"draft":{"anyOf":[{"additionalProperties":{},"properties":{"draftId":{"minLength":1,"type":"string"}},"required":["draftId"],"type":"object"},{"additionalProperties":{},"properties":{"meta":{}},"required":["meta"],"type":"object"}],"description":"A PassportDraft object, or { draftId } as returned by an earlier call"},"htmlLang":{"description":"Language the html sheet opens in (both are in the file; default en)","enum":["de","en"],"type":"string"},"lang":{"description":"Language of the text summary (default en)","enum":["de","en"],"type":"string"},"outDir":{"description":"Directory to write into (needs a file system). Omit to receive base64 bytes inline","type":"string"},"targets":{"description":"aas-json: AAS v3 JSON environment (IDTA 02035); aasx: AASX package; draft-json: the neutral PassportDraft; html: self-contained HTML passport sheet (DE and EN inside)","items":{"enum":["aas-json","aasx","draft-json","html"],"type":"string"},"minItems":1,"type":"array"}},"required":["draft","targets"],"type":"object"},"name":"emit_passport","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"draftId":{"type":"string"},"error":{"description":"Set when the call failed","type":"string"},"files":{"items":{"additionalProperties":false,"properties":{"bytes":{"description":"base64","type":"string"},"name":{"type":"string"},"path":{"type":"string"},"size":{"type":"number"},"target":{"enum":["aas-json","aasx","draft-json","html"],"type":"string"}},"required":["target","name","size"],"type":"object"},"type":"array"},"findings":{"items":{"additionalProperties":{},"properties":{"layer":{"enum":["L1","L2","L3","L4"],"type":"string"},"message":{"additionalProperties":false,"properties":{"de":{"type":"string"},"en":{"type":"string"}},"required":["de","en"],"type":"object"},"path":{"type":"string"},"ruleId":{"type":"string"},"severity":{"enum":["error","warning"],"type":"string"}},"required":["layer","ruleId","severity","path","message"],"type":"object"},"type":"array"},"verdict":{"enum":["valid","valid_with_warnings","invalid"],"type":"string"}},"type":"object"},"title":"Emit the passport files"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":false},"description":"Builds the data carrier for a passport: the unique identifier (the draft’s passportId, an absolute https URI), an optional GS1 Digital Link (/01/{gtin}/21/{serial} or /8004/{giai}) and the QR code as SVG or PNG. The QR encodes the Digital Link when GS1 data is given, else the identifier. Says nothing about validity; validate_passport does.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"draft":{"anyOf":[{"additionalProperties":{},"properties":{"draftId":{"minLength":1,"type":"string"}},"required":["draftId"],"type":"object"},{"additionalProperties":{},"properties":{"meta":{}},"required":["meta"],"type":"object"}],"description":"The draft whose meta.passportId is the identifier"},"format":{"description":"Image format (default svg)","enum":["svg","png"],"type":"string"},"gs1":{"anyOf":[{"additionalProperties":false,"properties":{"gtin":{"type":"string"},"serial":{"type":"string"}},"required":["gtin","serial"],"type":"object"},{"additionalProperties":false,"properties":{"giai":{"type":"string"}},"required":["giai"],"type":"object"}],"description":"GS1 key: GTIN (8, 12, 13 or 14 digits) plus serial, or a GIAI"},"lang":{"description":"Language of the text summary (default en)","enum":["de","en"],"type":"string"},"outDir":{"description":"Directory to write the image into (needs a file system). Omit to receive base64 bytes inline","type":"string"},"resolverBase":{"description":"https base of the GS1 Digital Link resolver; required with gs1","type":"string"},"uid":{"description":"The passport identifier (absolute https URI) when no draft is given","type":"string"}},"type":"object"},"name":"generate_carrier","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"digitalLink":{"type":"string"},"draftId":{"type":"string"},"error":{"description":"Set when the call failed","type":"string"},"format":{"enum":["svg","png"],"type":"string"},"image":{"additionalProperties":false,"properties":{"bytes":{"description":"base64","type":"string"},"name":{"type":"string"},"path":{"type":"string"},"size":{"type":"number"}},"required":["name","size"],"type":"object"},"isNotLegalAdvice":{"const":true,"type":"boolean"},"mediaType":{"type":"string"},"payload":{"type":"string"},"sources":{"items":{"type":"string"},"type":"array"},"uid":{"type":"string"}},"type":"object"},"title":"Generate the data carrier (QR code)"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Whether a battery passport is required for a battery type, role, energy and market date under Regulation (EU) 2023/1542 Article 77(1); returns the category, the mandatory, conditional and deferred attribute sets and the legal timeline. Answers required, not_required or insufficient_input. Not legal advice.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"asOf":{"description":"ISO date treated as \"now\"; default: the server clock","type":"string"},"batteryType":{"description":"Battery type as placed on the market","enum":["EV","LMT","INDUSTRIAL","STATIONARY_BATTERY_ENERGY_STORAGE","PORTABLE","SLI","OTHER"],"type":"string"},"energyKwh":{"description":"Battery energy in kWh as a decimal string, e.g. \"2.5\". Decides the industrial 2 kWh threshold","type":"string"},"lang":{"description":"Language of the text summary (default en)","enum":["de","en"],"type":"string"},"placedOnMarketDate":{"description":"ISO date the battery is or was placed on the market or put into service","type":"string"},"role":{"description":"Economic operator role of the asker","enum":["manufacturer","authorised_representative","importer","distributor","fulfilment_service_provider","other"],"type":"string"}},"required":["batteryType","role"],"type":"object"},"name":"check_obligations","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"asOf":{"type":"string"},"category":{"type":["string","null"]},"conditionalAttributes":{"items":{"type":"string"},"type":"array"},"error":{"description":"Set when the call failed","type":"string"},"isNotLegalAdvice":{"const":true,"type":"boolean"},"mandatoryAttributes":{"items":{"type":"string"},"type":"array"},"missingInput":{"items":{"type":"string"},"type":"array"},"reason":{"additionalProperties":false,"properties":{"de":{"type":"string"},"en":{"type":"string"}},"required":["de","en"],"type":"object"},"sources":{"items":{"type":"string"},"type":"array"},"verdict":{"enum":["required","not_required","insufficient_input"],"type":"string"}},"type":"object"},"title":"Check battery passport obligations"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Everything the knowledge base holds about one passport attribute (official DIN definition, DE/EN explanation, synonyms, who typically has the data, unit, range, applicability per category, legal references, IDTA template elements) or one plausibility rule (message, fix hint, legal reference). Nothing is composed; unknown ids are an error.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"id":{"description":"A knowledge-base attribute id (e.g. \"batteryChemistry\") or a rule id (e.g. \"PW-PLAUS-001\")","minLength":1,"type":"string"},"lang":{"description":"Language of the text summary (default en)","enum":["de","en"],"type":"string"}},"required":["id"],"type":"object"},"name":"explain_attribute","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"error":{"description":"Set when the call failed","type":"string"},"id":{"type":"string"},"isNotLegalAdvice":{"const":true,"type":"boolean"},"kind":{"enum":["attribute","rule"],"type":"string"},"legalRef":{"type":["string","null"]},"legalRefs":{"items":{"type":"string"},"type":"array"}},"type":"object"},"title":"Explain an attribute or rule"},{"annotations":{"destructiveHint":false,"idempotentHint":true,"openWorldHint":false,"readOnlyHint":true},"description":"Versions of the bundled IDTA 02035 templates and AAS schemas, knowledge-base statistics, when the artefacts were retrieved, the sovereignty statement, and this server’s tools and session-store usage. Call first to learn what this server can do.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"lang":{"description":"Language of the text summary (default en)","enum":["de","en"],"type":"string"}},"type":"object"},"name":"list_capabilities","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":{},"properties":{"aasSchemaVersions":{"items":{"type":"string"},"type":"array"},"error":{"description":"Set when the call failed","type":"string"},"knowledgeBase":{"additionalProperties":{},"properties":{"attributes":{"type":"number"},"plausibilityRules":{"type":"number"}},"required":["attributes","plausibilityRules"],"type":"object"},"package":{"type":"string"},"server":{"additionalProperties":{},"properties":{"name":{"type":"string"},"session":{"additionalProperties":{},"properties":{"bytes":{"type":"number"},"entries":{"type":"number"}},"required":["entries","bytes"],"type":"object"},"tools":{"items":{"type":"string"},"type":"array"},"transports":{"items":{"type":"string"},"type":"array"},"version":{"type":"string"}},"required":["name","version","transports","tools","session"],"type":"object"},"sovereignty":{"type":"string"},"templates":{"items":{"additionalProperties":{},"properties":{"idta":{"type":"string"},"part":{"type":"number"},"version":{"type":"string"}},"required":["part","idta","version"],"type":"object"},"type":"array"}},"type":"object"},"title":"List capabilities"}]}}}
