Alibaba Cloud DashScope — Qwen
v0.1.4Alibaba Cloud DashScope MCP: Qwen chat, embeddings, and model discovery on your own account.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
qwen_chat Qwen Chat
Chat completion with an Alibaba Cloud Qwen model via DashScope. Pass a list of role/content messages and get the assistant reply plus token usage. Defaults to qwen-plus; use qwen-max for highest quality, qwen-turbo for fastest/cheapest, or qwen-long for very large contexts.
| Parameter | Type | Description |
|---|---|---|
messages * | array | Conversation so far, oldest first. |
max_tokens | integer | Maximum tokens to generate. |
model | string | Override the model id. Options: qwen-max, qwen-plus (default), qwen-turbo, qwen-long, qwen-max-latest. |
temperature | number | Sampling temperature. 0 is greedy/deterministic. |
top_p | number | Nucleus sampling probability mass. |
qwen_embed Qwen Text Embeddings
Generate text embeddings using Alibaba Cloud text-embedding models. Returns a float vector per input string. Useful for semantic search, clustering, and RAG retrieval. Defaults to text-embedding-v3 (1024-dim).
| Parameter | Type | Description |
|---|---|---|
inputs * | One string or an array of strings to embed. | |
dimensions | integer | Output vector dimensions. text-embedding-v3 supports 64 to 2048 (default 1024). |
model | string | Embedding model id (default: text-embedding-v3). Alternatives: text-embedding-v2, text-embedding-async-v3. |
qwen_list_models List DashScope Models
List the models available on this DashScope account. Returns model ids, owners, and creation timestamps.