Skip to main content
Glama

Create an Identity

create_identity

Create a new identity in a GVC. Provider blocks (aws, gcp, azure, ngs) need a cloud account that already exists and can provision real resources in it, 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. Giving one workload AWS, GCP, or Azure access: grant_cloud_access creates and links the identity itself. Changing an existing identity: update_identity.

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": {
      "gvc": "<gvc>",
      "name": "<name>"
    },
    "name": "create_identity"
  }
}

Input 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 name.
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

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. 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."
  4. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare non-read-only, open-world, non-destructive, but the description adds material behavior beyond them: creating these identities provisions real cloud resources (AWS IAM roles, GCP service accounts, Azure managed identities) and the identity is later attached to workloads via spec.identityLink. It doesn't cover required permissions or what happens on partial provider-block failure, keeping it short of a 5.

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 action, then prerequisites, then optional arrays, then routing to siblings — a sound order. The cloud-account sentence is somewhat long and the provisioning examples slightly overlap with the schema descriptions, but little is wasted.

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 13-parameter, deeply nested creation tool with an output schema and full schema coverage, the description supplies the prerequisites and sibling routing an agent needs. Missing are authorization/quota prerequisites and conflict behavior for name collisions, which would complete it.

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 the baseline is 3, but the description adds real meaning: the provider blocks require an existing cloud account link, networkResources are agent-based (cloud wormhole) while nativeNetworkResources are PrivateLink/PSC, and both are optional seeds. That clarifies intent of the two easily-confused arrays beyond their schema text.

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 ('Create a new identity in a GVC') and immediately scopes the provider blocks (aws, gcp, azure, ngs) and their effect (real IAM roles, service accounts, managed identities). It is clearly distinguishable from update_identity and grant_cloud_access, both of which it names.

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

Usage Guidelines5/5

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

Explicitly routes the agent: use grant_cloud_access when the goal is giving a single workload cloud access, and update_identity when modifying an existing identity. It also states the prerequisite that a cloud account must already exist for provider blocks, which is the main foot-gun for this tool.

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.