Skip to main content
Glama
ncloud-mcp-server

ncloud-mcp-server

by sjk4425

ncloud_create_role

Create a new IAM role as a policy container; use dryRun to preview. Attach policies and set a role target separately before the role grants access.

Instructions

Create a new IAM role. A role is only a container for policies: creating it grants nothing until policies are attached (POST /api/v1/roles/{roleNo}/policies) and a role target is set (POST /api/v1/roles/{roleNo}/entities/account for Account roles, /entities for Server and Service roles) — those endpoints have no MCP tool yet. Use dryRun=true to preview without creating.

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": {
      "roleName": "<roleName>",
      "roleType": "<roleType>"
    },
    "name": "ncloud_create_role"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoTags as a key-value map, max 20 per resource. Example: {"env":"dev","team":"a"}
dryRunNoIf true, returns a preview without actually creating the role
descContNoDescription of the role (0-300 bytes)
roleNameYesRole name (3-100 chars: Korean/Japanese/English letters, digits, '.', '_', '-'; must start with a letter)
roleTypeYesRole type: Server (VPC server resource, no access key needed), Account (grants the main account's console/portal access to a sub account via role switching), Service (inter-service access)
isMyAccountNo⚠️ Ignored — createRole has no isMyAccount field, so this value is NOT sent. It belongs to the separate 'add Account role target' API (POST /api/v1/roles/{roleNo}/entities/account). Kept only for backward compatibility
sessionExpirationSecNoSession expiration time in seconds: 600, 1800, 3600, or 10800. REQUIRED when roleType is Account

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv3.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / sessionExpirationSec / anyOf
      Added value: +[
      +  {
      +    "const": 600,
      +    "type": "number"
      +  },
      +  {
      +    "const": 1800,
      +    "type": "number"
      +  },
      +  {
      +    "const": 3600,
      +    "type": "number"
      +  },
      +  {
      +    "const": 10800,
      +    "type": "number"
      +  }
      +]
    • removedInput schema / properties / sessionExpirationSec / enum
      Removed value: -[
      -  600,
      -  1800,
      -  3600,
      -  10800
      -]
    • removedInput schema / properties / sessionExpirationSec / type
      Removed value: -"number"
    • addedInput schema / properties / tags / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. Changed8 schema fields changedv1.12.0
    • changedInput schema / properties / descCont / description
      Previous value: -"Description of the role"New value: +"Description of the role (0-300 bytes)"
    • changedInput schema / properties / isMyAccount / description
      Previous value: -"Whether the role applies to the current account"New value: +"⚠️ Ignored — createRole has no isMyAccount field, so this value is NOT sent. It belongs to the separate 'add Account role target' API (POST /api/v1/roles/{roleNo}/entities/account). Kept only for backward compatibility"
    • changedInput schema / properties / roleName / description
      Previous value: -"Role name (3-100 chars, letters/numbers/special chars . _ -, must start with letter)"New value: +"Role name (3-100 chars: Korean/Japanese/English letters, digits, '.', '_', '-'; must start with a letter)"
    • changedInput schema / properties / roleType / description
      Previous value: -"Role type: Server (VPC server), Account (console/portal access), Service (inter-service access)"New value: +"Role type: Server (VPC server resource, no access key needed), Account (grants the main account's console/portal access to a sub account via role switching), Service (inter-service access)"
    • changedInput schema / properties / sessionExpirationSec / description
      Previous value: -"Session expiration time in seconds (600, 1800, 3600, or 10800). Not allowed for Server type."New value: +"Session expiration time in seconds: 600, 1800, 3600, or 10800. REQUIRED when roleType is Account"
    • addedInput schema / properties / sessionExpirationSec / enum
      Added value: +[
      +  600,
      +  1800,
      +  3600,
      +  10800
      +]
    • addedInput schema / properties / tags
      Added value: +{
      +  "additionalProperties": {
      +    "type": "string"
      +  },
      +  "description": "Tags as a key-value map, max 20 per resource. Example: {\"env\":\"dev\",\"team\":\"a\"}",
      +  "type": "object"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "roleName",
      -  "roleType",
      -  "isMyAccount"
      -]New value: +[
      +  "roleName",
      +  "roleType"
      +]
  3. First observedv1.10.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare destructiveHint=false; the description goes well beyond by disclosing that creation grants nothing until two subsequent operations occur and that those operations are not available via MCP — a non-obvious, high-value warning. It also explains the dryRun preview mode. It stops short of stating auth requirements, name-collision behavior, or what the call returns.

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 a dense but informative em-dash clause about the policy/target follow-up, then a short dryRun tip. Every clause carries information, though the middle sentence is long enough that route details are hard to scan.

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?

With 7 parameters and no output schema, the description does the heavy lifting on post-creation workflow and preview mode, which is what an agent most needs. It would be stronger if it stated what identifier the call returns (roleNo) so the agent could chain into the documented endpoints.

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 coverage is 100%, so the schema already documents every parameter, including roleType semantics, sessionExpirationSec constraints, tags limits, and the isMyAccount trap. The description only restates dryRun, adding nothing new about parameters. Baseline 3 applies.

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?

Opens with a specific verb+resource ('Create a new IAM role') and immediately qualifies scope with the key semantic that the role is only a policy container. This distinguishes it from sibling create_* tools and from ncloud_delete_role without needing to open 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?

Gives concrete operational guidance: the role is inert until policies are attached and a target is set, and those follow-up endpoints have no MCP tool yet, so the agent knows this call alone will not produce a working role. Also routes to dryRun=true for a preview. No explicit when-not-use or prerequisites (permissions, name uniqueness) are stated.

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