dashscope
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DASHSCOPE_API_KEY | Yes | DashScope (阿里云百炼) API key, read from the server's environment. Get a key at the Bailian console (API-KEY page). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| embed_textB | Embed texts into vectors with a DashScope embedding model. For more than a couple of texts, pass output_file to write the vectors to a JSON file instead of returning them inline (they are large). |
| semantic_searchA | Rank documents by meaning-similarity to a query (DashScope embeddings). Embeds the query and all documents in one API call, then ranks by cosine similarity locally. Returns the top_k matches with scores, no vectors. |
| rerank_documentsA | Rerank candidate documents by relevance to a query (DashScope rerank). More accurate than embedding similarity for search-result ordering. Returns each match's original index and relevance_score. |
| generate_imageA | Generate image(s) from a text prompt and wait for the result. Blocks until the task finishes or timeout (seconds) elapses. Returns image URLs valid for 24 hours. If the host tool call may time out, use submit_image_task + get_image_task instead. |
| submit_image_taskA | Submit an image-generation task without waiting; returns task_id. Poll with get_image_task, or cancel with cancel_image_task. |
| get_image_taskB | Fetch one image task's status; includes image_urls once SUCCEEDED. |
| cancel_image_taskC | Cancel a pending/running image task. |
| synthesize_speechB | Synthesize speech from text (DashScope TTS); returns a temporary audio URL. Single synchronous request. The audio_url expires (see expires_at); download it to keep the audio. |
| transcribe_audioA | Transcribe audio file(s) to text (DashScope ASR); async submit + wait. file_urls must be publicly reachable audio URLs. Returns per-file results carrying transcription_url (the transcript JSON); fetch those for the text. |
| generate_videoA | Generate a video from a text prompt (optional first-frame image_url). Blocks until the task finishes or timeout (seconds). Returns video_url. Video rendering is slow; if the host may time out, use submit_video_task
|
| submit_video_taskB | Submit a video-generation task without waiting; returns task_id. Poll with get_video_task, or cancel with cancel_video_task. |
| get_video_taskA | Fetch one video task's status; includes video_url once SUCCEEDED. |
| cancel_video_taskC | Cancel a pending/running video task. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 13 tools
Most tools map to a distinct model capability (embed, rerank, image, video, TTS, ASR), and the image/video lifecycle tools are cleanly separated. The only real overlap is between semantic_search and rerank_documents (both order documents by query relevance), but the descriptions explicitly contrast them (embedding similarity vs. dedicated rerank).
Every name is snake_case verb_noun: embed_text, generate_image, submit_image_task, get_image_task, cancel_image_task, generate_video, submit_video_task, cancel_video_task, synthesize_speech, transcribe_audio. The async lifecycle trio (generate/submit/get/cancel) follows an identical pattern across image and video, making the set highly predictable.
13 tools cover five modalities with well-earned extras for async image/video control. No filler: each tool corresponds to a genuine operation (sync variant, async submit, poll, cancel, or core inference).
Image and video generation have full sync/async/poll/cancel lifecycles, and embeddings, rerank, TTS, and ASR are present. Gaps are minor: there is no list_tasks to enumerate pending image/video tasks, no cancellation path for TTS/ASR, and no text-generation (LLM completion) tool despite that being a core DashScope capability.