Bind an asset's variables
Proposal: a person approves it in Muvia, unless an administrator lets that kind run at once.
- Scopes
muvia.write- Module
- Models and Workbench
Propose binding an asset's variables to tags, unbinding some, or a tag's new name.
Arguments
project_idstringrequired
asset_idstringrequired
bindingsobjectoptional
{variable: {tag, node_id}}.
unbind_the_restbooleanoptional
Unbind every variable bindings does not name.
Default false
unboundarray of stringoptional
Variables to unbind.
renamesarray of objectoptional
Tags renamed, each {field_name, tag, since, node_id} (GUIDE).
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"asset_id": {
"type": "string"
},
"bindings": {
"description": "{variable: {tag, node_id}}.",
"type": "object"
},
"unbind_the_rest": {
"default": false,
"description": "Unbind every variable bindings does not name.",
"type": "boolean"
},
"unbound": {
"description": "Variables to unbind.",
"items": {
"type": "string"
},
"type": "array"
},
"renames": {
"description": "Tags renamed, each {field_name, tag, since, node_id} (GUIDE).",
"items": {
"type": "object"
},
"type": "array"
}
},
"required": [
"project_id",
"asset_id"
],
"type": "object"
}
Copy a data model
Proposal: a person approves it in Muvia, unless an administrator lets that kind run at once.
- Scopes
muvia.write- Module
- Models and Workbench
Propose a draft copy of a model with its whole subtree of child models.
Arguments
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"model_id": {
"type": "string"
},
"deep": {
"default": false,
"description": "Copy the child models too.",
"type": "boolean"
}
},
"required": [
"project_id",
"model_id"
],
"type": "object"
}
Create assets
Proposal: a person approves it in Muvia, unless an administrator lets that kind run at once.
- Scopes
muvia.write- Module
- Models and Workbench
Propose assets of one data model: fixed values, bindings or a pattern.
Arguments
project_idstringrequired
model_idstringrequired
Their data model (list_models).
itemsarray of objectrequired
Also description, tags, static_fields {variable: value}, tag_pattern.
parent_asset_idstringoptional
Their parent asset.
tag_patternstringoptional
Binds every tag-read variable (GUIDE).
static_fieldsobjectoptional
Shared fixed values (GUIDE).
node_idstringoptional
The pattern's node.
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"model_id": {
"description": "Their data model (list_models).",
"type": "string"
},
"items": {
"description": "Also description, tags, static_fields {variable: value}, tag_pattern.",
"items": {
"properties": {
"name": {
"type": "string"
},
"bindings": {
"additionalProperties": {
"properties": {
"tag": {
"type": "string"
},
"node_id": {}
},
"required": [
"tag"
]
},
"type": "object"
}
},
"required": [
"name"
],
"type": "object"
},
"type": "array"
},
"parent_asset_id": {
"description": "Their parent asset.",
"type": "string"
},
"tag_pattern": {
"description": "Binds every tag-read variable (GUIDE).",
"type": "string"
},
"static_fields": {
"description": "Shared fixed values (GUIDE).",
"type": "object"
},
"node_id": {
"description": "The pattern's node.",
"type": "string"
}
},
"required": [
"project_id",
"model_id",
"items"
],
"type": "object"
}
Create a model
Proposal: a person approves it in Muvia, unless an administrator lets that kind run at once.
- Scopes
muvia.write- Module
- Models and Workbench
Propose a draft data model with variables (see suggest_model_from_tags, suggest_fields_from_document).
Arguments
project_idstringrequired
namestringrequired
descriptionstringoptional
What it describes.
fieldsarray of objectrequired
Its variables (GUIDE).
tagsarray of stringoptional
Its labels.
parent_model_idstringoptional
colorstringoptional
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"description": "What it describes.",
"type": "string"
},
"fields": {
"description": "Its variables (GUIDE).",
"items": {
"type": "object"
},
"type": "array"
},
"tags": {
"description": "Its labels.",
"items": {
"type": "string"
},
"type": "array"
},
"parent_model_id": {
"type": "string"
},
"color": {
"type": "string"
}
},
"required": [
"project_id",
"name",
"fields"
],
"type": "object"
}
Delete an asset
Proposal: a person approves it in Muvia, unless an administrator lets that kind run at once.
- Scopes
muvia.write- Module
- Models and Workbench
Propose deleting an asset and its documents. Refused while it has components.
Arguments
project_idstringrequired
asset_idstringrequired
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"asset_id": {
"type": "string"
}
},
"required": [
"project_id",
"asset_id"
],
"type": "object"
}
Delete a model
Proposal: a person approves it in Muvia, unless an administrator lets that kind run at once.
- Scopes
muvia.write- Module
- Models and Workbench
Propose deleting a model and its child models; refused while an asset is of one.
Arguments
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"model_id": {
"type": "string"
},
"recursive": {
"default": false,
"description": "Delete the child models too.",
"type": "boolean"
}
},
"required": [
"project_id",
"model_id"
],
"type": "object"
}
Describe an asset
- Scopes
muvia.read- Module
- Models and Workbench
One asset: variables with limits, source, documentation, datasets and dashboards reading it, documents, facts, completeness, a newer model version. last_seen_at: its tag's last send in 7 days; null if none, unless unmeasured names it.
Arguments
project_idstringrequired
asset_idstringrequired
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"asset_id": {
"type": "string"
}
},
"required": [
"project_id",
"asset_id"
],
"type": "object"
}
Describe a model
- Scopes
muvia.read- Module
- Models
One data model: variables with type, unit, limits and category, versions, parents and children, documents.
Arguments
project_idstringrequired
model_idstringrequired
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"model_id": {
"type": "string"
}
},
"required": [
"project_id",
"model_id"
],
"type": "object"
}
Read variable documents
- Scopes
muvia.read- Module
- Models and Workbench
Where each variable is documented, for a model family or an asset: whether each document still exists, which may be cited.
Arguments
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"model_id": {
"description": "A model: its family's and the project's documents.",
"type": "string"
},
"asset_id": {
"description": "Or an asset: its own files.",
"type": "string"
}
},
"required": [
"project_id"
],
"type": "object"
}
Duplicate an asset
Proposal: a person approves it in Muvia, unless an administrator lets that kind run at once.
- Scopes
muvia.write- Module
- Models and Workbench
Propose a copy of an asset under another name: same model, parent, labels, fixed values; bindings with a text of each tag replaced.
Arguments
project_idstringrequired
asset_idstringrequired
namestringrequired
The copy's name.
with_bindingsbooleanoptional
Copy bindings.
Default true
tag_findstringoptional
Text replaced in every copied tag (e.g. C101.).
tag_replacestringoptional
What tag_find becomes.
node_idstringoptional
The node the copied tags arrive from.
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"asset_id": {
"type": "string"
},
"name": {
"description": "The copy's name.",
"type": "string"
},
"with_bindings": {
"default": true,
"description": "Copy bindings.",
"type": "boolean"
},
"tag_find": {
"description": "Text replaced in every copied tag (e.g. C101.).",
"type": "string"
},
"tag_replace": {
"description": "What tag_find becomes.",
"type": "string"
},
"node_id": {
"description": "The node the copied tags arrive from.",
"type": "string"
}
},
"required": [
"project_id",
"asset_id",
"name"
],
"type": "object"
}
File an object in an asset
Proposal: a person approves it in Muvia, unless an administrator lets that kind run at once.
- Scopes
muvia.write- Module
- Models and Workbench
Propose filing a dashboard, notebook, report, dataset, query or flow in an asset's contents, or taking one out.
Arguments
project_idstringrequired
asset_idstringrequired
kindstringrequired
What is filed: not an analysis.
One of "dashboard", "notebook", "report", "dataset", "query", "flow", "analysis"
targetstringrequired
Where to file it.
unfilebooleanoptional
Take it out instead.
Default false
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"asset_id": {
"type": "string"
},
"kind": {
"description": "What is filed: not an analysis.",
"enum": [
"dashboard",
"notebook",
"report",
"dataset",
"query",
"flow",
"analysis"
],
"type": "string"
},
"target": {
"description": "Where to file it.",
"type": "string"
},
"unfile": {
"default": false,
"description": "Take it out instead.",
"type": "boolean"
}
},
"required": [
"project_id",
"asset_id",
"kind",
"target"
],
"type": "object"
}
List the assets
- Scopes
muvia.read- Module
- Models and Workbench
Assets (machines): model, parent, binding completeness.
Arguments
project_idstringrequired
searchstringoptional
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"search": {
"type": "string"
}
},
"required": [
"project_id"
],
"type": "object"
}
List models
- Scopes
muvia.read- Module
- Models
Models (what a machine kind measures): version, status, parent, folder, tags, variables.
Arguments
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"name": {
"description": "Name contains.",
"type": "string"
},
"tags": {
"description": "With all these.",
"items": {
"type": "string"
},
"type": "array"
},
"latest_only": {
"default": true,
"description": "Newest versions.",
"type": "boolean"
}
},
"required": [
"project_id"
],
"type": "object"
}
Preview an upgrade
- Scopes
muvia.read- Module
- Models
What moving an asset to a newer model version would do per variable (kept, renamed, added, removed), binding and fixed value.
Arguments
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"asset_id": {
"type": "string"
},
"target_model_id": {
"description": "Model id of the asset's family to move to; none: the newest published.",
"type": "string"
}
},
"required": [
"project_id",
"asset_id"
],
"type": "object"
}
Document variables
Proposal: a person approves it in Muvia, unless an administrator lets that kind run at once.
- Scopes
muvia.write- Module
- Models and Workbench
Propose where named variables are documented (model_id or asset_id).
Arguments
project_idstringrequired
model_idstringoptional
A model: its family's and the project's documents.
asset_idstringoptional
Or an asset: its own files.
referencesobjectrequired
{field_id: [reference]}, replacing what it had (GUIDE); [] clears it.
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"model_id": {
"description": "A model: its family's and the project's documents.",
"type": "string"
},
"asset_id": {
"description": "Or an asset: its own files.",
"type": "string"
},
"references": {
"description": "{field_id: [reference]}, replacing what it had (GUIDE); [] clears it.",
"type": "object"
}
},
"required": [
"project_id",
"references"
],
"type": "object"
}
Read an asset's live values
- Scopes
muvia.read- Module
- Models
Each variable of an asset now: tag, newest value and when, freshness by the node's cadence.
Arguments
project_idstringrequired
asset_idstringrequired
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"asset_id": {
"type": "string"
}
},
"required": [
"project_id",
"asset_id"
],
"type": "object"
}
Release a model
Proposal: a person approves it in Muvia, unless an administrator lets that kind run at once.
- Scopes
muvia.write- Module
- Models and Workbench
Propose releasing a draft model (its assets get an upgrade) or drafting a released model's next version.
Arguments
project_idstringrequired
model_idstringrequired
release_notesstringoptional
new_versionobjectoptional
Next version, as create_model (fields required); with_children: descendants follow.
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"model_id": {
"type": "string"
},
"release_notes": {
"type": "string"
},
"new_version": {
"description": "Next version, as create_model (fields required); with_children: descendants follow.",
"type": "object"
}
},
"required": [
"project_id",
"model_id"
],
"type": "object"
}
Set asset values
Proposal: a person approves it in Muvia, unless an administrator lets that kind run at once.
- Scopes
muvia.write- Module
- Models and Workbench
Propose setting or clearing an asset's fixed values (serial, rating).
Arguments
project_idstringrequired
asset_idstringrequired
valuesobjectoptional
Fixed variable → its value (a serial, a rating).
clearedarray of stringoptional
Fixed variables whose value to clear.
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"asset_id": {
"type": "string"
},
"values": {
"description": "Fixed variable → its value (a serial, a rating).",
"type": "object"
},
"cleared": {
"description": "Fixed variables whose value to clear.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"project_id",
"asset_id"
],
"type": "object"
}
Suggest bindings
- Scopes
muvia.write- Module
- Models
Likeliest tag per unbound variable of an asset, scored; bind_asset saves those kept.
Arguments
project_idstringrequired
asset_idstringrequired
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"asset_id": {
"type": "string"
}
},
"required": [
"project_id",
"asset_id"
],
"type": "object"
}
Suggest variables
- Scopes
muvia.write- Module
- Models
Variables a model's document (datasheet, manual) says it should have, with page and heading; uses the AI.
Arguments
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"model_id": {
"type": "string"
},
"attachment_name": {
"description": "A model document's name (describe_model).",
"type": "string"
}
},
"required": [
"project_id",
"model_id",
"attachment_name"
],
"type": "object"
}
Suggest a model
- Scopes
muvia.write- Module
- Models
A model from the project's tags: a variable per tag with type, unit, whether it adds up; create_model saves it.
Arguments
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
}
},
"required": [
"project_id"
],
"type": "object"
}
Update an asset
Proposal: a person approves it in Muvia, unless an administrator lets that kind run at once.
- Scopes
muvia.write- Module
- Models and Workbench
Propose changing one asset's name, description, labels, parent or missing-reading rules.
Arguments
project_idstringrequired
asset_idstringrequired
namestringoptional
descriptionstringoptional
Null clears it.
tagsarray of stringoptional
parent_asset_idstringoptional
The asset it is a component of; null detaches it.
when_missingobjectoptional
By variable id, its own rule where a reading is missing: {fill: last_value|empty, valid_for_periods or valid_for_seconds}; null reads the model's.
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"asset_id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"description": "Null clears it.",
"type": "string"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"parent_asset_id": {
"description": "The asset it is a component of; null detaches it.",
"type": "string"
},
"when_missing": {
"description": "By variable id, its own rule where a reading is missing: {fill: last_value|empty, valid_for_periods or valid_for_seconds}; null reads the model's.",
"type": "object"
}
},
"required": [
"project_id",
"asset_id"
],
"type": "object"
}
Update a draft model
Proposal: a person approves it in Muvia, unless an administrator lets that kind run at once.
- Scopes
muvia.write- Module
- Models and Workbench
Propose changing a draft model's name, variables, labels, parent or colour. A released one: release_model.
Arguments
project_idstringrequired
model_idstringrequired
namestringoptional
descriptionstringoptional
fieldsarray of objectoptional
Its variables (GUIDE), replaced whole; one keeps its id by name.
tagsarray of stringoptional
parent_model_idstringoptional
colorstringoptional
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"model_id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"fields": {
"description": "Its variables (GUIDE), replaced whole; one keeps its id by name.",
"items": {
"type": "object"
},
"type": "array"
},
"tags": {
"items": {
"type": "string"
},
"type": "array"
},
"parent_model_id": {
"type": "string"
},
"color": {
"type": "string"
}
},
"required": [
"project_id",
"model_id"
],
"type": "object"
}
Upgrade an asset
Proposal: a person approves it in Muvia, unless an administrator lets that kind run at once.
- Scopes
muvia.write- Module
- Models and Workbench
Propose moving an asset to a newer model version, as preview_asset_upgrade shows.
Arguments
project_idstringrequired
asset_idstringoptional
Asset to move; none: all the family's below the target, which must only add variables.
target_model_idstringrequired
The published version to move to, a model id of the family.
static_fieldsobjectoptional
Values for the fixed variables the new version adds.
Input schema (JSON)
{
"properties": {
"project_id": {
"type": "string"
},
"asset_id": {
"description": "Asset to move; none: all the family's below the target, which must only add variables.",
"type": "string"
},
"target_model_id": {
"description": "The published version to move to, a model id of the family.",
"type": "string"
},
"static_fields": {
"description": "Values for the fixed variables the new version adds.",
"type": "object"
}
},
"required": [
"project_id",
"target_model_id"
],
"type": "object"
}