liter-llm
v2.7.8Universal LLM API client MCP server: chat, embeddings and tools across 170+ providers.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
cancel_batch
Cancel an in-progress batch processing job
| Parameter | Type | Description |
|---|---|---|
batch_id * | string | The batch job identifier. |
cancel_response
Cancel an in-progress response (Responses API)
| Parameter | Type | Description |
|---|---|---|
response_id * | string | The response identifier. |
chat
Send a chat completion request to an LLM
| Parameter | Type | Description |
|---|---|---|
messages * | Array of message objects with `role` and `content` fields. | |
model * | string | Model name (e.g. "openai/gpt-4o", "anthropic/claude-sonnet-4-20250514"). |
max_tokens | integer | null | Maximum number of tokens to generate. |
temperature | number | null | Sampling temperature (0.0 to 2.0). |
create_batch
Create a new batch processing job
| Parameter | Type | Description |
|---|---|---|
completion_window * | string | Time window for batch completion (e.g. "24h"). |
endpoint * | string | API endpoint for batch processing (e.g. "/v1/chat/completions"). |
input_file_id * | string | File ID of the JSONL input file. |
create_file
Upload a file to the LLM provider
| Parameter | Type | Description |
|---|---|---|
file_base64 * | string | Base64-encoded file data. |
filename * | string | Filename for the uploaded file. |
purpose * | string | Purpose of the file (e.g. "assistants", "batch", "fine-tune", "vision"). |
create_response
Create a new response (Responses API)
| Parameter | Type | Description |
|---|---|---|
input * | Input content for the response (string or structured input). | |
model * | string | Model name for the response. |
delete_file
Delete an uploaded file
| Parameter | Type | Description |
|---|---|---|
file_id * | string | The file identifier. |
embed
Generate text embeddings for the given input
| Parameter | Type | Description |
|---|---|---|
input * | Input text or array of texts to embed. | |
model * | string | Embedding model name. |
file_content
Retrieve the raw content of an uploaded file
| Parameter | Type | Description |
|---|---|---|
file_id * | string | The file identifier. |
generate_image
Generate images from a text prompt
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Text description of the desired image. |
model | string | null | Image generation model name. |
n | integer | null | Number of images to generate. |
size | string | null | Image size (e.g. "1024x1024"). |
list_batches
List batch processing jobs
| Parameter | Type | Description |
|---|---|---|
after | string | null | Cursor for pagination (return batches after this ID). |
limit | integer | null | Maximum number of batches to return. |
list_files
List uploaded files
| Parameter | Type | Description |
|---|---|---|
limit | integer | null | Maximum number of files to return. |
purpose | string | null | Filter by purpose. |
list_models
List available models from configured providers
moderate
Check content against moderation policies
| Parameter | Type | Description |
|---|---|---|
input * | Text or array of texts to moderate. | |
model | string | null | Moderation model name. |
ocr
Extract text from an image or document via OCR
| Parameter | Type | Description |
|---|---|---|
model * | string | OCR model name. |
image_base64 | string | null | Base64-encoded image data. |
image_url | string | null | URL of the image to process. |
media_type | string | null | MIME type of the base64-encoded image (e.g. "image/png", "image/jpeg"). Defaults to "image/png" when omitted. |
rerank
Rerank documents by relevance to a query
| Parameter | Type | Description |
|---|---|---|
documents * | array | List of documents to rerank. |
model * | string | Reranking model name. |
query * | string | Query to rank documents against. |
retrieve_batch
Retrieve a batch processing job by ID
| Parameter | Type | Description |
|---|---|---|
batch_id * | string | The batch job identifier. |
retrieve_file
Retrieve metadata for an uploaded file
| Parameter | Type | Description |
|---|---|---|
file_id * | string | The file identifier. |
retrieve_response
Retrieve a response by ID (Responses API)
| Parameter | Type | Description |
|---|---|---|
response_id * | string | The response identifier. |
search
Perform a web or document search
| Parameter | Type | Description |
|---|---|---|
model * | string | Search model name. |
query * | string | Search query. |
speech
Generate speech audio from text (text-to-speech)
| Parameter | Type | Description |
|---|---|---|
input * | string | Text to convert to speech. |
model * | string | Text-to-speech model name. |
voice * | string | Voice identifier (e.g. "alloy", "echo", "nova"). |
transcribe
Transcribe audio to text (speech-to-text)
| Parameter | Type | Description |
|---|---|---|
file_base64 * | string | Base64-encoded audio file data. |
model * | string | Transcription model name. |