Margin
io.trymargin/margin
Serveur MCP OK
Faire examiner Voir les tarifs
Tests a model or prompt change on your own evals and says if it holds, before your agent ships it.
Fiche technique
- Auteur
- trymargin.io (espace de noms du registre)
- Dépôt
- —
- Site
- trymargin.io/docs
- Version
- 0.2.0
- Transport
- Streamable HTTP
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://trymargin.io/api/mcp?tools=core Streamable HTTP en-tête requis :
Authorization
https://trymargin.io/api/mcp/agent?tools=core Streamable HTTP en-tête requis :Authorization - Outils
- 16
- Catégories
- IA, agents et mémoire
- Dernière mise à jour
- 26 nov. 2026
- Publication
- 26 nov. 2026
Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/io.trymargin/margin)<a href="https://latlas.dev/mcp/io.trymargin/margin"><img src="https://latlas.dev/badge/fiche/io.trymargin/margin.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://trymargin.io/api/mcp?tools=core
- Dernier résultat
- OK 28 nov. 2026, 11:07
- Temps de réponse
- 614 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- margin 0.1.0
- Outils
- 16
- Adresse
- https://trymargin.io/api/mcp/agent?tools=core
- Dernier résultat
- OAuth requis 28 nov. 2026, 09:53 OAuth (métadonnées RFC 9728 publiées)
Historique
| Date | Adresse | Résultat | Réponse | Outils |
|---|---|---|---|---|
| 28 nov. 2026, 11:07 | trymargin.io/api/mcp?tools=core | OK | 614 ms | 16 |
| 28 nov. 2026, 09:53 | trymargin.io/api/mcp/agent?tools=core | OAuth requis | 412 ms | — |
Outils exposés (16, réponse à tools/list, 28 nov. 2026)
margin_jobs
Where YOUR project's money goes, per job: each model-calling step over the last 30 days with its calls, cost, live model and whether any eval has exercised it, plus how concentrated the spend is in the top 5/10/20 jobs. A job is labelled 'code and traffic', 'traffic only' or 'code only', never dropped. No per-job outcomes: outcomes are recorded per workflow. Also carries VALUE PER OUTCOME where the person set one (in their own unit, and dollars only at a stated rate); every other job is cost per outcome. Needs the project's key.
Aucun paramètre.
margin_optimize
WHAT TO TEST NEXT for YOUR project: every candidate change Margin can name, ranked, each labelled by its basis: measured (a face-off ran and gave a verdict), detected, prior, or untested. A listed move is a candidate, not a verdict; the verdict comes from the face-off. A 'pr' move is a setting a face-off can test; a 'structural' one needs a person. Reads only: queueing a face-off spends the project's measurement allowance, so it happens in the console (queue_in) or through margin_test_move with an agent key, never through this tool. Needs the project's ingest key.
Aucun paramètre.
margin_faceoff_status
YOUR project's latest measured run, every face-off queued against it with its status and verdict, and the post-merge watch on each change you registered (holding, slipped, or still waiting for graded outcomes). Pull requests open from the console only, because that click is your approval. Needs the project's ingest key.
Aucun paramètre.
margin_test_move
Ask Margin to TEST one move on YOUR project: a cheaper model, an output cap or a host pin, exactly as a move listed by margin_optimize (pass its level, target and lever). Margin re-runs your own evals with the move applied, in its sandbox, on your latest measured run, and its promotion gate decides: promoted only when the pass rate holds at the bar AND it is cheaper, otherwise refused with the reason (too few cases, quality slipped, the baseline does not stand in for production). Returns the queued run id or a named refusal; read the verdict with margin_faceoff_status. Spends within the project's measuring budget, capped per run, and asking twice does not pay twice. It never changes your code: the pull request opens from the console, which is your approval. Needs an AGENT key (mak_, created in the console with a spend limit) on /api/mcp/agent; the ingest key is refused.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| level | string | oui | the move's level, from margin_optimize |
| target | string | oui | the move's target, from margin_optimize |
| lever | string | oui | the move's lever, from margin_optimize |
margin_test_model
Ask Margin to face off ONE model you name (an OpenRouter slug such as openai/gpt-4.1-mini, or a release from this week) against YOUR project's latest measured run, on your own evals, in Margin's sandbox. Optionally name one `agent` to swap only its calls. Refused, with the reason, when the catalogue does not list the model, it has a retirement date, no host the project may use serves it, or it is the model already in use. The promotion gate decides: a cheaper model is promoted only when the pass rate holds at the bar; a pricier one is reported as an upgrade with what it costs. Read the verdict with margin_faceoff_status. Spends within your key's limit and the project's measuring budget; asking twice does not pay twice. Needs an AGENT key on /api/mcp/agent.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| model | string | oui | the model to test, e.g. openai/gpt-4.1-mini |
| agent | string | non | optional: swap only this agent's calls |
margin_delegate_key
Hand a narrower agent key to another agent: a boss agent to a department agent, a department agent to one agent. Pass a spend limit (taken out of YOUR key's limit), an optional label, an optional list of agent files it may test (inside your own scope), whether it may hand out keys in turn, and how many hours it lives (default 24, never past your own key's expiry). Returns the new key ONCE. Only a key a person allowed to delegate can do this. Revoking a key revokes every key it handed out.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| spend_limit_usd | number | oui | the new key's limit, in USD |
| label | string | non | who it is for, e.g. 'billing department' |
| agents | array<string> | non | agent files it may test; omitted keeps your own scope |
| can_delegate | boolean | non | whether it may hand out keys in turn |
| ttl_hours | number | non | hours until it stops working; default 24, max 168 |
margin_my_keys
YOUR agent key: its spend limit, how much is reserved, which agents it covers, and the keys it has handed out to other agents. Needs an agent key.
Aucun paramètre.
margin_fit_check
Before spending anything: can YOUR eval set prove a model switch? Pass the export's text (a promptfoo results file, a Braintrust or LangSmith dataset export, or JSONL of {input or messages, expected, check}). Returns how many cases Margin can grade (exact label, contains, regex or a JSON field; LLM-rubric cases are counted but not graded), how many the 97% switch bar needs, and how many cases a new model may lose and still be promoted. Free and instant. Needs the project's key.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| dataset | string | oui | the export's text |
margin_replay_dataset
Replay YOUR eval dataset against a candidate model, with no repo run: each case goes to `baseline` and `candidate` with the same messages (and the same structured-output schema, when the case has one), is graded by the case's own check, and the two are compared case by case by Margin's parity gate. Returns the verdict: promoted only when the candidate holds the pass rate at the bar AND costs less per case; otherwise the reason. Cases go only to zero-retention hosts and are not stored. The answer leads with a headline: the saving a year at `monthly_calls` (proven only when promoted), the cases the candidate lost and how many cases would settle a hold, or what an upgrade costs per extra case it gets right. Give a case a `segment` (or metadata.segment / metadata.category) and each segment is also judged on its own: a change that ties overall but is proven worse in one segment comes back do_not_ship, naming it. By default it stops early, and spends less, once the answer is already do_not_ship (checked from 40 cases on, corrected for every look; `stopped_early` says so); it never stops early for ship. `early_stop` false runs every case. A replay that cannot reach a verdict is refused before the full run is paid for (decision `refused_before_spend`, the reason in `why`, the checks in `preflight`): fewer cases than `cases_needed` (`anyway` true runs it as a check that can only find a loss), one of the first two cases getting no answer, or an estimate over `cap_usd`. In the run, a 4…
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| dataset | string | oui | the export's text |
| baseline | string | non | the model in use, e.g. openai/gpt-4.1 |
| candidate | string | non | the model to test |
| cap_usd | number | oui | the most this replay may spend |
| monthly_calls | number | non | optional: calls this step makes a month |
| measure_noise | boolean | non | optional: also run the current model twice |
| early_stop | boolean | non | optional, default true: stop once the answer is already do_not_ship; false runs every case |
| anyway | boolean | non | optional, default false: run a set smaller than `cases_needed`; it can only find a loss, never ship |
| repeats | integer | non | optional, default 1: runs of each case per side; a case passes only if all of them passed |
| candidate_endpoint | object | non | optional: a model in YOUR account, called with your credential for this replay only (never stored) and priced at your rate. kind: openai_compatible (base_url, model, api_key; also your own OpenRouter key at https://openrouter.ai/api/v1), azure_openai (resource, deployment, api_key, api_version), ve… |
| baseline_endpoint | object | non | optional: a model in YOUR account, called with your credential for this replay only (never stored) and priced at your rate. kind: openai_compatible (base_url, model, api_key; also your own OpenRouter key at https://openrouter.ai/api/v1), azure_openai (resource, deployment, api_key, api_version), ve… |
| continue_job | string | non | optional: the token a call that hit the time limit returned; resumes it with the same arguments |
| critical_segments | array<string> | non | optional: segments that are a release criterion; the verdict cannot say ship unless each is proven to hold on its own cases |
| store_text | boolean | non | optional: false is privacy mode. Margin keeps, per case, only a fingerprint of how the two outputs differed (equal or not, where, each length, a coarse kind, keyed hashes), never the text, and the verdict carries `differences`: counts by kind and the first 20 groups. Omitted or true: as before, no… |
| candidate_system | string | non | optional: test a prompt change. The candidate runs with this as its whole system prompt; the candidate model may equal the baseline |
| candidate_tools | array<object> | non | optional: test a tool change (a rewritten description, an added or removed tool). OpenAI function tools that replace each case's `tools` for the candidate only |
margin_check_experiments
Did this change help or hurt, and is it proven? Compares two experiments your team ALREADY ran and scored (Braintrust export or experiment id): the model in use vs a cheaper model, an old prompt vs a new one, or the same setup last week vs today (to catch a provider changing a model under you). Pairs the cases, then applies Margin's gate: promoted only when the second holds the pass rate at the 97% bar and costs less; otherwise the reason (cases lost, too few cases to tell, a case missing from one side, or no cost logged). `quality_proven` answers the quality question apart from cost. Pass `candidates` when several models were tried on these cases (Loop often tries several): the best of several looks better than it is. Runs no model and spends nothing. Needs the project's key.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| scorer | string | oui | the score that decides pass or fail |
| baseline | string | non | the first experiment's events (JSON, JSONL or a fetch page); or use baseline_experiment_id |
| candidate | string | non | the second experiment's events |
| baseline_experiment_id | string | non | read with this project's Braintrust connection |
| candidate_experiment_id | string | non | read with this project's Braintrust connection |
| threshold | number | non | a pass is a score at or above this (default 1) |
| candidates | integer | non | how many models or prompts were tried on these cases |
| critical_segments | array<string> | non | optional: segments (an event's metadata.segment or metadata.category) that are a release criterion |
margin_report_outcome
After a change Margin gave a verdict on has shipped (or did not ship): record what happened. `verdict_id` is the one the replay or check returned; `outcome` is held, regressed or not_shipped; `note` says how you know (an incident, a metric, a rerun). This is what Margin's track record for your project is made of. Reporting regressed on a verdict that said ship opens a fee credit under review, which Margin decides (margin_guarantee_claims). Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| verdict_id | string | oui | from the verdict |
| outcome | enum: "held" | "regressed" | "not_shipped" | oui | |
| note | string | non | optional: how you know |
margin_change_record
One verdict as a change record you can attach to your customer's change notice: what changed, the decision, the cases and the gap with its 95% bound, each segment's reading, the cases that got worse, cost per case, what the record does not establish, and the outcome your team reported. Markdown. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| verdict_id | string | oui | from the verdict |
margin_verdict_receipt
One verdict as a receipt someone outside your team can check: an in-toto Statement in a DSSE envelope (`receipt`), signed by Margin with Ed25519 when `signed` is true, with the decoded `statement` beside it. It carries the decision, the bar, the paired counts and gap, candidates tried, cost per case, segments, and what it does not show. A record signed by Margin, not a certification. When `signed` is false the receipt is unsigned and `note` says why. Verify with `margin-referee verify` and the key at /.well-known/margin-receipt-key. Free.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| verdict_id | string | oui | from the verdict |
margin_track_record
Margin's verdicts for your project and how they turned out: how many said ship, do not ship or not enough evidence, and of the ship verdicts your team reported on, how many held. Unreported ones are pending, never counted as held. Free.
Aucun paramètre.
margin_draft_checks
When the fit check says your cases cannot be graded (free-text answers, common for support, ops and finance agents): pass what the agent is for (`task`, with its rules written out, e.g. 'never offer a coupon') and up to 20 real outputs (`samples`). Margin drafts pass/fail checks, code checks first, and shows which samples each one fails. Drafts only: a named person on your team accepts each in the console before it grades anything. Free, except an optional AI pass that uses the project's daily console allowance. Needs the project's key.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| task | string | oui | what the agent is for, with its rules |
| samples | array<string> | oui | 1 to 20 real outputs of the agent |
margin_pin_drift_check
Watch one setup for quality drift (a provider changing a model under its name, your retrieval or tools moving): pin your eval cases (`dataset`, the export's text) and a `model`, at a `cadence` of daily or weekly. Each run replays the cases and compares them with the last complete run by Margin's paired gate. It alerts only on a proven drop, never on noise; too little evidence is reported as that. The first run is the baseline and runs now. A run spends at most `cap_usd` (max 10) of your AGENT key's limit and a month's runs at most `monthly_cap_usd`; a revoked or expired key refuses the run. The cases are stored until `cadence` off. `endpoint` is a note in words, never a credential. At most 300 cases.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| dataset | string | oui | the export's text |
| model | string | oui | the model in use, e.g. openai/gpt-4.1 |
| cadence | enum: "daily" | "weekly" | "off" | oui | |
| cap_usd | number | non | the most one run may spend |
| monthly_cap_usd | number | non | optional: the most a month's runs may spend |
| endpoint | string | non | optional: where the setup runs, in words |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://trymargin.io/api/mcp?tools=core. Formats repris de la documentation de chaque client.
claude mcp add --transport http margin https://trymargin.io/api/mcp?tools=coreCustomize > Connectors > + Add > Add custom connector ; Name : margin ; URL : https://trymargin.io/api/mcp?tools=corechatgpt.com/plugins > + > Add custom MCP server ; Name : margin ; Server URL : https://trymargin.io/api/mcp?tools=core ; Create as a plugin{
"mcpServers": {
"margin": {
"url": "https://trymargin.io/api/mcp?tools=core"
}
}
}{
"mcpServers": {
"margin": {
"type": "http",
"url": "https://trymargin.io/api/mcp?tools=core",
"tools": ["*"]
}
}
}{
"mcpServers": {
"margin": {
"url": "https://trymargin.io/api/mcp?tools=core"
}
}
}{
"mcpServers": {
"margin": {
"httpUrl": "https://trymargin.io/api/mcp?tools=core"
}
}
}[mcp_servers.margin]
url = "https://trymargin.io/api/mcp?tools=core"Source : Registre officiel MCP · relevé le 29 nov. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.