agents.writerslogic.com/api/v1/transcript-validator
Validates a message list before it is sent to Anthropic Messages, OpenAI Chat Completions or OpenAI Responses: every tool call paired with its result, results in the right place and role, ids present and unique. Built for an agent that edits, truncates or replays its own history and would otherwise get a 400. Only rules stated in the providers' documentation fail the check; anything else suspiciou
POST
https://agents.writerslogic.com/api/v1/transcript-validatorUptime100% of 2 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agents.writerslogic.com/api/v1/transcript-validator", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"messages":[{"role":"user","content":"Weather in Paris?"},{"role":"assistant","content":[{"id":"toolu_1","name":"get_weather","type":"tool_use","input":{"city":"Paris"}}]},{"role":"user","content":[{"type":"tool_result","content":"18C","tool_use_id":"toolu_1"},{"text":"Thanks","type":"text"}]}],"provider":"anthropic"}),
});
console.log(await res.json());Example input
{
"messages": [
{
"role": "user",
"content": "Weather in Paris?"
},
{
"role": "assistant",
"content": [
{
"id": "toolu_1",
"name": "get_weather",
"type": "tool_use",
"input": {
"city": "Paris"
}
}
]
},
{
"role": "user",
"content": [
{
"type": "tool_result",
"content": "18C",
"tool_use_id": "toolu_1"
},
{
"text": "Thanks",
"type": "text"
}
]
}
],
"provider": "anthropic"
}