ecbyts Docs

Official Ecbyts Documentation — 3D/4D Environmental Digital Twins (AGPL-3.0-only)

API & Integrations (Developers & AI Agents)

Connect services, spreadsheets, and autonomous AI agents using OpenAPI 3.1.0 REST endpoints, least-privilege JSON-RPC 2.0 MCP (/api/mcp), HITL WebMCP, and offline CLI verification.

REST & Discovery Endpoints (OpenAPI 3.1.0)

OpenAPI 3.1.0 · /llms.txt · /llms-full.txt · /.well-known/agent-card.json · /.well-known/ecbt-v2.schema.json

MethodPathSummaryTag
GET/api/healthAPI and local PGlite storage health checkHealth & Agent Readiness
GET/api/health/agent-readinessAI agent readiness and MCP capability probeHealth & Agent Readiness
POST/api/auth/sessionIssue a signed user session Bearer tokenAuthentication & Least-Privilege Tokens
GET/api/auth/meInspect current authenticated user sessionAuthentication & Least-Privilege Tokens
POST/api/auth/mcp-tokenMint a least-privilege Bearer token for an AI agentAuthentication & Least-Privilege Tokens
POST/api/mcpJSON-RPC 2.0 Streamable HTTP MCP endpoint (22 live tools)Model Context Protocol (MCP)
GET/api/projectsList digital twin projects for the authenticated organizationDigital Twin Projects
POST/api/projectsCreate or update a digital twin project snapshotDigital Twin Projects
GET/api/projects/{projectId}Fetch a single digital twin snapshot by projectIdDigital Twin Projects
POST/api/sealsStore a first-party ISO 14021 self-declaration seal recordISO 14021 Self-Declaration Seals
GET/api/seals/{hash}Publicly verify a first-party ISO 14021 seal by SHA-256 hashISO 14021 Self-Declaration Seals
POST/api/consulting/intakeSubmit technical consulting or corporate AI course qualification intakeConsulting & LGPD
GET/api/lgpd/exportExport personal data portability package (LGPD Art. 18)Consulting & LGPD
GET/llms.txtConcise llmstxt.org discovery index for LLMsAgent Discovery & Schemas
GET/llms-full.txtComplete plain-text Markdown reference for AI agents & LLMsAgent Discovery & Schemas
GET/.well-known/agent-card.jsonA2A Agent Card capabilities manifestAgent Discovery & Schemas
GET/.well-known/ecbt-v2.schema.jsonJSON Schema Draft 2020-12 for .ecbt v2 custody envelopesAgent Discovery & Schemas

Live Native MCP Catalog (22 Deterministic Tools) (22)

Server: ecbyts-zero-mcp v1.0.0 · Protocol: 2025-03-26 · Endpoint: https://ecbyts.com/api/mcp

#ToolScopeRequired ArgsDescription
1ecbyts_get_server_capabilitiesread_only—Returns protocol version, server metadata, least-privilege scope summary, resource URIs, and normative engine capabilities for ecbyts-zero.
2ecbyts_list_vertical_presetsread_only—Lists starter digital twin presets across all 6 environmental and occupational verticals (GAC contaminated sites, geotech dams, agro carbon MRV, mining, occupational OHS, atmospheric emissions).
3ecbyts_get_twin_snapshotread_only—Reads the immutable snapshot of an active digital twin by vertical ID or projectId, including 3D elements, observations, license conditions, emissions inputs, and LCA stages.
4ecbyts_compute_ecbt_and_eis_scoressimulate_pure—Computes the headline financial ECBT Score (net monetary asset minus remediation liability in BRL with uncertainty band) and non-compensatory geometric EIS 3CTA+T support indicator.
5ecbyts_evaluate_conama_cetesbsimulate_pure—Evaluates analytical groundwater and soil observations against CONAMA 420/2009 and CETESB DD 125/2021 guiding values (VR, VP, VI) for GAC compliance.
6ecbyts_evaluate_license_gutsimulate_pure—Evaluates LP/LI/LO environmental license conditions using Gravity x Urgency x Tendency (GUT) prioritization and expired-condition threat detection.
7ecbyts_compute_ghg_inventorysimulate_pure—Computes deterministic Scopes 1, 2, and 3 greenhouse gas emissions totals in tCO2e aligned with ABNT NBR ISO 14064-1.
8ecbyts_compute_lca_screeningsimulate_pure—Computes deterministic ISO 14040/14044 life cycle screening impacts (climate change kgCO2e, water footprint liters, primary energy MJ, and hotspot stage).
9ecbyts_evaluate_physical_invariants_l1simulate_pure—Audits Level-1 physical invariants (INV-DIM-001, INV-CRS-002, INV-ND-003, INV-HYD-004, INV-KRIG-006 Logical Shadow Zone mask) over a twin snapshot.
10ecbyts_build_custody_envelope_v2simulate_pure—Canonicalizes a digital twin snapshot via RFC 8785 JCS and computes dual cryptographic digests (WebCrypto SHA-256 and FIPS 202 SHA3-256) with embedded L1 physical invariants.
11ecbyts_run_darcy_flow_solversimulate_purehydraulicConductivityMS, hydraulicGradient, effectivePorosity, crossSectionAreaM2Executes the deterministic Darcy (1856) saturated porous-media flow solver computing specific discharge q, seepage velocity v, and volumetric discharge Q.
12ecbyts_run_domenico_plume_solversimulate_puresourceConcMgL, sourceWidthY_M, sourceDepthZ_M, velocityMPerDay, alphaX_M, alphaY_M, alphaZ_M, xM, yM, zM, timeDaysExecutes the deterministic Domenico (1987) 3D analytical continuous-source groundwater plume transport solver with advection, 3D dispersion, retardation, and first-order decay.
13ecbyts_audit_logical_shadow_zonesimulate_purepointsAudits spatial evaluation points for sampling support coverage (distance, neighbor count, kriging variance) and enforces anti-magic-jump compliance claim gating.
14ecbyts_verify_smt_rational_l2simulate_puredomain, specEmits an exact-rational SMT-LIB 2.6 (QF_LRA) refutation script and executes the built-in zero-drift exact rational L2 formal verifier across mass_balance, hydraulic_network, or normative_boundary domains.
15ecbyts_emit_lean4_normative_bundlesimulate_pureprojectId, partitionIdEmits a zero-sorry Lean 4 formal normative specification bundle (CONAMA/CETESB monotonicity, ECBT double materiality additivity, EIS 3CTA+T veto, and ISO 14021 Logical Shadow seal) with integrity audit and SHA-256 digests.
16ecbyts_optimize_sampling_meshsimulate_pureexistingWells, candidateSites, gridCells, correlationRangeM, shadowCoverageRadiusM, maxBoreholesExecutes exact combinatorial branch-and-bound optimization for GAC borehole placement to maximize spatial variance reduction and Logical Shadow Zone elimination within budget and spacing constraints.
17ecbyts_rank_remediation_scenarios_topsissimulate_purealternatives, criteriaRanks environmental remediation and operational alternatives using TOPSIS with mandatory hard-constraint screening, Pareto frontier detection, and optional weight sensitivity analysis.
18ecbyts_classify_drop_to_twin_filessimulate_purefilesDetects dropped environmental/geospatial/CAD/BIM/LIMS file intents by magic bytes and structural signatures and generates a staged deterministic Auto-Twin build plan.
19ecbyts_inspect_edms_file_safetysimulate_purefilename, declaredMimeInspects file magic bytes, declared MIME consistency, active script injection vectors, embedded Office macros, and executable masquerading for the EDMS document vault.
20ecbyts_list_guided_tours_and_coursesread_only—Queries the 22 interactive guided tours catalog (filtered by audience, vertical, duration, or search text) and the 5 official LMS training tracks including the 12-module Corporate AI course.
21ecbyts_add_twin_observationmutate_twinelementId, campaignCode, substanceKey, matrix, concentration, unitAppends a validated analytical observation to an active digital twin snapshot, evaluates CONAMA/CETESB thresholds, and recomputes ECBT/EIS scores. Requires explicit mutate_twin scope.
22ecbyts_issue_iso14021_declarationcustody_signpartitionId, claimText, declarantIssues a first-party ISO 14021 environmental self-declaration (Autodeclaração ISO 14021) sealed with RFC 8785 JCS, SHA-256 and SHA3-256 digests, anti-greenwash verification, and L1 physical sealing gate. Requires explicit custody_sign scope.
curl -X POST "https://ecbyts.com/api/mcp" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <ECBYTS_MCP_TOKEN>" \
  -H "Idempotency-Key: docs-example-001" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

WebMCP Browser Contract & Auth Flow

Protocol: webmcp/1.0.0 · State: ecbyts.agent-state/1.0.0 · HITL: true

  • ecbyts_get_scene_state (readOnly=true, HITL=false): Reads live EnrichedAgentSceneState (ECBT, EIS, exceedances, shadow cells, bounds, active workspace).
  • ecbyts_switch_workspace (readOnly=false, HITL=true): Queues a human-reviewed proposal to switch the active vertical or studio workspace tab.
  • ecbyts_propose_observation (readOnly=false, HITL=true): Queues a new analytical observation with before/after EIS, ECBT, and exceedance impact preview.
  • ecbyts_propose_sampling_well (readOnly=false, HITL=true): Queues a proposed monitoring well placement with spatial coverage and shadow reduction preview.
  • ecbyts_get_hitl_queue (readOnly=true, HITL=false): Inspects pending, approved, and rejected Human-in-the-Loop proposals in the supervisory drawer.

Excel Add-in Custom Functions & CLI Reference

Excel FormulaReturnsDescription
=ECBYTS.CONAMA_STATUS(substanceKey, matrix, concentration)stringReturns "compliant", "alert_vp", or "exceeded_vi" under CONAMA 420 / CETESB DD 125.
=ECBYTS.CONAMA_RATIO_VI(substanceKey, matrix, concentration)numberComputes dimensionless C / VI ratio for rapid borehole exceedance ranking.
=ECBYTS.RBCA_HI(substanceKey, pathway, concentration, scenario)numberComputes Tier 2 non-cancer Hazard Quotient / Index (CETESB target <= 1.0).
=ECBYTS.RBCA_ILCR(substanceKey, pathway, concentration, scenario)numberComputes Tier 2 Incremental Lifetime Cancer Risk (CETESB individual target <= 1e-5).
=ECBYTS.GHG_TCO2E(quantity, emissionFactorKgPerUnit)numberConverts activity quantity and emission factor to tCO2e per ABNT NBR ISO 14064-1 / IPCC AR6.
=ECBYTS.EIS_SCORE(transparency, auditability, completeness, timeliness, spatial, compliance)numberComputes 0–5 EIS 3CTA+T geometric score enforcing non-compensatory veto when T <= 2 or A <= 2.
=ECBYTS.VERIFY_SEAL(payloadSha256Hex)stringQueries public GET /api/seals/{hash} and returns first-party ISO 14021 self-declaration verification status.
CLI CommandModeDescription
node --experimental-strip-types scripts/ecbt-verify.ts <arquivo.ecbt.json>offlineOffline zero-network verifier for JCS canonicalization, dual SHA-256/SHA3-256 digests, Ed25519/PQC signatures, and ISO 14021 declarations.
npm run apilocal_serverStarts the local Node 22 + PGlite HTTP server exposing REST API, /api/mcp, and discovery routes.
curl -sS https://ecbyts.com/api/seals/<sha256-64hex>offlineQueries the public ISO 14021 first-party seal registry by 64-hex SHA-256 digest without authentication.
curl -sS https://ecbyts.com/openapi.jsonofflineFetches the live OpenAPI 3.1.0 contract for SDK generation or MCP agent integration.