Skip to content
Covo Developers

Reference

Compare versions

Structured diff between two versions, or a version and the current configuration ("current").

RESTGET /api/v1/agents/{agent_id}/diff
MCP tooldiff_versions
ClassificationRead (changes nothing)
Scopeagents:read
Minimum role on the agenteditor
ConfirmationNot needed
Retry safetySafe to retry with the same input
Success status200

What it does

Structured diff between two versions, or a version and the current configuration ("current").

Side effects

None. It only reads.

Inputs

NameTypeRequiredInDescription
agent_idstringyespathThe agent id (agt_...), from list_agents.
frominteger or "current"yesquery
tointeger or "current"noqueryDefault "current".

Example

REST
curl "https://covo.lanaai.io/api/v1/agents/agt_4edc89bb2964/diff?from=1&to=current" \
  -H "Authorization: Bearer $COVO_TOKEN"
MCP (POST /mcp)
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "diff_versions",
    "arguments": {
      "agent_id": "agt_4edc89bb2964",
      "from": 1,
      "to": "current"
    }
  }
}

Response

Returns an object with from, to and changes. This is a real response, shortened to two items per list.

200 response
{
  "from": 1,
  "to": "current",
  "changes": [
    {
      "path": "personality.tone",
      "operation": "replace",
      "before": "warm",
      "after": "Warm, direct and practical."
    },
    {
      "path": "personality.greeting",
      "operation": "replace",
      "before": "I'm Avery Quinn's Concierge. I can help you learn about Avery Quinn's work, what's on offer, or anything else you're curious about.",
      "after": "Hi, I am Avery’s Concierge. Ask me about spring projects."
    }
  ]
}

Over MCP the same object comes back as the tool result, in structuredContent and as JSON text.

Errors

StatusCodeMeaning
401unauthorizedNo token, or it is unknown, revoked or expired. OAuth apps refresh or reconnect.
403account_suspendedThe account that owns the token is paused.
403insufficient_scopeThe token lacks agents:read.
404agent_not_foundUnknown agent, or not reachable with this token.
400bad_requestAn input is invalid; field names it.
429rate_limitedWait Retry-After seconds.