ai_knowledge_completion
Generate text completions directly from LLMs without RAG. Supports chat, OpenAI-compatible endpoints, embeddings, and model listing.
Instructions
Legacy AI Knowledge API: direct LLM completion without RAG. For new direct model calls, use LLM Gateway v1/chat/completions or v1/embeddings.
Methods:
chat: Simple completion using project's configured prompt/model
openai: OpenAI-compatible chat completions endpoint
embeddings: Generate embeddings for text
models: List available models configured in the project
IMPORTANT: Before changing a model in a legacy AI Knowledge project, always call this tool with method='models' first to retrieve the list of available models and verify the model name exists.
Requires a legacy AI Knowledge project API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Text input for embeddings | |
| model | No | Model name to use | |
| apiKey | Yes | Legacy AI Knowledge project API key | |
| method | Yes | Completion method to use | |
| prompt | No | User prompt (for chat method) | |
| stream | No | Enable streaming (not recommended for MCP) | |
| messages | No | Messages array (for openai method) | |
| projectId | No | Legacy AI Knowledge project ID | |
| dimensions | No | Embedding dimensions | |
| max_tokens | No | Maximum tokens to generate | |
| environment | No | Optional environment name (from PRISME_ENVIRONMENTS) to use specific API URL | |
| temperature | No | Temperature for generation (0-2) |