Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPENAI_ORG_IDNoOptional OpenAI organization request header.
OPENAI_API_KEYNoYour own OpenAI API key; takes precedence over Magpie.
OPENAI_BASE_URLNoOpenAI-compatible API base URL; compatible endpoints must use HTTPS except local test addresses.https://api.openai.com/v1
OPENAI_PROJECT_IDNoOptional OpenAI project request header.
AIDADA_IMAGE_MODELNoDefault image model; can be overridden for each request.gpt-image-2.6-sunburst
AIDADA_IMAGE_HTTP_TOKENNoAccess token for HTTP mode; must be at least 16 characters.
AIDADA_IMAGE_OUTPUT_DIRNoDirectory for generated images and task data; defaults to generated/ under the project directory. An absolute path is recommended.generated/
AIDADA_IMAGE_TIMEOUT_MSNoPer-task timeout in milliseconds.1200000
AIDADA_IMAGE_INPUT_ROOTSNoOptional input directory scope, separated by the system PATH separator.
AIDADA_IMAGE_MAGPIE_CONFIGNoOptional path to providers.json; defaults to the current user's Magpie configuration.
AIDADA_IMAGE_MAX_CONCURRENTNoMaximum concurrency per server process.2
AIDADA_IMAGE_MAGPIE_PROVIDERNoEnable Magpie credential reading; the dedicated launcher defaults to openai.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

完整控制 OpenAI Images API。model 可自由指定,aidada_image_models 查询账户模型;先看 aidada_image_capabilities。generate/edit 一次提交后用返回的 job_id 查询结果,禁止因 MCP 等待结束而重复提交。需要预览时 include_preview=true。生图涉及 API 计费;默认不重试。

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
aidada_image_capabilitiesA

查看模型能力、默认值、参数边界、凭据是否已配置和使用流程;不发送生图请求。

aidada_image_generateA

使用指定 model 生成图片、SVG 或 GIF。complexity/quality/size/background 等参数原样发往 OpenAI;可用参数取决于模型。返回 job_id;running 时调用 aidada_image_result。

aidada_image_editA

使用指定 model 编辑/扩图/多图合成。支持最多 16 张参考图、mask、markup、本地文件、HTTPS/data URL、file_id。纯本地走 multipart;混合输入中的本地文件临时上传并自动清理。

aidada_image_resultA

查询已提交任务,不重新生成。可等待最多 20 秒,并读取预览、最终图片、usage、请求 ID、出站参数记录。

aidada_image_cancelA

终止本地正在进行的上游请求并保存已收到图片;不能保证上游停止计算或退款。

aidada_image_jobsB

列出最近的本地任务,便于恢复 job_id。不会重新提交。

aidada_image_uploadA

将本地参考图片持久上传到 OpenAI Files API(purpose=vision),返回可重复编辑使用的 file_id;此工具上传的文件不会自动删除。

aidada_image_modelsA

查询当前 API Key 可见的 OpenAI 图片模型,包括快照;不进行图片生成。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
capabilities公开参数与默认行为

TDQS

A3.7/5.0

Scored across 8 tools

Disambiguation4/5

Each tool maps to a distinct stage of the image lifecycle: discovery (capabilities, models), creation (generate, edit), and job management (jobs, result, cancel, upload). The only mild overlaps are capabilities vs. models (both describe models) and jobs vs. result (both surface job data), but the descriptions explicitly differentiate them (static capability metadata vs. key-visible model list; local job index vs. live job status).

Naming Consistency4/5

All tools share the predictable 'aidada_image_' namespace prefix in snake_case with terse, readable suffixes. The suffix style mixes action verbs (generate, edit, cancel, upload) with resource nouns (capabilities, jobs, result, models), but this split follows a sensible action-vs-query convention rather than being chaotic.

Tool Count5/5

Eight tools is well within the ideal 3-15 range and each one earns its place: two discovery tools, two generation tools, and four job/file management tools. There is no obvious filler or redundant entry.

Completeness4/5

The surface covers the full working loop: inspect capabilities/models, generate or edit, poll results, list jobs, and cancel. The notable gap is file lifecycle management — upload explicitly notes files are not auto-deleted, yet there is no delete/cleanup tool for persistent file_ids or local job history, forcing agents to work around orphaned assets.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues