henosis
Open-source context engine for physical assets: entities, readings, networks and maps for agents.
Sollte ich dies verwenden
Qualität und Sicherheit
Befunde (1)
- LOWin get_latest_observation
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"henosis": {
"command": "uvx",
"args": [
"henosis-engine"
]
}
}
}Ausführbare Pakete
0.2.2stdioRemote-Endpunkte
https://oil-gas.try.henos.io/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (17)
🟢get_entity(type, id, fields, at)
Fetch a single entity by EntityType name and ID. `fields` selects specific dotted field paths (e.g. "identity.name", "state.*", "*"); omit for the default identity+state projection. `at` is an ISO 8601 timestamp for a point-in-time query against a versioned source.
Eingabe-Schema
{
"type": "object",
"properties": {
"type": {
"title": "Type",
"type": "string"
},
"id": {
"title": "Id",
"type": "string"
},
"fields": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Fields"
},
"at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "At"
}
},
"required": [
"type",
"id"
],
"title": "get_entityArguments"
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true,
"title": "get_entityDictOutput"
}🟢list_entities(type, filters, fields, at, limit, ...)
List entities of an EntityType. `filters` maps a field path to either an exact value or a range object ({"gte"/"lte"/"gt"/"lt": v}). The result's `total` is the full matching count, independent of `limit`/`offset` — more results may exist than are returned. `format` (json|tsv|md, default json) applies to this list result only: tsv/md return the rows as a compact table to cut token cost; json is unchanged.
Eingabe-Schema
{
"type": "object",
"properties": {
"type": {
"title": "Type",
"type": "string"
},
"filters": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Filters"
},
"fields": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Fields"
},
"at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "At"
},
"limit": {
"default": 50,
"title": "Limit",
"type": "integer"
},
"offset": {
"default": 0,
"title": "Offset",
"type": "integer"
},
"format": {
"default": "json",
"enum": [
"json",
"tsv",
"md"
],
"title": "Format",
"type": "string"
}
},
"required": [
"type"
],
"title": "list_entitiesArguments"
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true,
"title": "list_entitiesDictOutput"
}🟢search_entities(query, types, fields, limit, format)
Find entities by a free-text name/label match — case-insensitive substring over every string identity property (name, code, uwi, …), across all EntityTypes or a given `types` subset. A finder for locating an entity when you know part of its name but not its id, not a ranked search engine. Returns entity stubs; call get_entity for full detail. `format` (json|tsv|md, default json) applies to this list result only: tsv/md return the rows as a compact table to cut token cost.
Eingabe-Schema
{
"type": "object",
"properties": {
"query": {
"title": "Query",
"type": "string"
},
"types": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Types"
},
"fields": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Fields"
},
"limit": {
"default": 20,
"title": "Limit",
"type": "integer"
},
"format": {
"default": "json",
"enum": [
"json",
"tsv",
"md"
],
"title": "Format",
"type": "string"
}
},
"required": [
"query"
],
"title": "search_entitiesArguments"
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true,
"title": "search_entitiesDictOutput"
}🟢count_entities(type, filters, at)
Count entities of an EntityType matching optional filters, without fetching them — useful for deciding a fetch/pagination strategy.
Eingabe-Schema
{
"type": "object",
"properties": {
"type": {
"title": "Type",
"type": "string"
},
"filters": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Filters"
},
"at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "At"
}
},
"required": [
"type"
],
"title": "count_entitiesArguments"
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true,
"title": "count_entitiesDictOutput"
}🟢select(expression, types, limit, project, order_by, ...)
Select a subset of entities with a CEL selection expression — the composable way to filter across types, attributes, and observation thresholds with boolean logic, and (with `project`/`order_by`) return ranked computed columns in ONE call instead of a per-entity fan-out. Examples: entity.type == 'Well' && entity.state.status in ['active','injection'] entity.type == 'Well' && has_obs(entity,'gas_rate') && latest(entity,'gas_rate') < 50000 avg(entity,'water_cut','30d') > 80 Functions: has_obs(entity,prop), latest(entity,prop), avg|min|max|sum|count(entity,prop,window), search(entity,text), related(entity,rel[,'inbound']) (neighbour-id list; size(...) counts them — use 'inbound' to count entities pointing AT this one, e.g. size(related(entity,'subject','inbound')) for interventions targeting a well), derived(entity,prop) (a derived_from state value, so you can rank by a computed metric — order_by="derived(entity,'constraint_ratio')"), near(entity,'id',km) | near(entity,lon,lat,km), within(entity,'area id') | within(entity,west,south,east,north), distance_km(entity,'id') | distance_km(entity,lon,lat) (km, great-circle; rank with order_by). Guard any observation/maybe-missing-field predicate (has_obs/has(...)). `project` = {column: cel_expr} computes a scalar per matched entity onto each result's `computed` (e.g. {"gas_rate":"latest(entity,'gas_rate')", "defects":"size(related(entity,'defects'))"}). `order_by` = a projection column name or its own cel_expr; `descending` reverses it; `limit` then keeps the top N. So "rank the wells feeding pipeline X by current gas rate, with defect counts" is a single select, not 3N calls. `types` narrows the scan (else inferred from the expression). `format` (json|tsv|md, default json) applies to this list result only: tsv/md return the rows (including any projected columns) as a compact table.
Eingabe-Schema
{
"type": "object",
"properties": {
"expression": {
"title": "Expression",
"type": "string"
},
"types": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Types"
},
"limit": {
"default": 200,
"title": "Limit",
"type": "integer"
},
"project": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Project"
},
"order_by": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Order By"
},
"descending": {
"default": false,
"title": "Descending",
"type": "boolean"
},
"format": {
"default": "json",
"enum": [
"json",
"tsv",
"md"
],
"title": "Format",
"type": "string"
}
},
"required": [
"expression"
],
"title": "selectArguments"
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true,
"title": "selectDictOutput"
}🟢aggregate(expression, group_by, types, metric, aggregate, ...)
Group the entities matching a CEL `expression` by the scalar `group_by` expression and return one row per group, ranked by the aggregate descending — a bounded roll-up, NOT per-entity fetch-and-tally. `aggregate` is 'count' (default) or sum|avg|min|max applied to the `metric` CEL expression (required for those). Examples: aggregate("entity.type=='Well'", group_by="entity.state.status") → count of wells per status aggregate("entity.type=='Well' && has_obs(entity,'gas_rate')", group_by="entity.identity.field", metric="latest(entity,'gas_rate')", aggregate='avg') → average current gas_rate per field Bounded to a context-lookup roll-up: fixed aggregates, no joins, and a hard group cap (a high-cardinality group_by errors — group by a low-cardinality field or narrow the selection). `format` (json|tsv|md) applies to the group rows.
Eingabe-Schema
{
"type": "object",
"properties": {
"expression": {
"title": "Expression",
"type": "string"
},
"group_by": {
"title": "Group By",
"type": "string"
},
"types": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Types"
},
"metric": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Metric"
},
"aggregate": {
"default": "count",
"title": "Aggregate",
"type": "string"
},
"limit": {
"default": 10000,
"title": "Limit",
"type": "integer"
},
"format": {
"default": "json",
"enum": [
"json",
"tsv",
"md"
],
"title": "Format",
"type": "string"
}
},
"required": [
"expression",
"group_by"
],
"title": "aggregateArguments"
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true,
"title": "aggregateDictOutput"
}🟢get_facet_values(type, field, limit, format)
Distinct values (with counts, most common first) of one sourced field on an EntityType — the candidate values for a filter facet, e.g. the operators present or the well statuses in use. `field` is a path like 'state.status' or 'identity.operator'. For a filtered query, pass the chosen values to list_entities' `filters` as {path: [v1, v2]}. `format` (json|tsv|md, default json) applies to this list result only.
Eingabe-Schema
{
"type": "object",
"properties": {
"type": {
"title": "Type",
"type": "string"
},
"field": {
"title": "Field",
"type": "string"
},
"limit": {
"default": 100,
"title": "Limit",
"type": "integer"
},
"format": {
"default": "json",
"enum": [
"json",
"tsv",
"md"
],
"title": "Format",
"type": "string"
}
},
"required": [
"type",
"field"
],
"title": "get_facet_valuesArguments"
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true,
"title": "get_facet_valuesDictOutput"
}🟢list_types
List every EntityType registered in the project, with its description and extends/abstract status.
Eingabe-Schema
{
"type": "object",
"properties": {},
"title": "list_typesArguments"
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true,
"title": "list_typesDictOutput"
}🟢get_type(name)
Return the full compiled schema for one EntityType: its identity/ state/observation properties, spatial and lifecycle declarations, documents, and relationships. `has_data_source` is False for a schema-only EntityType populated entirely via hand-authored data — get_entity/list_entities/get_relationships have no data to return for it even though its schema is fully knowable here.
Eingabe-Schema
{
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
}
},
"required": [
"name"
],
"title": "get_typeArguments"
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true,
"title": "get_typeDictOutput"
}🟢get_relationships(entity_id, relationship, direction, target_type, filters, ...)
Fetch the entities related to `entity_id` through its declared relationships. Omit `relationship` to fetch all of them. direction: "outbound" (default, live from the source), "inbound" (who points at this entity — resolved from the graph index, "as of last sync"; the result's `synced_at` reports the freshness bound), or "both". An entity's own EntityType is inferred from `entity_id`'s prefix, so no separate `type` parameter is needed. `format` (json|tsv|md, default json) applies to this list result only: tsv/md return the related entities as a compact table.
Eingabe-Schema
{
"type": "object",
"properties": {
"entity_id": {
"title": "Entity Id",
"type": "string"
},
"relationship": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Relationship"
},
"direction": {
"default": "outbound",
"title": "Direction",
"type": "string"
},
"target_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Target Type"
},
"filters": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Filters"
},
"fields": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Fields"
},
"format": {
"default": "json",
"enum": [
"json",
"tsv",
"md"
],
"title": "Format",
"type": "string"
}
},
"required": [
"entity_id"
],
"title": "get_relationshipsArguments"
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true,
"title": "get_relationshipsDictOutput"
}🟢traverse(entity_id, relationship, max_depth, max_nodes, direction)
Bounded, directed, cycle-safe trace over one `kind: network` relationship — every node and edge reachable from `entity_id` within `max_depth` hops in ONE call (nodes carry their `entity_type` and depth; the origin is depth 0). Use this to follow a network instead of chaining get_relationships hop by hop. `direction="outbound"` goes downstream (well → … → plant); `direction="inbound"` goes upstream — e.g. from a pipeline back to the wells that feed it: traverse(pipeline_id, 'feeds', direction='inbound') then keep the nodes whose entity_type == 'Well'. Capped at max_depth=5. Reads the synced graph index (`henosis sync`).
Eingabe-Schema
{
"type": "object",
"properties": {
"entity_id": {
"title": "Entity Id",
"type": "string"
},
"relationship": {
"title": "Relationship",
"type": "string"
},
"max_depth": {
"default": 4,
"title": "Max Depth",
"type": "integer"
},
"max_nodes": {
"default": 60,
"title": "Max Nodes",
"type": "integer"
},
"direction": {
"default": "outbound",
"title": "Direction",
"type": "string"
}
},
"required": [
"entity_id",
"relationship"
],
"title": "traverseArguments"
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true,
"title": "traverseDictOutput"
}🟢get_observations(entity_id, property, from_, to, resolution, ...)
Time-series points for one observation property of one entity, over the `[from_, to]` ISO-8601 window. Optionally downsample by `resolution` (e.g. "1h", "1d") with `aggregation` (mean/min/max/…). The entity's EntityType is inferred from `entity_id`'s prefix. `format` (json|tsv|md, default json) applies to this point list only: tsv/md return the series as a compact table to cut token cost.
Eingabe-Schema
{
"type": "object",
"properties": {
"entity_id": {
"title": "Entity Id",
"type": "string"
},
"property": {
"title": "Property",
"type": "string"
},
"from_": {
"title": "From",
"type": "string"
},
"to": {
"title": "To",
"type": "string"
},
"resolution": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Resolution"
},
"aggregation": {
"default": "mean",
"title": "Aggregation",
"type": "string"
},
"format": {
"default": "json",
"enum": [
"json",
"tsv",
"md"
],
"title": "Format",
"type": "string"
}
},
"required": [
"entity_id",
"property",
"from_",
"to"
],
"title": "get_observationsArguments"
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true,
"title": "get_observationsDictOutput"
}🟢get_latest_observation(entity_id, property)
The most recent value of one observation property for one entity.
Eingabe-Schema
{
"type": "object",
"properties": {
"entity_id": {
"title": "Entity Id",
"type": "string"
},
"property": {
"title": "Property",
"type": "string"
}
},
"required": [
"entity_id",
"property"
],
"title": "get_latest_observationArguments"
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true,
"title": "get_latest_observationDictOutput"
}🟢get_entity_history(type, id, grain, from_, to, ...)
Calendar-aligned snapshots of one entity's identity/state/spatial over `[from_, to]` at `grain` ("daily"|"monthly"|"yearly"). Requires an SCD2-versioned primary binding (raises TemporalError otherwise). `format` (json|tsv|md, default json) applies to this snapshot list only: tsv/md return the snapshots as a compact table.
Eingabe-Schema
{
"type": "object",
"properties": {
"type": {
"title": "Type",
"type": "string"
},
"id": {
"title": "Id",
"type": "string"
},
"grain": {
"title": "Grain",
"type": "string"
},
"from_": {
"title": "From",
"type": "string"
},
"to": {
"title": "To",
"type": "string"
},
"fields": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Fields"
},
"format": {
"default": "json",
"enum": [
"json",
"tsv",
"md"
],
"title": "Format",
"type": "string"
}
},
"required": [
"type",
"id",
"grain",
"from_",
"to"
],
"title": "get_entity_historyArguments"
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true,
"title": "get_entity_historyDictOutput"
}🟢get_document(entity_id, document, type)
Retrieve one declared document for an entity: its metadata plus either a URL (url-shaped bindings) or base64-encoded bytes with a decoded byte length (file-shaped bindings).
Eingabe-Schema
{
"type": "object",
"properties": {
"entity_id": {
"title": "Entity Id",
"type": "string"
},
"document": {
"title": "Document",
"type": "string"
},
"type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Type"
}
},
"required": [
"entity_id",
"document"
],
"title": "get_documentArguments"
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true,
"title": "get_documentDictOutput"
}🟢list_actions(subject_type)
List declared actions and their parameter schema so a caller can build a form and pick a valid subject — no action is named in code. Each action carries its `subject_target` (the EntityType names its subject may be; absent = any type), `subject_required`, and the ordered `parameters` (name/type/required/description) the caller must supply. Pass `subject_type` to keep only actions runnable on that type (e.g. the type of the currently selected entity). The routing target is never returned — only what the caller provides.
Eingabe-Schema
{
"type": "object",
"properties": {
"subject_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Subject Type"
}
},
"title": "list_actionsArguments"
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true,
"title": "list_actionsDictOutput"
}🟢perform_action(action, subject, params)
Dispatch a declared action by name and return the outcome. henosis stores nothing itself — the action calls a bound statement on the source system. `subject` is the entity id the action acts on (its EntityType is inferred from the id prefix and checked against the action's declared subject.target); omit it for a subject-less global action. `params` supply the action's declared inputs.
Eingabe-Schema
{
"type": "object",
"properties": {
"action": {
"title": "Action",
"type": "string"
},
"subject": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Subject"
},
"params": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Params"
}
},
"required": [
"action"
],
"title": "perform_actionArguments"
}Ausgabe-Schema
{
"type": "object",
"additionalProperties": true,
"title": "perform_actionDictOutput"
}Community
Nachweis