Skip to main content
Glama

Create an Identity

create_identity

Create a new identity in a GVC. Provider blocks can provision real resources in the connected cloud account, including AWS IAM roles, GCP service accounts, and Azure managed identities. Optionally seed networkResources (agent-based) and nativeNetworkResources (PrivateLink / PSC). Identities are assigned to workloads via spec.identityLink.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
awsNoAWS cloud-identity block. Binds the identity to an AWS cloud account so workloads can assume the role.
gcpNoGCP cloud-identity block. Binds the identity to a GCP service account / bindings on cloud resources.
gvcYesGVC slug. If the user named none, list_resources (kind "gvc") and let them choose.
ngsNoNGS cloud-identity block. Binds the identity to a NATS account for pub/sub permissions. Shape: {cloudAccountLink, pub: {allow: [], deny: []}, sub: {allow: [], deny: []}, resp: {max, ttl}, subs, data, payload}; -1 means no limit.
orgNoOrganization slug.
nameYesResource name. Immutable: renaming is delete and recreate.
tagsNoOptional tags for the identity.
azureNoAzure cloud-identity block. Binds the identity to an Azure managed identity with role assignments.
descriptionNoIdentity description.
spicedbAccessNoGrant access to SpiceDB clusters (max 5).
memcacheAccessNoGrant access to memcache clusters (max 5).
networkResourcesNoAgent-based network resources (cloud wormhole). Max 50 (nativeNetworkResources has its own separate limit); names/FQDNs share one namespace across both arrays. Shape: [{name, agentLink, IPs: [ipv4] or FQDN, resolverIP, ports: []}].
nativeNetworkResourcesNoOptional cloud-native network resources (AWS PrivateLink, GCP PSC). Each item requires name, ports, and exactly one provider block. Max 50 (networkResources has its own separate limit); names/FQDNs share one namespace across both arrays. Shape: [{name, FQDN, ports: [], and exactly one of awsPrivateLink {endpointServiceName} or gcpServiceConnect {targetService: projects/PROJECT/regions/REGION/serviceAttachments/NAME}}].

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
dataNoThe full result. Read this, not only the summary.
detailsNo
summaryYes
nextStepsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed69 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / aws / additionalProperties
      Removed value: -false
    • removedInput schema / properties / aws / properties / cloudAccountLink / minLength
      Removed value: -1
    • removedInput schema / properties / aws / properties / policyRefs / items / pattern
      Removed value: -"^(aws::)?([a-zA-Z0-9/+=,.@_-])+$"
    • removedInput schema / properties / aws / properties / roleName / maxLength
      Removed value: -64
    • removedInput schema / properties / aws / properties / roleName / pattern
      Removed value: -"^([a-zA-Z0-9/+=,.@_-])+$"
    • removedInput schema / properties / aws / properties / trustPolicy / additionalProperties
      Removed value: -false
    • removedInput schema / properties / aws / properties / trustPolicy / properties / Statement / items / additionalProperties
      Removed value: -{}
    • removedInput schema / properties / aws / properties / trustPolicy / properties / Version / minLength
      Removed value: -1
    • removedInput schema / properties / azure / additionalProperties
      Removed value: -false
    • removedInput schema / properties / azure / properties / cloudAccountLink / minLength
      Removed value: -1
    • removedInput schema / properties / azure / properties / roleAssignments / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / azure / properties / roleAssignments / items / properties / roles / items / minLength
      Removed value: -1
    • removedInput schema / properties / azure / properties / roleAssignments / items / properties / roles / minItems
      Removed value: -1
    • removedInput schema / properties / azure / properties / roleAssignments / items / properties / scope / minLength
      Removed value: -1
    • removedInput schema / properties / description / maxLength
      Removed value: -250
    • removedInput schema / properties / gcp / additionalProperties
      Removed value: -false
    • removedInput schema / properties / gcp / properties / bindings / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / gcp / properties / bindings / items / properties / resource / minLength
      Removed value: -1
    • removedInput schema / properties / gcp / properties / bindings / items / properties / roles / items / pattern
      Removed value: -"^roles\\/([a-zA-Z0-9])+(\\.([a-zA-Z0-9])+)?$"
    • removedInput schema / properties / gcp / properties / bindings / items / properties / roles / minItems
      Removed value: -1
    • removedInput schema / properties / gcp / properties / cloudAccountLink / minLength
      Removed value: -1
    • removedInput schema / properties / gcp / properties / scopes / items / minLength
      Removed value: -1
    • removedInput schema / properties / gcp / properties / serviceAccount / pattern
      Removed value: -"^.+@.+\\.gserviceaccount\\.com$"
    • changedInput schema / properties / gvc / description
      Previous value: -"GVC slug (lowercase kebab-case). Use the GVC the user named; otherwise discover with list_resources (kind=\"gvc\") and let them choose — never guess (a wrong GVC targets the wrong environment)."New value: +"GVC slug. If the user named none, list_resources (kind \"gvc\") and let them choose."
    • removedInput schema / properties / gvc / maxLength
      Removed value: -63
    • removedInput schema / properties / gvc / minLength
      Removed value: -1
    • removedInput schema / properties / gvc / pattern
      Removed value: -"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$"
    • removedInput schema / properties / memcacheAccess / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / memcacheAccess / items / properties / clusterLink / minLength
      Removed value: -1
    • removedInput schema / properties / memcacheAccess / maxItems
      Removed value: -5
    • changedInput schema / properties / name / description
      Previous value: -"Resource name (lowercase kebab-case, starts with a letter, 2-64 chars). Names are IMMUTABLE — renaming = delete + recreate (loses URL, DNS, policy links)."New value: +"Resource name. Immutable: renaming is delete and recreate."
    • removedInput schema / properties / name / maxLength
      Removed value: -64
    • removedInput schema / properties / name / minLength
      Removed value: -2
    • removedInput schema / properties / name / pattern
      Removed value: -"^[a-z]([-a-z0-9])*[a-z0-9]$"
    • changedInput schema / properties / nativeNetworkResources / description
      Previous value: -"Optional cloud-native network resources (AWS PrivateLink, GCP PSC). Each item requires name, ports, and exactly one provider block. Max 50 (networkResources has its own separate limit); names/FQDNs share one namespace across both arrays."New value: +"Optional cloud-native network resources (AWS PrivateLink, GCP PSC). Each item requires name, ports, and exactly one provider block. Max 50 (networkResources has its own separate limit); names/FQDNs share one namespace across both arrays. Shape: [{name, FQDN, ports: [], and exactly one of awsPrivateLink {endpointServiceName} or gcpServiceConnect {targetService: projects/PROJECT/regions/REGION/serviceAttachments/NAME}}]."
    • removedInput schema / properties / nativeNetworkResources / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / nativeNetworkResources / items / description
      Removed value: -"Cloud-native network resource. Required: name, ports, and exactly one provider block: awsPrivateLink or gcpServiceConnect. FQDN is optional and should be set when TLS clients must validate the target certificate."
    • removedInput schema / properties / nativeNetworkResources / items / properties
      Removed value: -{
      -  "FQDN": {
      -    "description": "Optional FQDN override. If the target serves TLS, connect via this FQDN — the `name` hostname fails certificate validation.",
      -    "pattern": "^(?=.{1,253}$)([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]([a-z0-9-]{0,61}[a-z0-9])?$",
      -    "type": "string"
      -  },
      -  "awsPrivateLink": {
      -    "additionalProperties": false,
      -    "description": "AWS PrivateLink endpoint service. Mutually exclusive with gcpServiceConnect.",
      -    "properties": {
      -      "endpointServiceName": {
      -        "description": "Endpoint service name, e.g. com.amazonaws.vpce.<region>.vpce-svc-<id> (the platform enforces no format).",
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "endpointServiceName"
      -    ],
      -    "type": "object"
      -  },
      -  "gcpServiceConnect": {
      -    "additionalProperties": false,
      -    "description": "GCP Private Service Connect target (projects/PROJECT/regions/REGION/serviceAttachments/NAME). Mutually exclusive with awsPrivateLink. For Cloud SQL the instance must allow `cpln-prod01` as a PSC consumer project — PSC cannot be enabled from the GCP console (use gcloud or the API).",
      -    "properties": {
      -      "targetService": {
      -        "pattern": "^\\/?projects\\/(.+)\\/regions\\/(.+)\\/serviceAttachments\\/(.+)\\/?$",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "targetService"
      -    ],
      -    "type": "object"
      -  },
      -  "name": {
      -    "description": "Required hostname workloads will dial for this native network resource; use a lowercase slug or domain.",
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  "ports": {
      -    "description": "Required TCP ports exposed by the PrivateLink or PSC target. Example: [5432].",
      -    "items": {
      -      "maximum": 65535,
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "maxItems": 10,
      -    "minItems": 1,
      -    "type": "array"
      -  }
      -}
    • removedInput schema / properties / nativeNetworkResources / items / required
      Removed value: -[
      -  "name",
      -  "ports"
      -]
    • removedInput schema / properties / nativeNetworkResources / maxItems
      Removed value: -50
    • changedInput schema / properties / networkResources / description
      Previous value: -"Agent-based network resources (cloud wormhole). Max 50 (nativeNetworkResources has its own separate limit); names/FQDNs share one namespace across both arrays."New value: +"Agent-based network resources (cloud wormhole). Max 50 (nativeNetworkResources has its own separate limit); names/FQDNs share one namespace across both arrays. Shape: [{name, agentLink, IPs: [ipv4] or FQDN, resolverIP, ports: []}]."
    • removedInput schema / properties / networkResources / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / networkResources / items / properties
      Removed value: -{
      -  "FQDN": {
      -    "description": "Fully qualified domain name. Mutually exclusive with IPs — bare IPs belong in IPs[]. If the target serves TLS, connect via this FQDN — the `name` hostname fails certificate validation.",
      -    "pattern": "^(?=.{1,253}$)([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]([a-z0-9-]{0,61}[a-z0-9])?$",
      -    "type": "string"
      -  },
      -  "IPs": {
      -    "description": "1-5 IPv4 addresses. Mutually exclusive with FQDN.",
      -    "items": {
      -      "pattern": "^(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d)$",
      -      "type": "string"
      -    },
      -    "maxItems": 5,
      -    "minItems": 1,
      -    "type": "array"
      -  },
      -  "agentLink": {
      -    "description": "Agent that serves this resource (//agent/NAME or /org/ORG/agent/NAME). Optional per the platform schema.",
      -    "pattern": "^(\\/\\/agent\\/[a-z0-9-]+|\\/org\\/[a-z0-9-]+\\/agent\\/[a-z0-9-]+)$",
      -    "type": "string"
      -  },
      -  "name": {
      -    "description": "Unique resource name — lowercase slug or domain (becomes the hostname workloads dial).",
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  "ports": {
      -    "description": "Required list of 1-10 TCP ports, each 0-65535. Duplicates are removed and the list is sorted.",
      -    "items": {
      -      "maximum": 65535,
      -      "minimum": 0,
      -      "type": "integer"
      -    },
      -    "maxItems": 10,
      -    "minItems": 1,
      -    "type": "array"
      -  },
      -  "resolverIP": {
      -    "description": "Optional custom DNS resolver IPv4.",
      -    "pattern": "^(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d)$",
      -    "type": "string"
      -  }
      -}
    • removedInput schema / properties / networkResources / items / required
      Removed value: -[
      -  "name",
      -  "ports"
      -]
    • removedInput schema / properties / networkResources / maxItems
      Removed value: -50
    • removedInput schema / properties / ngs / additionalProperties
      Removed value: -false
    • changedInput schema / properties / ngs / description
      Previous value: -"NGS cloud-identity block. Binds the identity to a NATS account for pub/sub permissions."New value: +"NGS cloud-identity block. Binds the identity to a NATS account for pub/sub permissions. Shape: {cloudAccountLink, pub: {allow: [], deny: []}, sub: {allow: [], deny: []}, resp: {max, ttl}, subs, data, payload}; -1 means no limit."
    • removedInput schema / properties / ngs / properties
      Removed value: -{
      -  "cloudAccountLink": {
      -    "description": "Link to the NGS (nats-account) cloud account.",
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  "data": {
      -    "description": "Maximum data quota. -1 means no limit.",
      -    "minimum": -1,
      -    "type": "integer"
      -  },
      -  "payload": {
      -    "description": "Maximum payload size. -1 means no limit.",
      -    "minimum": -1,
      -    "type": "integer"
      -  },
      -  "pub": {
      -    "additionalProperties": false,
      -    "description": "Publish permissions.",
      -    "properties": {
      -      "allow": {
      -        "description": "NATS subjects this identity may access (e.g. \"orders.>\", \"events.*.created\").",
      -        "items": {
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "deny": {
      -        "description": "NATS subjects explicitly denied to this identity.",
      -        "items": {
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "resp": {
      -    "additionalProperties": false,
      -    "description": "Response constraints.",
      -    "properties": {
      -      "max": {
      -        "description": "Maximum responses per request. -1 means no limit. The platform defaults this to 1 when resp is set.",
      -        "minimum": -1,
      -        "type": "integer"
      -      },
      -      "ttl": {
      -        "description": "Response TTL (e.g., \"5s\"). Format: #ms | #s | #m | #h.",
      -        "pattern": "^[0-9]+(ms|s|m|h)$",
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "sub": {
      -    "additionalProperties": false,
      -    "description": "Subscribe permissions.",
      -    "properties": {
      -      "allow": {
      -        "description": "NATS subjects this identity may access (e.g. \"orders.>\", \"events.*.created\").",
      -        "items": {
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "type": "array"
      -      },
      -      "deny": {
      -        "description": "NATS subjects explicitly denied to this identity.",
      -        "items": {
      -          "minLength": 1,
      -          "type": "string"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "subs": {
      -    "description": "Maximum simultaneous subscriptions. -1 means no limit.",
      -    "minimum": -1,
      -    "type": "integer"
      -  }
      -}
    • removedInput schema / properties / ngs / required
      Removed value: -[
      -  "cloudAccountLink"
      -]
    • changedInput schema / properties / org / description
      Previous value: -"Organization slug (lowercase kebab-case). NEVER guess — if the user has not named one, ask. On org-not-found, stop and ask; do not retry variants."New value: +"Organization slug."
    • removedInput schema / properties / org / maxLength
      Removed value: -63
    • removedInput schema / properties / org / minLength
      Removed value: -1
    • removedInput schema / properties / org / pattern
      Removed value: -"^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$"
    • removedInput schema / properties / spicedbAccess / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / spicedbAccess / items / properties / clusterLink / minLength
      Removed value: -1
    • removedInput schema / properties / spicedbAccess / maxItems
      Removed value: -5
    • removedInput schema / properties / tags / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / tags / items / properties / key / minLength
      Removed value: -1
    • removedInput schema / properties / tags / maxItems
      Removed value: -50
    • changedInput schema / required
      Previous value: -[
      -  "org",
      -  "gvc",
      -  "name"
      -]New value: +[
      +  "gvc",
      +  "name"
      +]
    • removedOutput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedOutput schema / additionalProperties
      Removed value: -false
    • changedOutput schema / properties / data / description
      Previous value: -"The full machine-readable result — list rows, the resource object, query results. Read THIS, not just the summary."New value: +"The full result. Read this, not only the summary."
    • addedOutput schema / properties / details
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / nextSteps / description
      Removed value: -"Recommended follow-up actions for this task, in order."
    • removedOutput schema / properties / ok / description
      Removed value: -"Whether the call succeeded."
    • removedOutput schema / properties / summary / description
      Removed value: -"One-line summary of the result."
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true). The description adds material context beyond them: provider blocks provision real resources in the connected cloud account (IAM roles, service accounts, managed identities), which is a notable external side effect an agent should anticipate. It stops short of stating idempotency or permission requirements.

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?

The purpose is front-loaded in the first sentence, followed by three dense but informative sentences. Given the 13-parameter, multi-provider surface, each sentence earns its place, though the final sentence on assignment feels slightly detached from 'create'.

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

Completeness3/5

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

An output schema exists, so return values need not be explained, and the schema richly documents nested provider blocks. The description still omits preconditions (cloud account linkage, required permissions), create-vs-update routing, and any limits behavior for the access arrays, leaving gaps for a high-complexity mutation tool.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema carries the parameter burden and 3 is the baseline. The description adds a useful distinction between networkResources (agent-based) and nativeNetworkResources (PrivateLink/PSC) and explains the identityLink assignment mechanism, but adds no syntax or default details beyond the schema.

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

Purpose4/5

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

The first sentence names a specific verb and resource ('Create a new identity in a GVC'), and the following sentences clarify the tool's scope: it provisions real cloud resources across AWS/GCP/Azure and optionally seeds network resources. It does not distinguish itself from the sibling update_identity, so an agent must infer create-vs-modify from the name alone.

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 the creation context and the note that identities are assigned to workloads via spec.identityLink, which hints at the broader workflow. However, there is no explicit when-to-use vs when-not, no mention of preconditions (e.g., a cloud account must already exist), and no routing to the sibling update_identity for modifying existing identities.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.