Server definition
- Hash
- sha256:5f7506bbba777446c0c2db22f0015657766f483c1c080b6257f493e310b1e012
- What it is
- What a remote MCP server returned when asked what it offers: 23 tools
The blob, as servednamed by its sha256
{
"instructions": "Gridline: managed fine-tuning, evals and batch inference on open models through an OpenAI-compatible API. A typical loop: upload_file (training data as text) → create_fine_tune (dry_run first) → poll get_fine_tune → create_eval + create_eval_run (dry_run first) comparing the base and the ft: model → create_batch on the ft: model → get_batch for its output_file_id. Distillation is one call: upload_file (prompts, purpose batch) → create_distillation (dry_run first; student_system bakes a shorter prompt into the student) → poll get_distillation. Tools that spend credit (create_fine_tune, create_batch, create_eval_run, create_distillation) need confirm_spend: true; check the quote (dry_run) or the price first and tell the user what it will cost. Every tool call needs the user's Gridline API key in the Authorization: Bearer header of the MCP connection; a tool that answers not_logged_in means it is missing (keys: https://gridlinegpu.com/dashboard/tokens). Signing up and logging in from the agent are in the local server, npx -y @gridlinegpu/mcp.",
"tools": [
{
"description": "Cancel a batch. A cancelled batch still delivers, and charges for, the requests that completed; the rest are not run. Free: no charge.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"id": {
"description": "Batch id.",
"maxLength": 200,
"minLength": 1,
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"name": "cancel_batch",
"outputSchema": null
},
{
"description": "Cancel a distillation job; its current stage (a batch or fine-tune) is cancelled too. Stages already billed stay billed: read the job afterwards (get_distillation) for its final state and costs. Free: no charge.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"id": {
"description": "Distillation job id (distjob-...).",
"pattern": "^distjob-[0-9a-f]{32}$",
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"name": "cancel_distillation",
"outputSchema": null
},
{
"description": "Cancel a fine-tuning job. It stops the job; read the job afterwards (get_fine_tune) for its final state and charge. Free: no charge.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"id": {
"description": "Fine-tuning job id.",
"maxLength": 200,
"minLength": 1,
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"name": "cancel_fine_tune",
"outputSchema": null
},
{
"description": "Run a batch (OpenAI's /batches shape) over an uploaded batch file on a base model or your ft: model. endpoint: \"/v1/chat/completions\" (default) or \"/v1/embeddings\". completion_window: \"24h\" (default) or Gridline's looser \"72h\". Costs credit: a batch is charged per 1M input and output tokens at the model's published batch price, and at least the model's per-batch minimum (https://gridlinegpu.com/pricing). A batch whose upper bound your credit cannot cover is refused before it runs. Requires confirm_spend: true.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"completion_window": {
"description": "Default \"24h\".",
"enum": [
"24h",
"72h"
],
"type": "string"
},
"confirm_spend": {
"description": "Must be true for this call to run: you have read the quote or price and accept the charge.",
"type": "boolean"
},
"endpoint": {
"description": "Default \"/v1/chat/completions\".",
"enum": [
"/v1/chat/completions",
"/v1/embeddings"
],
"type": "string"
},
"input_file_id": {
"description": "File id of the batch input (purpose batch).",
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"type": "string"
},
"type": "object"
}
},
"required": [
"input_file_id"
],
"type": "object"
},
"name": "create_batch",
"outputSchema": null
},
{
"description": "Run one-call distillation (Gridline's /distillation/jobs): the teacher model answers your prompts in a batch, the answers become a fine-tuning file with held-out rows, the student base is fine-tuned on it, and (unless run_student_batch is false) the new ft: model answers the held-out prompts so you can compare it with the teacher. Give your prompts as prompts_file (a file id from upload_file, purpose \"batch\"); one prompt a line: {\"messages\": [...]} ending with the user's turn, or an OpenAI batch request line. Prompt baking: student_system trains the student on a shorter prompt than the teacher saw, so each request it serves later carries fewer input tokens. Omit it (or null) to keep the full prompt, \"\" to train with no system message, or text (at most 2,048 bytes, not blank) as the student's short system line; the held-out student batch asks the same shorter prompt and the quote counts it. Unset options take the server's defaults. Costs credit unless dry_run is true: a distillation job runs three stages, each billed as the ordinary batch or fine-tune it is: the teacher's batch over your prompts (batch price, per-batch minimum), the student fine-tune (per trained token, per-job minimum) and, unless run_student_batch is false, a student batch over the held-out prompts (https://gridlinegpu.com/pricing). Send dry_run: true first: it returns the quote (object distillation.quote, with max_total_usd, the sum of each stage's maximum, and each stage's bound) and creates nothing. spend_cap_usd refuses a job whose quote is over it (spend_cap_exceeded). Requires confirm_spend: true unless dry_run is true. Then poll get_distillation.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"confirm_spend": {
"description": "Must be true for this call to run: you have read the quote or price and accept the charge.",
"type": "boolean"
},
"dry_run": {
"description": "true: return the quote only; no job is created and nothing is charged.",
"type": "boolean"
},
"keep_truncated": {
"description": "Keep teacher answers cut at max_tokens in the training file (default false: they are left out, still billed).",
"type": "boolean"
},
"lora_rank": {
"description": "LoRA rank.",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"max_tokens": {
"description": "Teacher answer limit (default 1,024 or the teacher's own limit).",
"maximum": 9007199254740991,
"minimum": 1,
"type": "integer"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"method": {
"description": "\"lora\" or \"qlora\".",
"enum": [
"lora",
"qlora"
],
"type": "string"
},
"n_epochs": {
"description": "Fine-tuning epochs (default: the student's).",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"prompts_file": {
"description": "File id of the prompts (purpose batch, from upload_file).",
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"run_student_batch": {
"description": "Run the ft: model on the held-out prompts (default true).",
"type": "boolean"
},
"spend_cap_usd": {
"description": "Refuse the job if the quote's max_total_usd is over this.",
"exclusiveMinimum": 0,
"maximum": 10000,
"type": "number"
},
"student": {
"description": "Student base model id (a fine-tune base).",
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"student_system": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"description": "Prompt baking. Omit or null: the student trains on the prompt as the teacher saw it. \"\": no system message. Text: this short system message instead of yours."
},
"teacher": {
"description": "Teacher model id: any chat model list_models shows for you.",
"maxLength": 128,
"minLength": 1,
"type": "string"
},
"temperature": {
"description": "Teacher temperature, 0 to 2.",
"maximum": 2,
"minimum": 0,
"type": "number"
},
"validation_split": {
"description": "Share of prompts held out, 0 up to 1 (default 0.1).",
"exclusiveMaximum": 1,
"minimum": 0,
"type": "number"
}
},
"required": [
"teacher",
"student",
"prompts_file"
],
"type": "object"
},
"name": "create_distillation",
"outputSchema": null
},
{
"description": "Define an eval (OpenAI's Evals API): data_source_config (the item schema) and testing_criteria (graders: string_check, text_similarity, score_model). Defining it is free; runs cost credit (see create_eval_run).",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"data_source_config": {
"additionalProperties": {},
"description": "OpenAI data_source_config.",
"propertyNames": {
"type": "string"
},
"type": "object"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"name": {
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"testing_criteria": {
"description": "Graders, OpenAI's shape.",
"items": {
"additionalProperties": {},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"minItems": 1,
"type": "array"
}
},
"required": [
"data_source_config",
"testing_criteria"
],
"type": "object"
},
"name": "create_eval",
"outputSchema": null
},
{
"description": "Run an eval over a data source: a file of items, or completions sampled from a model (a base model or your ft: model, to compare them). Costs credit unless dry_run is true: an eval run is billed as ordinary batches at published batch prices, each at least its model's per-batch minimum (https://gridlinegpu.com/pricing). A run that only uses string_check and text_similarity on a file's own answers creates no batch and costs nothing. Send dry_run: true first to get the quote. Requires confirm_spend: true unless dry_run is true.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"confirm_spend": {
"description": "Must be true for this call to run: you have read the quote or price and accept the charge.",
"type": "boolean"
},
"data_source": {
"additionalProperties": {},
"description": "OpenAI eval run data_source.",
"propertyNames": {
"type": "string"
},
"type": "object"
},
"dry_run": {
"description": "true: return the quote only; nothing runs.",
"type": "boolean"
},
"eval_id": {
"description": "Eval id (eval_...).",
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"name": {
"maxLength": 200,
"minLength": 1,
"type": "string"
}
},
"required": [
"eval_id",
"data_source"
],
"type": "object"
},
"name": "create_eval_run",
"outputSchema": null
},
{
"description": "Start a fine-tuning job (OpenAI's /fine_tuning/jobs shape) that trains a LoRA or QLoRA adapter on an open base model and names the result with an ft: id, or quote it with dry_run: true. method: \"lora\" or \"qlora\" as a string, or OpenAI's {\"type\": \"supervised\", \"supervised\": {\"adapter\": \"lora\", \"hyperparameters\": {...}}} or {\"type\": \"dpo\", \"dpo\": {\"hyperparameters\": {\"beta\": ...}}}. Hyperparameters (n_epochs, batch_size, learning_rate_multiplier, lora_rank, lora_alpha, max_seq_length) go in hyperparameters or inside method, once. Costs credit: a fine-tune is charged per 1M trained tokens (training tokens × epochs) at the base model's published fine-tuning price, with the per-job minimum (https://gridlinegpu.com/pricing). When the job starts, its maximum possible cost is held from your credit and the unused part is returned when it ends; a job your credit cannot cover does not start (insufficient_quota). The created job object carries Gridline's quote (an upper bound). Jobs stopped by a platform fault or the time limit are not charged. Creating a job starts it, so send dry_run: true first: it runs the same checks and returns the same quote (object fine_tuning.job.quote, with quote.per_token.max_charge_usd and credit_check) and creates nothing. Requires confirm_spend: true unless dry_run is true.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"confirm_spend": {
"description": "Must be true for this call to run: you have read the quote or price and accept the charge.",
"type": "boolean"
},
"dry_run": {
"description": "true: return the quote and the credit check only; nothing is created or charged.",
"type": "boolean"
},
"hyperparameters": {
"additionalProperties": {},
"description": "Training settings.",
"propertyNames": {
"type": "string"
},
"type": "object"
},
"metadata": {
"additionalProperties": {
"type": "string"
},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"method": {
"anyOf": [
{
"enum": [
"lora",
"qlora"
],
"type": "string"
},
{
"additionalProperties": {},
"propertyNames": {
"type": "string"
},
"type": "object"
}
],
"description": "\"lora\", \"qlora\", or an OpenAI method object (supervised or dpo)."
},
"model": {
"description": "Base model id, e.g. qwen3.5-9b (see list_models).",
"minLength": 1,
"type": "string"
},
"seed": {
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"type": "integer"
},
"suffix": {
"description": "A short label in the ft: model name.",
"maxLength": 64,
"type": "string"
},
"training_file": {
"description": "File id of the training data (purpose fine-tune).",
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"validation_file": {
"description": "Optional validation file id.",
"maxLength": 200,
"minLength": 1,
"type": "string"
}
},
"required": [
"model",
"training_file"
],
"type": "object"
},
"name": "create_fine_tune",
"outputSchema": null
},
{
"description": "A batch's status, request counts, cost and its output/error file ids. Free: no charge.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"id": {
"description": "Batch id (batch_...).",
"maxLength": 200,
"minLength": 1,
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"name": "get_batch",
"outputSchema": null
},
{
"description": "Your credit balance and low-credit threshold (Gridline's usage summary), plus your most recent charges. Free: no charge.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"limit": {
"description": "Page size, 1 to 100.",
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
"type": "object"
},
"name": "get_credit_balance",
"outputSchema": null
},
{
"description": "A distillation job's status and stage, its stages' batch and fine-tune ids, costs, and the ft: model once it succeeds. Free: no charge.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"id": {
"description": "Distillation job id (distjob-...).",
"pattern": "^distjob-[0-9a-f]{32}$",
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"name": "get_distillation",
"outputSchema": null
},
{
"description": "An eval run's status, per-grader results, cost and its results file. Free: no charge.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"eval_id": {
"description": "Eval id.",
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"run_id": {
"description": "Run id (evalrun_...).",
"maxLength": 200,
"minLength": 1,
"type": "string"
}
},
"required": [
"eval_id",
"run_id"
],
"type": "object"
},
"name": "get_eval_run",
"outputSchema": null
},
{
"description": "A fine-tuning job's status, its quote and, once it succeeds, its ft: model. Free: no charge.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"id": {
"description": "Fine-tuning job id (ftjob-...).",
"maxLength": 200,
"minLength": 1,
"type": "string"
}
},
"required": [
"id"
],
"type": "object"
},
"name": "get_fine_tune",
"outputSchema": null
},
{
"description": "A short-lived (15 minute) download URL for one file of a merged-weights export. Download it with any HTTP client; the bytes are not passed through this tool. Free: no charge.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"model": {
"description": "Your ft: model id.",
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"path": {
"description": "File path from get_merged_weights.",
"maxLength": 500,
"minLength": 1,
"type": "string"
}
},
"required": [
"model",
"path"
],
"type": "object"
},
"name": "get_merged_file_url",
"outputSchema": null
},
{
"description": "A merged-weights export's status and its file list. Free: no charge.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"model": {
"description": "Your ft: model id.",
"maxLength": 200,
"minLength": 1,
"type": "string"
}
},
"required": [
"model"
],
"type": "object"
},
"name": "get_merged_weights",
"outputSchema": null
},
{
"description": "A distillation job's stage events (transitions, newest first). Free: no charge.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"after": {
"description": "Cursor: the last id of the previous page.",
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"id": {
"description": "Distillation job id (distjob-...).",
"pattern": "^distjob-[0-9a-f]{32}$",
"type": "string"
},
"limit": {
"description": "Page size, 1 to 100.",
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
"required": [
"id"
],
"type": "object"
},
"name": "list_distillation_events",
"outputSchema": null
},
{
"description": "List your distillation jobs, newest first. Free: no charge.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"after": {
"description": "Cursor: the last id of the previous page.",
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"limit": {
"description": "Page size, 1 to 100.",
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
"type": "object"
},
"name": "list_distillations",
"outputSchema": null
},
{
"description": "A fine-tuning job's events: progress, training and validation loss, warnings and errors. Free: no charge.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"after": {
"description": "Cursor: the last id of the previous page.",
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"id": {
"description": "Fine-tuning job id.",
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"limit": {
"description": "Page size, 1 to 100.",
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
"required": [
"id"
],
"type": "object"
},
"name": "list_fine_tune_events",
"outputSchema": null
},
{
"description": "List your fine-tuning jobs, newest first. Free: no charge.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"after": {
"description": "Cursor: the last id of the previous page.",
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"limit": {
"description": "Page size, 1 to 100.",
"maximum": 100,
"minimum": 1,
"type": "integer"
}
},
"type": "object"
},
"name": "list_fine_tunes",
"outputSchema": null
},
{
"description": "List the base models you can batch or fine-tune on, and your own ft: models. Free: no charge.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {},
"type": "object"
},
"name": "list_models",
"outputSchema": null
},
{
"description": "An eval run's graded items: each sample and every grader's result. Free: no charge.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"after": {
"description": "Cursor: the last id of the previous page.",
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"eval_id": {
"description": "Eval id.",
"maxLength": 200,
"minLength": 1,
"type": "string"
},
"limit": {
"description": "Page size, 1 to 100.",
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"run_id": {
"description": "Run id.",
"maxLength": 200,
"minLength": 1,
"type": "string"
}
},
"required": [
"eval_id",
"run_id"
],
"type": "object"
},
"name": "list_output_items",
"outputSchema": null
},
{
"description": "Ask for an ft: model merged into its base as full safetensors. Free: the merge and download are at no charge; the export is kept 7 days. Poll get_merged_weights until it succeeds.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"model": {
"description": "Your ft: model id.",
"maxLength": 200,
"minLength": 1,
"type": "string"
}
},
"required": [
"model"
],
"type": "object"
},
"name": "request_merged_weights",
"outputSchema": null
},
{
"description": "Upload a JSONL file's text to the Files API. purpose \"fine-tune\" for training/validation data (OpenAI chat format; DPO preference rows for DPO), \"batch\" for a batch input file (one request per line). content is the whole file as text, at most 4 MiB through this server; send larger files to POST https://api.gridlinegpu.com/openai/v1/files with your API key. Returns the file object; use its id in create_fine_tune, create_batch, create_distillation or an eval run. Free: no charge. Stored files count toward your storage limits.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"content": {
"description": "The JSONL file's text, one JSON object a line.",
"maxLength": 4194304,
"minLength": 2,
"type": "string"
},
"filename": {
"description": "File name to store, e.g. train.jsonl (default upload.jsonl).",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$",
"type": "string"
},
"purpose": {
"description": "\"fine-tune\" or \"batch\".",
"enum": [
"fine-tune",
"batch"
],
"type": "string"
}
},
"required": [
"content",
"purpose"
],
"type": "object"
},
"name": "upload_file",
"outputSchema": null
}
]
}Verify it yourself
curl -s https://api.teppi.xyz/v1/evidence/sha256:5f7506bbba777446c0c2db22f0015657766f483c1c080b6257f493e310b1e012 | sha256sum