run_agent_with_external_model
Run one of six manuscript-writing agents using an external OpenAI-compatible model. Specify agent, journal, model, and base URL; set API key via environment variable.
Instructions
Run one of the six manuscript-writing agents against an external OpenAI-compatible model, instead of the model your MCP client already uses.
The API key is never passed as an argument here — set it once as the AQUA_API_KEY environment variable in your MCP client's server config.
agent_name: one of "literature", "drafting", "results", "abstract", "copyedit", "integrity". journal: a key from list_supported_journals, for agents whose rules are journal-specific (abstract, drafting, integrity). Leave blank and the agent will ask the user which journal applies instead of guessing. model: overrides the AQUA_MODEL environment variable for this call. base_url: overrides the AQUA_BASE_URL environment variable for this call (defaults to https://api.openai.com/v1; point this at any OpenAI-compatible endpoint, e.g. a local Ollama/LM Studio server).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| journal | No | ||
| base_url | No | ||
| agent_name | Yes | ||
| task_input | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |