Skip to main content
Glama

Connect BYO machine

machines_create

Register a self-managed machine and return its daemon token for installing omnarad; optionally grant it to projects so their agent configs can reference it by display name.

Instructions

Registers a machine you run yourself and returns its daemon token for installing omnarad on it; the token is shown only in this response. The machine stays offline until its daemon connects. project_ids grants it to those projects in the same call, and their agent configs reference it by display_name.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "display_name": "<display_name>",
      "orgID": "<orgID>"
    },
    "name": "machines_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoDefault working directory for processes started on the machine.
envNoEnvironment variables for processes started on the machine.
orgIDYesOrganization ID (org_...).
metadataNoUser-supplied metadata stored on a machine, provided directly or copied from the machine pool that provisions it. A restriction of Metadata that leaves room for one reserved pair - Omnara sets observed_platform on the machine to the platform reported by its daemon, so the key is reserved and at most 15 user pairs are accepted.
secret_envNoEnvironment variables set from secrets, keyed by variable name, for processes started on the machine.
token_nameNoOptional daemon token name. Omitted values default to daemon.
descriptionNoFree-form description stored with the machine.
project_idsNoProjects to grant the machine to in the same call.
display_nameYesHuman-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.

Output Schema

NameRequiredDescriptionDefault
tokenYesOpaque bearer credential.
machineYesNewly created BYO machine.
token_recordYesStored details of the issued daemon token; the token itself is never returned again.
project_grantsYesGrants created for the requested projects; empty when none were requested.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv0.1.10
    • changedInput schema / properties / description / description
      Previous value: -"Optional description of the machine."New value: +"Free-form description stored with the machine."
    • removedInput schema / properties / display_name / x-omnara-unicode-normalization
      Removed value: -"NFC"
    • changedInput schema / properties / env / description
      Previous value: -"Environment variables set for processes started on the machine."New value: +"Environment variables for processes started on the machine."
    • removedInput schema / properties / metadata / x-go-type
      Removed value: -"resourcemeta.Metadata"
    • removedInput schema / properties / metadata / x-go-type-import
      Removed value: -{
      -  "path": "github.com/omnara-ai/omnara/internal/resourcemeta"
      -}
    • removedInput schema / properties / metadata / x-go-type-skip-optional-pointer
      Removed value: -true
    • changedInput schema / properties / project_ids / description
      Previous value: -"Projects to grant the machine to in the same call (up to 100)."New value: +"Projects to grant the machine to in the same call."
    • changedInput schema / properties / secret_env / description
      Previous value: -"Environment variable names mapped to secret IDs (sec_...) whose values are set for processes started on the machine."New value: +"Environment variables set from secrets, keyed by variable name, for processes started on the machine."
    • removedInput schema / properties / token_name / x-omnara-unicode-normalization
      Removed value: -"NFC"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "Machine": {
      +      "properties": {
      +        "connection_state": {
      +          "$ref": "#/$defs/MachineConnectionState",
      +          "description": "Whether the machine's daemon is connected now; asleep means suspended but able to be woken."
      +        },
      +        "connection_state_reason": {
      +          "description": "Why the machine's latest daemon session ended, such as daemon_lease_expired.",
      +          "type": "string"
      +        },
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp",
      +          "description": "When the machine record was created."
      +        },
      +        "cwd": {
      +          "description": "Default working directory for processes started on the machine.",
      +          "type": "string"
      +        },
      +        "delete_attempts": {
      +          "description": "Number of times Omnara has tried to delete this machine.",
      +          "format": "int32",
      +          "type": "integer"
      +        },
      +        "deleted_at": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/Timestamp"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "When the machine finished deleting; null while it still exists."
      +        },
      +        "description": {
      +          "description": "Free-form note about the machine; empty if none was set.",
      +          "type": "string"
      +        },
      +        "display_name": {
      +          "$ref": "#/$defs/ResourceName",
      +          "description": "Machine name; agent configs reference a BYO machine by this as machine_name."
      +        },
      +        "env": {
      +          "additionalProperties": {
      +            "type": "string"
      +          },
      +          "description": "Environment variables set for every process started on the machine.",
      +          "type": "object"
      +        },
      +        "failure_report": {
      +          "$ref": "#/$defs/MachineFailureReport",
      +          "description": "Latest setup or daemon failure reported from the machine; omitted when none is recorded."
      +        },
      +        "id": {
      +          "$ref": "#/$defs/MachineID",
      +          "description": "Identifies the machine."
      +        },
      +        "last_observed_at": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/Timestamp"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "When the daemon last registered or sent a heartbeat; null if it has never connected."
      +        },
      +        "lifecycle_reason_code": {
      +          "description": "Machine-readable reason for the latest lifecycle change, such as idle_timeout; empty when none.",
      +          "type": "string"
      +        },
      +        "lifecycle_reason_message": {
      +          "description": "Human-readable detail for lifecycle_reason_code; empty when none.",
      +          "type": "string"
      +        },
      +        "lifecycle_state": {
      +          "$ref": "#/$defs/MachineLifecycleState",
      +          "description": "Where the machine is in provisioning or deletion, independent of whether its daemon is connected."
      +        },
      +        "machine_pool_id": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/MachinePoolID"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Pool the machine was created from; null for BYO machines."
      +        },
      +        "metadata": {
      +          "$ref": "#/$defs/Metadata",
      +          "description": "Key-value metadata attached to the machine."
      +        },
      +        "next_reconcile_after": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/Timestamp"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "When Omnara next works on provisioning or deleting the machine; null when nothing is scheduled."
      +        },
      +        "org_id": {
      +          "$ref": "#/$defs/OrganizationID",
      +          "description": "Organization that owns the machine."
      +        },
      +        "provider": {
      +          "description": "Sandbox provider that hosts a pool machine; byo for bring-your-own machines.",
      +          "type": "string"
      +        },
      +        "provision_attempts": {
      +          "description": "Number of times Omnara has tried to provision this machine.",
      +          "format": "int32",
      +          "type": "integer"
      +        },
      +        "secret_env": {
      +          "additionalProperties": {
      +            "$ref": "#/$defs/SecretID"
      +          },
      +          "description": "Environment variable names mapped to secrets whose values are injected when processes start.",
      +          "type": "object"
      +        },
      +        "source_kind": {
      +          "$ref": "#/$defs/MachineSourceKind",
      +          "description": "Whether the machine is a bring-your-own computer or was created from a machine pool."
      +        },
      +        "updated_at": {
      +          "$ref": "#/$defs/Timestamp",
      +          "description": "When the machine record last changed."
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "org_id",
      +        "source_kind",
      +        "display_name",
      +        "description",
      +        "provider",
      +        "lifecycle_state",
      +        "connection_state",
      +        "last_observed_at",
      +        "cwd",
      +        "env",
      +        "secret_env",
      +        "lifecycle_reason_code",
      +        "lifecycle_reason_message",
      +        "next_reconcile_after",
      +        "provision_attempts",
      +        "delete_attempts",
      +        "metadata",
      +        "deleted_at",
      +        "created_at",
      +        "updated_at"
      +      ],
      +      "type": "object"
      +    },
      +    "MachineConnectionState": {
      +      "enum": [
      +        "online",
      +        "asleep",
      +        "offline"
      +      ],
      +      "type": "string"
      +    },
      +    "MachineDaemonToken": {
      +      "properties": {
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp",
      +          "description": "When the token was issued."
      +        },
      +        "id": {
      +          "$ref": "#/$defs/MachineDaemonTokenID",
      +          "description": "Identifies the daemon token."
      +        },
      +        "last_used_at": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/Timestamp"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Approximate time the daemon last authenticated with this token; null if never used."
      +        },
      +        "machine_id": {
      +          "$ref": "#/$defs/MachineID",
      +          "description": "Machine whose daemon authenticates with this token."
      +        },
      +        "metadata": {
      +          "$ref": "#/$defs/Metadata",
      +          "description": "Key-value metadata attached to the token."
      +        },
      +        "name": {
      +          "$ref": "#/$defs/ResourceName",
      +          "description": "Label for the token; defaults to daemon."
      +        },
      +        "org_id": {
      +          "$ref": "#/$defs/OrganizationID",
      +          "description": "Organization that owns the token."
      +        },
      +        "revoke_reason": {
      +          "description": "Why the token was revoked, such as machine_deleted; empty while valid.",
      +          "type": "string"
      +        },
      +        "revoked_at": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/Timestamp"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "When the token was revoked; null while it is still valid."
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "org_id",
      +        "machine_id",
      +        "name",
      +        "metadata",
      +        "created_at",
      +        "last_used_at",
      +        "revoked_at",
      +        "revoke_reason"
      +      ],
      +      "type": "object"
      +    },
      +    "MachineDaemonTokenID": {
      +      "pattern": "^mdt_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "MachineFailureReport": {
      +      "description": "The machine's most recent daemon-reported failure. A single slot, overwritten by newer reports. Runtime crash reports remain as historical diagnostics; recovery may clear other failure stages.",
      +      "properties": {
      +        "daemon_version": {
      +          "description": "Daemon version that was running when a daemon update failed.",
      +          "type": "string"
      +        },
      +        "exit_status": {
      +          "description": "Exit status of the failed startup script or daemon install; omitted for other stages.",
      +          "type": "integer"
      +        },
      +        "output_tail": {
      +          "description": "End of the failed step's output, for diagnosis.",
      +          "type": "string"
      +        },
      +        "output_truncated": {
      +          "description": "True when earlier output was dropped or output capture failed.",
      +          "type": "boolean"
      +        },
      +        "reported_at": {
      +          "$ref": "#/$defs/Timestamp",
      +          "description": "When the failure was reported."
      +        },
      +        "stage": {
      +          "description": "Setup or daemon step that failed.",
      +          "enum": [
      +            "startup_script",
      +            "daemon_install",
      +            "daemon_update",
      +            "daemon_runtime",
      +            "daemon_uninstall",
      +            "daemon_uninstalled"
      +          ],
      +          "type": "string"
      +        },
      +        "target_version": {
      +          "description": "Version the daemon was trying to update to when the update failed.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "stage",
      +        "output_tail",
      +        "output_truncated",
      +        "reported_at"
      +      ],
      +      "type": "object"
      +    },
      +    "MachineID": {
      +      "description": "Machine ID (mch_...).",
      +      "pattern": "^mch_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "MachineLifecycleState": {
      +      "enum": [
      +        "provisioning",
      +        "provision_failed",
      +        "active",
      +        "deleting",
      +        "delete_failed",
      +        "deleted"
      +      ],
      +      "type": "string"
      +    },
      +    "MachinePoolID": {
      +      "description": "Machine pool ID (mpo_...).",
      +      "pattern": "^mpo_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "MachineSourceKind": {
      +      "enum": [
      +        "byo",
      +        "pool"
      +      ],
      +      "type": "string"
      +    },
      +    "Metadata": {
      +      "additionalProperties": {
      +        "maxLength": 512,
      +        "type": "string"
      +      },
      +      "description": "Arbitrary key-value labels stored with the resource.",
      +      "maxProperties": 16,
      +      "propertyNames": {
      +        "maxLength": 64,
      +        "minLength": 1
      +      },
      +      "type": "object"
      +    },
      +    "OrganizationID": {
      +      "pattern": "^org_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectID": {
      +      "description": "Project ID (proj_...).",
      +      "pattern": "^proj_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectMachineGrant": {
      +      "properties": {
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp",
      +          "description": "When the grant was created."
      +        },
      +        "description": {
      +          "description": "Free-form note about the grant; empty if none was set.",
      +          "type": "string"
      +        },
      +        "id": {
      +          "$ref": "#/$defs/ProjectMachineGrantID",
      +          "description": "Identifies the machine grant."
      +        },
      +        "machine_id": {
      +          "$ref": "#/$defs/MachineID",
      +          "description": "Machine the project's agents may use."
      +        },
      +        "metadata": {
      +          "$ref": "#/$defs/Metadata",
      +          "description": "Key-value metadata attached to the grant."
      +        },
      +        "org_id": {
      +          "$ref": "#/$defs/OrganizationID",
      +          "description": "Organization that owns the grant."
      +        },
      +        "project_id": {
      +          "$ref": "#/$defs/ProjectID",
      +          "description": "Project the grant gives access to."
      +        },
      +        "project_machine_pool_grant_id": {
      +          "anyOf": [
      +            {
      +              "$ref": "#/$defs/ProjectMachinePoolGrantID"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Pool grant that created this grant; null for direct grants."
      +        },
      +        "source_kind": {
      +          "$ref": "#/$defs/ProjectMachineGrantSourceKind",
      +          "description": "Whether the grant was made directly or created for a machine from a pool grant."
      +        },
      +        "updated_at": {
      +          "$ref": "#/$defs/Timestamp",
      +          "description": "When the grant last changed."
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "org_id",
      +        "project_id",
      +        "machine_id",
      +        "source_kind",
      +        "description",
      +        "metadata",
      +        "created_at",
      +        "updated_at"
      +      ],
      +      "type": "object"
      +    },
      +    "ProjectMachineGrantID": {
      +      "pattern": "^pmg_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectMachineGrantSourceKind": {
      +      "enum": [
      +        "explicit",
      +        "pool"
      +      ],
      +      "type": "string"
      +    },
      +    "ProjectMachinePoolGrantID": {
      +      "pattern": "^pmpg_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ResourceName": {
      +      "description": "Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.",
      +      "maxLength": 64,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "SecretID": {
      +      "description": "Secret ID (sec_...).",
      +      "pattern": "^sec_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "Timestamp": {
      +      "format": "date-time",
      +      "type": "string"
      +    }
      +  },
      +  "properties": {
      +    "machine": {
      +      "$ref": "#/$defs/Machine",
      +      "description": "Newly created BYO machine."
      +    },
      +    "project_grants": {
      +      "description": "Grants created for the requested projects; empty when none were requested.",
      +      "items": {
      +        "$ref": "#/$defs/ProjectMachineGrant"
      +      },
      +      "type": "array"
      +    },
      +    "token": {
      +      "description": "Opaque bearer credential.",
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "token_record": {
      +      "$ref": "#/$defs/MachineDaemonToken",
      +      "description": "Stored details of the issued daemon token; the token itself is never returned again."
      +    }
      +  },
      +  "required": [
      +    "machine",
      +    "token",
      +    "token_record",
      +    "project_grants"
      +  ],
      +  "type": "object"
      +}
  2. Changed1 schema field changedv0.1.6
    • changedInput schema / properties / token_name / description
      Previous value: -"Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not."New value: +"Optional daemon token name. Omitted values default to daemon."
  3. Changed8 schema fields changedv0.1.1
    • addedInput schema / $defs / ProjectID / description
      Added value: +"Project ID (proj_...)."
    • addedInput schema / $defs / SecretID / description
      Added value: +"Secret ID (sec_...)."
    • addedInput schema / properties / cwd / description
      Added value: +"Default working directory for processes started on the machine."
    • addedInput schema / properties / description / description
      Added value: +"Optional description of the machine."
    • addedInput schema / properties / env / description
      Added value: +"Environment variables set for processes started on the machine."
    • addedInput schema / properties / orgID / description
      Added value: +"Organization ID (org_...)."
    • addedInput schema / properties / project_ids / description
      Added value: +"Projects to grant the machine to in the same call (up to 100)."
    • addedInput schema / properties / secret_env / description
      Added value: +"Environment variable names mapped to secret IDs (sec_...) whose values are set for processes started on the machine."
  4. First observed

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare non-readonly, non-destructive, non-idempotent, closed-world, so the bar is lower. The description adds genuine behavior: the token is single-exposure and unrecoverable, and the machine sits offline until its daemon connects — both material facts an agent would otherwise not know.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and its side effect, and every clause carries information. The second sentence is dense and semicolon-chained, which slightly taxes parsing, but nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter, nested-object create tool with an output schema, the description covers the key non-obvious outcomes (one-time token, offline-until-daemon, project granting, display_name reference). Env/secret_env/metadata semantics are left entirely to the rich schema, which is acceptable given 100% coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds real meaning beyond the schema: project_ids grants the machine to those projects in the same call, and display_name is the handle agent configs use to reference the machine. That linkage between a parameter and downstream behavior is not derivable from the schema alone.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Registers a machine you run yourself") plus the distinguishing outcome (returns a daemon token for installing omnarad). This is clearly a create/BYO-connect operation, separable from machines_get/list/update/delete siblings without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by "a machine you run yourself" (i.e., bring-your-own vs. provisioned machines), but no alternative is named and no when-not condition is given. The "shown only in this response" note does tell the agent to capture the token now, which is actionable context but not routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.