Skip to main content
Glama

Read namespace project, token status and relay health

namespace_get
Read-onlyIdempotent

Read a namespace's token status and relay health, returning backend identity, capabilities, lifecycle phase, cluster count, credential validation, and connectivity without exposing the token.

Instructions

Read namespace project, token status and relay health

Returns backend target identity, capabilities, lifecycle phase, cluster count, credential validation status and relay connectivity, never the stored token. Resolve names with namespaces_list; a missing registration returns 404.

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": {
      "namespace": "<namespace>"
    },
    "name": "namespace_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
namespaceYesProject namespace name; the RBAC object is this name.

Output Schema

NameRequiredDescriptionDefault
nameYes
phaseYes
relayYes
tokenYes
configNo
backendYes
defaultYes
createdAtYes
projectIdYesBackend target ID (Zerops project ID; Dokploy environment or Nomad namespace).
updatedAtYes
descriptionNo
operationIdNo
projectNameYes
capabilitiesYes
clusterCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / $defs / NamespaceName
      Removed value: -{
      -  "description": "Project namespace name, 2–32 lowercase letters, digits or hyphens; starts with a letter and ends with a letter or digit. The existing default namespace is reserved.",
      -  "maxLength": 32,
      -  "minLength": 2,
      -  "pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$",
      -  "type": "string"
      -}
    • addedInput schema / $defs / NamespaceName_depth16
      Added value: +{
      +  "description": "Project namespace name, 2–32 lowercase letters, digits or hyphens; starts with a letter and ends with a letter or digit. The existing default namespace is reserved.",
      +  "maxLength": 32,
      +  "minLength": 2,
      +  "pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$",
      +  "type": "string"
      +}
    • changedInput schema / properties / namespace / $ref
      Previous value: -"#/$defs/NamespaceName"New value: +"#/$defs/NamespaceName_depth16"
    • addedInput schema / properties / namespace / description
      Added value: +"Project namespace name; the RBAC object is this name."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "Capability_depth15": {
      +      "enum": [
      +        "publicTcp",
      +        "tcpAllowlist",
      +        "publicHttps",
      +        "diskGrowth",
      +        "volumeQuota",
      +        "placement",
      +        "exec",
      +        "logs",
      +        "metrics",
      +        "scopedTokens",
      +        "dedicatedCpu",
      +        "horizontalScaling",
      +        "envChangeRestarts"
      +      ],
      +      "type": "string"
      +    },
      +    "NamespaceName_depth15": {
      +      "description": "Project namespace name, 2–32 lowercase letters, digits or hyphens; starts with a letter and ends with a letter or digit. The existing default namespace is reserved.",
      +      "maxLength": 32,
      +      "minLength": 2,
      +      "pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$",
      +      "type": "string"
      +    },
      +    "RelayStatus_depth15": {
      +      "additionalProperties": false,
      +      "description": "Relay health; the default namespace uses direct networking.",
      +      "properties": {
      +        "certNotAfter": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "connected": {
      +          "type": "boolean"
      +        },
      +        "connectedSince": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "desiredVersion": {
      +          "type": "string"
      +        },
      +        "hostname": {
      +          "type": "string"
      +        },
      +        "lastError": {
      +          "type": "string"
      +        },
      +        "lastSeenAt": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "phase": {
      +          "enum": [
      +            "NotRequired",
      +            "Pending",
      +            "Deploying",
      +            "Ready",
      +            "Error"
      +          ],
      +          "type": "string"
      +        },
      +        "reconnects": {
      +          "format": "int64",
      +          "minimum": 0,
      +          "type": "integer"
      +        },
      +        "serviceId": {
      +          "type": "string"
      +        },
      +        "version": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "phase",
      +        "connected",
      +        "reconnects"
      +      ],
      +      "type": "object"
      +    },
      +    "TokenStatus_depth15": {
      +      "additionalProperties": false,
      +      "description": "Secret-safe token health; never contains a token or fingerprint.",
      +      "properties": {
      +        "lastError": {
      +          "type": "string"
      +        },
      +        "lastValidatedAt": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "rotatedAt": {
      +          "format": "date-time",
      +          "type": "string"
      +        },
      +        "source": {
      +          "enum": [
      +            "env",
      +            "stored"
      +          ],
      +          "type": "string"
      +        },
      +        "valid": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "source",
      +        "valid"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "additionalProperties": false,
      +  "properties": {
      +    "backend": {
      +      "type": "string"
      +    },
      +    "capabilities": {
      +      "items": {
      +        "$ref": "#/$defs/Capability_depth15"
      +      },
      +      "type": "array"
      +    },
      +    "clusterCount": {
      +      "minimum": 0,
      +      "readOnly": true,
      +      "type": "integer"
      +    },
      +    "config": {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "createdAt": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "default": {
      +      "type": "boolean"
      +    },
      +    "description": {
      +      "type": "string"
      +    },
      +    "name": {
      +      "$ref": "#/$defs/NamespaceName_depth15"
      +    },
      +    "operationId": {
      +      "type": "string"
      +    },
      +    "phase": {
      +      "enum": [
      +        "Pending",
      +        "Ready",
      +        "Error",
      +        "Deleting"
      +      ],
      +      "type": "string"
      +    },
      +    "projectId": {
      +      "description": "Backend target ID (Zerops project ID; Dokploy environment or Nomad namespace).",
      +      "type": "string"
      +    },
      +    "projectName": {
      +      "type": "string"
      +    },
      +    "relay": {
      +      "$ref": "#/$defs/RelayStatus_depth15"
      +    },
      +    "token": {
      +      "$ref": "#/$defs/TokenStatus_depth15"
      +    },
      +    "updatedAt": {
      +      "format": "date-time",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "backend",
      +    "capabilities",
      +    "projectId",
      +    "projectName",
      +    "default",
      +    "phase",
      +    "token",
      +    "relay",
      +    "clusterCount",
      +    "createdAt",
      +    "updatedAt"
      +  ],
      +  "type": "object"
      +}
  2. First observedv0.4.3

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral facts: the stored token is never returned, and an unregistered namespace yields a 404. It does not discuss pagination or response shape, but with an output schema present that is not required.

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?

Two sentences, front-loaded with the resource and the returned facets, then the name-resolution rule. The opening clause largely restates the title, which is the only wasted text; everything else earns its place.

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

Completeness5/5

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

For a single-parameter read tool with full annotations and an output schema, the description covers identity, returned fields, secret-handling behavior, resolution path for the argument, and the failure mode. Nothing an agent needs in order to call it correctly is missing.

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% and the pattern/length constraints are already documented in the schema. The description contributes meaning beyond that by tying the parameter to an existing registration and telling the agent how to resolve an unknown name, which the schema alone does not convey.

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?

The description names a specific verb (Read) and resource (namespace project) and enumerates exactly what it surfaces: backend target identity, capabilities, lifecycle phase, cluster count, credential validation status, relay connectivity. It also explicitly distinguishes itself from the name-listing sibling, so an agent can separate it from namespaces_list 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 Guidelines4/5

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

It states the precondition that the namespace must already be registered and points to namespaces_list for resolving names, plus the 404 consequence of an unknown name. It stops short of saying when to prefer api_token_get or health_get for the overlapping token/relay facets, so it is clear but not fully exclusionary.

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

Deploy Server

Other Tools