GloopAPI integration guide

MCP tool reference

Parameters and responses for model discovery and text generation.

The current tools support model discovery and text generation. Image generation, video generation, file execution, and local code execution are outside this MCP tool set.

List models

list_models accepts an empty object and returns the model catalog currently visible to the selected Key. It requires mcp:models; visibility in the catalog does not guarantee that generation will succeed. Permissions, model status, pricing, and available credit are checked again at execution time.

{}

Generate text

generate_text requires mcp:generate and accepts the parameters below. The example is a tool argument object, not a complete protocol request to send directly to the MCP URL.

Parameter Requirement Description
model Required Exact ID from the model catalog; models are not switched automatically.
prompt Required Nonempty text, passed through unchanged.
api Required chat_completions or responses; choose an endpoint supported by the model.
instructions Optional Explicit instructions; none are automatically appended when omitted.
max_output_tokens Optional Defaults to 2048, with a range of 1–16384, also subject to model limits.
{
  "model": "abliteration-abliterated-model-large-v2",
  "api": "chat_completions",
  "prompt": "Write a short article about using AI at work.",
  "max_output_tokens": 2048
}

First confirm that the example model is available to your Key. A reasoning model's output budget may include reasoning tokens; a very small budget may produce reasoning without any final text. Results preserve the model's original response structure, including text, finish reason, usage, and response ID. The tool does not automatically execute generated code or retry billable calls.

Response limits

The service currently returns JSON results without token-by-token streaming. Each request allows up to 1 MiB of input and 4 MiB for the model response body, with a server processing timeout of 120 seconds. Cancellation or timeout does not guarantee that the provider stops execution or that the request is free. Follow error handling to check usage before deciding what to do next.