Groq MCP by usefulapi
v1.2.1Run chat completions, manage batch jobs and files, and list models in Groq.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
groq_list_models List models
List the models available to this Groq account, with their ids, owners, context window and status. Use the id in groq_create_chat_completion. Groq API: GET /openai/v1/models.
groq_list_batches List batches
List the batch jobs of this organization, with status and request counts. Groq API: GET /openai/v1/batches.
groq_get_batch Get a batch
Get one batch job by id: status, endpoint, input and output file ids, and timestamps. Groq API: GET /openai/v1/batches/{batch_id}.
| Parameter | Type | Description |
|---|---|---|
batch_id * | string | The batch id, for example batch_01jh... (from groq_list_batches). |
groq_list_files List files
List the files uploaded to this organization (batch inputs and batch outputs). Groq API: GET /openai/v1/files.
groq_get_file Get a file
Get the metadata of one file by id: name, purpose, size and creation time. Groq API: GET /openai/v1/files/{file_id}.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | The file id, for example file_01jh... (from groq_list_files). |
groq_get_file_content Get file content
Read the text of one file, for example a batch output in JSONL. Returns at most 200000 characters and says when it cut the text. Groq API: GET /openai/v1/files/{file_id}/content.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | The file id (from groq_list_files). |
groq_create_chat_completion Create a chat completion
Run one chat completion on a Groq model and return the reply with token usage. This call is billed to the Groq account (tokens). Non-streaming only. Groq API: POST /openai/v1/chat/completions.
| Parameter | Type | Description |
|---|---|---|
messages * | array | The conversation so far, oldest first. |
model * | string | Model id from groq_list_models, for example llama-3.3-70b-versatile. |
max_completion_tokens | integer | Maximum tokens to generate. |
temperature | number | Sampling temperature, 0 to 2. |
top_p | number | Nucleus sampling, 0 to 1. |
groq_create_batch Create a batch
Start a batch job from a JSONL input file already uploaded with purpose 'batch'. The job runs asynchronously and is billed to the Groq account. Groq API: POST /openai/v1/batches.
| Parameter | Type | Description |
|---|---|---|
input_file_id * | string | The id of the uploaded JSONL input file (from groq_list_files). |
completion_window | string | Time window for processing; Groq accepts 24h. |
endpoint | string | The endpoint every request in the file calls. |
groq_cancel_batch Cancel a batch
Cancel a batch job that has not finished. Requests already completed stay in the output file. Groq API: POST /openai/v1/batches/{batch_id}/cancel.
| Parameter | Type | Description |
|---|---|---|
batch_id * | string | The batch id to cancel (from groq_list_batches). |
groq_delete_file Delete a file
Delete one uploaded file permanently. A batch that still needs this input file can fail. Groq API: DELETE /openai/v1/files/{file_id}.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | The file id to delete (from groq_list_files). |