# Udf

> Use when listing, showing, searching, creating, testing, or removing MaxCompute UDFs and UDF resources.

- Skill: `aliyun/udf` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add aliyun/udf`
- Raw SKILL.md: https://api.skillmd.com/api/skills/aliyun/udf/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: aliyun (https://skillmd.com/u/aliyun)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/aliyun/udf

---


# mcs UDF workflow

Use this workflow for MaxCompute UDF lifecycle work.

## Commands

```bash
mcs udf list
mcs udf search KEYWORD
mcs udf show NAME
mcs udf create NAME --inline-python script.py
mcs udf test NAME --args '1, "abc"'
mcs udf remove NAME
mcs udf resource list
mcs udf resource show NAME
mcs udf resource remove NAME
```

`mcs udf test --args` accepts SQL literals only: numeric values, `NULL`,
`TRUE`/`FALSE`, and quoted strings. Do not pass identifiers, function calls,
expressions, or semicolon-separated fragments as test arguments.

For ordinary SQL querying, do not manage UDFs unless the question requires
a function that is absent or broken.

See `references/udf.md`.

