Skip to main content
Glama

Update an Identity

update_identity
DestructiveIdempotent

Update an existing identity: description and tags (removeTagKeys drops tags), its cloud-identity blocks (aws, gcp, azure, ngs; each replaces the stored block, and removeCloudIdentities detaches the ones it names), networkResources and nativeNetworkResources (each replaces the whole array), and the SpiceDB and memcache access lists. Provider blocks can modify real resources in the connected cloud account, including AWS IAM roles, GCP service accounts, and Azure managed identities. A new identity: create_identity. Giving one workload AWS, GCP, or Azure access: grant_cloud_access.

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": "update_identity"
  }
}

Input Schema

NameRequiredDescriptionDefault
awsNoReplace the AWS cloud-identity block (full object). To switch xor-fields (roleName ↔ policyRefs), just send the new block — it replaces wholesale.
gcpNoReplace the GCP cloud-identity block (full object). To switch xor-fields (serviceAccount ↔ bindings), just send the new block — it replaces wholesale.
gvcYesGVC name.
ngsNoReplace the NGS cloud-identity block (full object; it replaces wholesale). 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.
tagsNoAdd or update tags without replacing the full set. Submit an empty list to clear all tags.
azureNoReplace the Azure cloud-identity block (full object — it replaces wholesale).
descriptionNoNew description for the identity.
removeTagKeysNoTag keys to remove from the resource.
spicedbAccessNoReplace the SpiceDB cluster access list (max 5).
memcacheAccessNoReplace the memcache cluster access list (max 5).
networkResourcesNoReplace the full networkResources array (wholesale). Shape: [{name, agentLink, IPs: [ipv4] or FQDN, resolverIP, ports: []}].
removeCloudIdentitiesNoCloud-identity blocks to clear from the identity (e.g., ["aws"]). Server-side $drop semantics — use this to detach an identity from a cloud account.
nativeNetworkResourcesNoOptional replacement for the full nativeNetworkResources array (wholesale). Each item requires name, ports, and exactly one provider block. 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. Changed70 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 replacement for the full nativeNetworkResources array (wholesale). Each item requires name, ports, and exactly one provider block."New value: +"Optional replacement for the full nativeNetworkResources array (wholesale). Each item requires name, ports, and exactly one provider block. 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: -"Replace the full networkResources array (wholesale)."New value: +"Replace the full networkResources array (wholesale). 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: -"Replace the NGS cloud-identity block (full object — it replaces wholesale)."New value: +"Replace the NGS cloud-identity block (full object; it replaces wholesale). 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 / removeTagKeys / items / minLength
      Removed value: -1
    • 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. Changed1 schema field changed
    • changedInput schema / properties / tags / description
      Previous value: -"Add or update tags without replacing the full set."New value: +"Add or update tags without replacing the full set. Submit an empty list to clear all tags."
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond destructiveHint/openWorldHint by naming the concrete real-world blast radius: provider blocks can modify AWS IAM roles, GCP service accounts, and Azure managed identities in the connected cloud account. It also discloses replace-wholesale vs. incremental semantics per field and clarifies removeCloudIdentities is detach ($drop) rather than deletion.

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 resource and its mutable field groups, and every clause carries information. It is a single dense paragraph with long parenthetical clauses, though, which slightly hurts scanability for a 15-parameter tool.

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?

Given 15 parameters, nested provider blocks, destructive/idempotent annotations, and an output schema, the description covers every mutation group plus the cloud side effects an agent must weigh before calling. Nothing needed to call it correctly is missing, and return values are covered by the output schema.

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; the description earns an extra point by consolidating the replacement contract across all 15 nested parameters in one place ('each replaces the stored block', 'each replaces the whole array'), which is hard to see from scattered schema descriptions. It does not add format or example detail beyond what the schema already states.

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 ('Update an existing identity') and enumerates exactly which fields it mutates: description, tags, cloud-identity blocks, network resources, and SpiceDB/memcache access. It is clearly distinguishable from create_identity and grant_cloud_access, both of which are named.

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: 'A new identity: create_identity' and 'Giving one workload AWS, GCP, or Azure access: grant_cloud_access.' That is a when-to-use plus two named alternatives with their own conditions, which is the top of the scale.

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.