Alibaba Cloud DashScope — Qwen

v0.1.4
io.github.nirholas/alibaba-cloud Checked 3 hours ago Published 1 month ago

Alibaba 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.

ParameterTypeDescription
messages *arrayConversation so far, oldest first.
max_tokensintegerMaximum tokens to generate.
modelstringOverride the model id. Options: qwen-max, qwen-plus (default), qwen-turbo, qwen-long, qwen-max-latest.
temperaturenumberSampling temperature. 0 is greedy/deterministic.
top_pnumberNucleus 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).

ParameterTypeDescription
inputs *One string or an array of strings to embed.
dimensionsintegerOutput vector dimensions. text-embedding-v3 supports 64 to 2048 (default 1024).
modelstringEmbedding 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.