Groq MCP by usefulapi

v1.2.1
io.usefulapi/groq Checked 3 days ago Published 1 day ago

Run 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}.

ParameterTypeDescription
batch_id *stringThe 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}.

ParameterTypeDescription
file_id *stringThe 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.

ParameterTypeDescription
file_id *stringThe 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.

ParameterTypeDescription
messages *arrayThe conversation so far, oldest first.
model *stringModel id from groq_list_models, for example llama-3.3-70b-versatile.
max_completion_tokensintegerMaximum tokens to generate.
temperaturenumberSampling temperature, 0 to 2.
top_pnumberNucleus 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.

ParameterTypeDescription
input_file_id *stringThe id of the uploaded JSONL input file (from groq_list_files).
completion_windowstringTime window for processing; Groq accepts 24h.
endpointstringThe 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.

ParameterTypeDescription
batch_id *stringThe 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}.

ParameterTypeDescription
file_id *stringThe file id to delete (from groq_list_files).