Skip to main content
Glama
ncloud-mcp-server

ncloud-mcp-server

by sjk4425

ncloud_functions_create_action

Create or update a Cloud Functions action with idempotent PUT, choosing type, runtime, code, memory, timeout, and VPC attachment; preview requests with dryRun.

Instructions

Create or update a Cloud Functions action (PUT, API v2.1 (/ncf/api/v2) — idempotent; the same call updates an existing action). type selects the action kind and CANNOT be changed after creation: basic (default) | web | sequence | sequence-web. basic/web: exec_kind, exec_code and exec_main are required; limits_timeout/limits_memory default to 60000 ms / 128 MB; on platform=vpc the action MUST be attached to a VPC + Subnet (vpc_no, subnet_no). sequence/sequence-web: pass exec_components as ['{packageName}/{actionName}', ...] (use '-' for unpackaged actions); exec_kind is forced to 'sequence'. Runtimes (exec_kind): nodejs:22, python:3.13, java, java:21, swift:3.1.1, php:8.5, php:7.3, go:1.19, dotnet:2.2, custom image (php:8.5 added 2026-11-24 in the Public-zone guide). Scheduled end of support: php:7.3 on 2027-02-23 — no new actions from that date, prefer php:8.5. Deprecated since 2025-09-18 and refused for NEW actions: nodejs:6, nodejs:8, nodejs:12, nodejs:16, python:3.6, python:3.7, python:3.11, php:7.1, go:1.11. java/dotnet accept only base64 binaries (.jar / .zip) with exec_binary=true. 'custom image' requires exec_imageUri ('{registryName}/{imageName}:{tag}'). Use dryRun=true to see the exact request without calling the API.

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": {
      "actionName": "<actionName>"
    },
    "name": "ncloud_functions_create_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoAction type (query parameter). Cannot be changed once created.basic
dryRunNoPreview the request without calling the API
vpc_noNoVPC number to attach (REQUIRED for basic/web on platform=vpc; see ncloud_list_vpcs)
platformNoPlatform (default: vpc). Singapore/Japan regions support vpc only.vpc
raw_httpNoweb types only: pass the raw HTTP request to the action (sent as 'raw-http')
exec_codeNoSource code (exec_binary=false) or base64-encoded file (exec_binary=true). Required for basic/web unless exec_kind is 'custom image'.
exec_kindNoRuntime, e.g. 'python:3.13', 'nodejs:22', 'java:21', 'custom image'. Ignored for sequence types (forced to 'sequence'). Supported: nodejs:22, python:3.13, java, java:21, swift:3.1.1, php:8.5, php:7.3, go:1.19, dotnet:2.2, custom image
exec_mainNoEntry function name, e.g. 'main'. Required for basic/web.
subnet_noNoSubnet number to attach (REQUIRED for basic/web on platform=vpc; see ncloud_list_subnets)
actionNameYesAction name: 1-50 chars of letters, digits, '-' and '_'; must not start with '-'; unique across packages/actions/triggers
parametersNoDefault parameters as a {key: value} JSON object (basic/web only). Precedence: runtime params > trigger params > action params > package params.
descriptionNoDescription (0-3000 bytes)
exec_binaryNotrue if exec_code is a base64-encoded file (required for java/dotnet: .jar / .zip)
packageNameNoPackage name ('-' = unpackaged action)-
exec_imageUriNoCustom Image runtime only: '{registryName}/{imageName}:{tag}' (tag defaults to latest)
limits_memoryNoMemory in MB: 128 | 256 | 512 | 1024 (default 128). basic/web only.
custom_optionsNoweb types only: let the action set HTTP response headers (sent as 'custom-options')
limits_timeoutNoMax execution time in ms, 500-300000 (default 60000). basic/web only.
exec_componentsNosequence/sequence-web only: actions to run in order, each '{packageName}/{actionName}'
allowDeprecatedRuntimeNoSend a deprecated exec_kind anyway (the API is documented to refuse new actions on them)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.1.0
    • changedInput schema / properties / exec_kind / description
      Previous value: -"Runtime, e.g. 'python:3.13', 'nodejs:22', 'java:21', 'custom image'. Ignored for sequence types (forced to 'sequence'). Supported: nodejs:22, python:3.13, java, java:21, swift:3.1.1, php:7.3, go:1.19, dotnet:2.2, custom image"New value: +"Runtime, e.g. 'python:3.13', 'nodejs:22', 'java:21', 'custom image'. Ignored for sequence types (forced to 'sequence'). Supported: nodejs:22, python:3.13, java, java:21, swift:3.1.1, php:8.5, php:7.3, go:1.19, dotnet:2.2, custom image"
  2. Changed9 schema fields changedv3.0.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / limits_memory / anyOf
      Added value: +[
      +  {
      +    "const": 128,
      +    "type": "number"
      +  },
      +  {
      +    "const": 256,
      +    "type": "number"
      +  },
      +  {
      +    "const": 512,
      +    "type": "number"
      +  },
      +  {
      +    "const": 1024,
      +    "type": "number"
      +  }
      +]
    • removedInput schema / properties / limits_memory / enum
      Removed value: -[
      -  128,
      -  256,
      -  512,
      -  1024
      -]
    • removedInput schema / properties / limits_memory / type
      Removed value: -"number"
    • addedInput schema / properties / parameters / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / subnet_no / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / subnet_no / minimum
      Added value: +-9007199254740991
    • addedInput schema / properties / vpc_no / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / vpc_no / minimum
      Added value: +-9007199254740991
  3. Changed34 schema fields changedv1.15.0
    • changedInput schema / properties / actionName / description
      Previous value: -"Name of the action to create or update"New value: +"Action name: 1-50 chars of letters, digits, '-' and '_'; must not start with '-'; unique across packages/actions/triggers"
    • addedInput schema / properties / actionName / maxLength
      Added value: +50
    • addedInput schema / properties / actionName / minLength
      Added value: +1
    • addedInput schema / properties / allowDeprecatedRuntime
      Added value: +{
      +  "default": false,
      +  "description": "Send a deprecated exec_kind anyway (the API is documented to refuse new actions on them)",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / custom_options / description
      Previous value: -"Enable custom options"New value: +"web types only: let the action set HTTP response headers (sent as 'custom-options')"
    • changedInput schema / properties / description / description
      Previous value: -"Description of the action"New value: +"Description (0-3000 bytes)"
    • addedInput schema / properties / description / maxLength
      Added value: +3000
    • addedInput schema / properties / dryRun
      Added value: +{
      +  "default": false,
      +  "description": "Preview the request without calling the API",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / exec_binary / default
      Added value: +false
    • changedInput schema / properties / exec_binary / description
      Previous value: -"Whether code is base64 encoded"New value: +"true if exec_code is a base64-encoded file (required for java/dotnet: .jar / .zip)"
    • changedInput schema / properties / exec_code / description
      Previous value: -"Source code string (required for basic actions)"New value: +"Source code (exec_binary=false) or base64-encoded file (exec_binary=true). Required for basic/web unless exec_kind is 'custom image'."
    • changedInput schema / properties / exec_components / description
      Previous value: -"Array of '{packageName}/{actionName}' for sequence actions"New value: +"sequence/sequence-web only: actions to run in order, each '{packageName}/{actionName}'"
    • addedInput schema / properties / exec_imageUri
      Added value: +{
      +  "description": "Custom Image runtime only: '{registryName}/{imageName}:{tag}' (tag defaults to latest)",
      +  "type": "string"
      +}
    • changedInput schema / properties / exec_kind / description
      Previous value: -"Runtime string (e.g. 'nodejs:16', 'python:3.9', 'java:11', 'dotnet:6.0', or 'sequence')"New value: +"Runtime, e.g. 'python:3.13', 'nodejs:22', 'java:21', 'custom image'. Ignored for sequence types (forced to 'sequence'). Supported: nodejs:22, python:3.13, java, java:21, swift:3.1.1, php:7.3, go:1.19, dotnet:2.2, custom image"
    • changedInput schema / properties / exec_main / description
      Previous value: -"Entry function name (required for basic actions)"New value: +"Entry function name, e.g. 'main'. Required for basic/web."
    • addedInput schema / properties / limits_memory / default
      Added value: +128
    • changedInput schema / properties / limits_memory / description
      Previous value: -"Memory in MB (128, 256, 512, or 1024)"New value: +"Memory in MB: 128 | 256 | 512 | 1024 (default 128). basic/web only."
    • addedInput schema / properties / limits_memory / enum
      Added value: +[
      +  128,
      +  256,
      +  512,
      +  1024
      +]
    • addedInput schema / properties / limits_timeout / default
      Added value: +60000
    • changedInput schema / properties / limits_timeout / description
      Previous value: -"Timeout in milliseconds (500~300000)"New value: +"Max execution time in ms, 500-300000 (default 60000). basic/web only."
    • addedInput schema / properties / limits_timeout / maximum
      Added value: +300000
    • addedInput schema / properties / limits_timeout / minimum
      Added value: +500
    • changedInput schema / properties / limits_timeout / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / packageName / description
      Previous value: -"Package name (use '-' for unpackaged actions)"New value: +"Package name ('-' = unpackaged action)"
    • changedInput schema / properties / parameters / description
      Previous value: -"Default parameters as a JSON object"New value: +"Default parameters as a {key: value} JSON object (basic/web only). Precedence: runtime params > trigger params > action params > package params."
    • changedInput schema / properties / platform / description
      Previous value: -"Platform type (default: vpc)"New value: +"Platform (default: vpc). Singapore/Japan regions support vpc only."
    • changedInput schema / properties / raw_http / description
      Previous value: -"Enable raw HTTP handling"New value: +"web types only: pass the raw HTTP request to the action (sent as 'raw-http')"
    • changedInput schema / properties / subnet_no / description
      Previous value: -"Subnet number"New value: +"Subnet number to attach (REQUIRED for basic/web on platform=vpc; see ncloud_list_subnets)"
    • changedInput schema / properties / subnet_no / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / type
      Added value: +{
      +  "default": "basic",
      +  "description": "Action type (query parameter). Cannot be changed once created.",
      +  "enum": [
      +    "basic",
      +    "web",
      +    "sequence",
      +    "sequence-web"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / vpc_no / description
      Previous value: -"VPC number"New value: +"VPC number to attach (REQUIRED for basic/web on platform=vpc; see ncloud_list_vpcs)"
    • changedInput schema / properties / vpc_no / type
      Previous value: -"number"New value: +"integer"
    • removedInput schema / properties / web
      Removed value: -{
      -  "description": "Enable web action",
      -  "type": "boolean"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "actionName",
      -  "exec_kind"
      -]New value: +[
      +  "actionName"
      +]
  4. First observedv1.10.1

TDQS

A4.5/5.0
Behavior5/5

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

With only destructiveHint=false declared, the description carries real behavioral weight and does so: it discloses idempotent PUT semantics, that 'type' is immutable after creation, that exec_kind is forced to 'sequence' for sequence types, that deprecated runtimes are refused for new actions, and that dryRun previews the request without calling the API. This is exactly the kind of consequence-level detail annotations cannot express.

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 core verb, HTTP method and idempotency note are front-loaded, and nearly every clause carries actionable constraint information. It is still a single dense run-on paragraph with heavy semicolon chaining, and parenthetical trivia such as 'php:8.5 added 2026-11-24 in the Public-zone guide' adds little for an agent choosing parameters.

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 20-parameter create/update tool with no output schema, the description covers the hard parts — type-specific required sets, platform/VPC constraints, sequence composition, runtime viability. It does not state what the call returns (action identity/ARN) or how conflicts on an existing action's settings are handled, which would matter for a PUT-replace tool.

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 genuine meaning on top: the '-' convention for unpackaged actions in both packageName and exec_components, base64/. jar/.zip requirements for java/dotnet, exec_imageUri format, and the runtime deprecation timeline. A few parameters (raw_http, custom_options, parameters precedence, allowDeprecatedRuntime) are left entirely to the schema.

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 states a specific verb and resource ('Create or update a Cloud Functions action') and immediately clarifies the PUT/idempotent semantics, so an agent knows a repeat call mutates rather than duplicates. It also names the API version and endpoint, which unambiguously positions it against the get/list/delete/invoke siblings.

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?

Usage conditions are spelled out in detail: which types require exec_kind/exec_code/exec_main, when vpc_no/subnet_no become mandatory on platform=vpc, when to prefer exec_components, and when to use dryRun=true as a preview. What is missing is explicit routing to sibling tools (e.g. create_package, link_trigger_action) for related setup tasks.

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