Skip to main content
Glama

kling_generate_with_assets

Generate text-to-video or image-to-video content using owned or verified platform element and voice IDs, with controls for model, duration, aspect ratio, and audio.

Instructions

Generate with platform element or voice IDs. Specified V2.6 voices cost 1.68 Credits/second. Ownership is verified by the service.

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": {
      "request": "<request>"
    },
    "name": "kling_generate_with_assets"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.1.29
    • addedInput schema / $defs / AssetVideoRequest / properties / camera_control
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/KlingCameraControl"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / $defs / AssetVideoRequest / properties / cfg_scale
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 1,
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Cfg Scale"
      +}
    • addedInput schema / $defs / AssetVideoRequest / properties / image_list
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "$ref": "#/$defs/KlingReferenceImage"
      +      },
      +      "maxItems": 7,
      +      "minItems": 1,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Image List"
      +}
    • addedInput schema / $defs / AssetVideoRequest / properties / negative_prompt
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Negative Prompt"
      +}
    • addedInput schema / $defs / AssetVideoRequest / properties / video_list
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "$ref": "#/$defs/KlingReferenceVideo"
      +      },
      +      "maxItems": 1,
      +      "minItems": 1,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Video List"
      +}
    • addedInput schema / $defs / KlingCameraControl
      Added value: +{
      +  "description": "Structured camera-control request.",
      +  "properties": {
      +    "config": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/KlingCameraControlConfig"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null
      +    },
      +    "type": {
      +      "enum": [
      +        "simple",
      +        "down_back",
      +        "forward_up",
      +        "left_turn_forward",
      +        "right_turn_forward"
      +      ],
      +      "title": "Type",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "type"
      +  ],
      +  "title": "KlingCameraControl",
      +  "type": "object"
      +}
    • addedInput schema / $defs / KlingCameraControlConfig
      Added value: +{
      +  "additionalProperties": {
      +    "maximum": 1,
      +    "minimum": -1,
      +    "type": "number"
      +  },
      +  "description": "Numeric camera controls accepted by Kling's simple preset.",
      +  "properties": {
      +    "horizontal": {
      +      "anyOf": [
      +        {
      +          "maximum": 1,
      +          "minimum": -1,
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Horizontal"
      +    },
      +    "pan": {
      +      "anyOf": [
      +        {
      +          "maximum": 1,
      +          "minimum": -1,
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Pan"
      +    },
      +    "roll": {
      +      "anyOf": [
      +        {
      +          "maximum": 1,
      +          "minimum": -1,
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Roll"
      +    },
      +    "tilt": {
      +      "anyOf": [
      +        {
      +          "maximum": 1,
      +          "minimum": -1,
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Tilt"
      +    },
      +    "vertical": {
      +      "anyOf": [
      +        {
      +          "maximum": 1,
      +          "minimum": -1,
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Vertical"
      +    },
      +    "zoom": {
      +      "anyOf": [
      +        {
      +          "maximum": 1,
      +          "minimum": -1,
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Zoom"
      +    }
      +  },
      +  "title": "KlingCameraControlConfig",
      +  "type": "object"
      +}
    • addedInput schema / $defs / KlingReferenceImage
      Added value: +{
      +  "description": "Omni reference image, optionally used as a first or end frame.",
      +  "properties": {
      +    "image_url": {
      +      "format": "uri",
      +      "maxLength": 2083,
      +      "minLength": 1,
      +      "title": "Image Url",
      +      "type": "string"
      +    },
      +    "type": {
      +      "anyOf": [
      +        {
      +          "enum": [
      +            "first_frame",
      +            "end_frame"
      +          ],
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Type"
      +    }
      +  },
      +  "required": [
      +    "image_url"
      +  ],
      +  "title": "KlingReferenceImage",
      +  "type": "object"
      +}
    • addedInput schema / $defs / KlingReferenceVideo
      Added value: +{
      +  "description": "Omni feature reference or editable base video.",
      +  "properties": {
      +    "keep_original_sound": {
      +      "default": "no",
      +      "enum": [
      +        "yes",
      +        "no"
      +      ],
      +      "title": "Keep Original Sound",
      +      "type": "string"
      +    },
      +    "refer_type": {
      +      "default": "feature",
      +      "enum": [
      +        "feature",
      +        "base"
      +      ],
      +      "title": "Refer Type",
      +      "type": "string"
      +    },
      +    "video_url": {
      +      "format": "uri",
      +      "maxLength": 2083,
      +      "minLength": 1,
      +      "title": "Video Url",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "video_url"
      +  ],
      +  "title": "KlingReferenceVideo",
      +  "type": "object"
      +}
  2. Addedv0.1.24

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations at all, the description carries the full disclosure burden, and it delivers only two facts: V2.6 voices cost 1.68 Credits/second and ownership is verified server-side. It says nothing about whether the call is synchronous or creates a pollable task (despite an `async` flag defaulting true), whether credits are charged on failure, or what permissions are needed to use an element ID — major gaps for a costly generation tool.

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?

Three short sentences, front-loaded with the capability and followed by cost and verification notes. No filler, but the terseness is borderline under-specification given the size of the nested request schema.

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

Completeness2/5

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

The tool wraps a large nested request object with 18+ options, has no annotations, and the description covers only the asset IDs and one pricing rule. Critical operational details — async/task-polling behavior, model compatibility with element/voice assets, and routing versus sibling generation tools — are absent, so the definition is not complete enough for confident invocation.

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 reported as 0% for the top-level `request` object, though nested $defs do carry some field notes. The description adds real meaning for two fields — element/voice IDs must be platform IDs and are ownership-verified — plus pricing tied to the voice choice. It says nothing about the other ~18 nested options (mode, model, action, duration, generate_audio, camera_control), so it only partially compensates for the coverage gap.

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

Purpose3/5

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

"Generate with platform element or voice IDs" names a verb and hints at the distinguishing capability (element/voice references), which separates it from siblings like kling_generate_video or kling_generate_video_from_image. However, it never states the output artifact (a video) or the resource being generated, so an agent must infer the medium from sibling names.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance and no reference to any of the 14 sibling tools. An agent can infer this is the variant for element/voice assets, but nothing says when to prefer it over kling_generate_video or what prerequisites (owned IDs) must exist first, beyond a passing note that ownership is verified.

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