Skip to main content
Glama

Train Dpo

train_dpo

Fine-tune a model on chosen/rejected pairs using DPO to optimize for human preferences.

Instructions

Train on chosen/rejected pairs using Cookbook DPO. Spends credits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestYes
backgroundNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It does disclose that the operation spends credits, which is useful behavioral context, but omits other important traits such as expected duration, async/background behavior, idempotency, or resource requirements.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the core action and data requirement, with no wasted words. The credit warning is also concise and relevant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex DPO training tool with a large nested input schema and no annotations, the description is far too sparse. An output schema exists so return values need not be explained, but the agent gets almost no help constructing the required request object.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across a deeply nested request object with dozens of fields. The description only implies the dataset should contain chosen/rejected pairs and gives no guidance on model, dataset type, training hyperparameters, checkpointing, or background mode.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (Train) and method (DPO) with the required data shape (chosen/rejected pairs), making the core operation clear. It does not explicitly differentiate itself from siblings like train_sft or train_rl, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'Train on chosen/rejected pairs' implies the data precondition for using this tool, and 'Spends credits' gives a practical cost warning. However, it never states when to prefer this over train_sft, train_rl, or train_distill, nor any exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.