compare
The client against competitors, one row per primitive, biggest differences first. Needs a key.
Needs a keyMCP tool
Parameters
- workspacestringrequired
- withstring[]optional
Competitor slugs; defaults to the first four
Example call
Agents call tools by name; you rarely write this by hand. It is here so you can test the server from a shell or your own code.
{
"name": "compare",
"arguments": {
"workspace": "acme-builders",
"with": [
"rival-co"
]
}
}Response
The result is one text content block holding this JSON (abbreviated here). Errors come back with isError: true and a message such as Error 401: … or Invalid input: ….
Response
{
"companies": [
{
"slug": "client",
"name": "Acme Builders",
"isClient": true
},
{
"slug": "rival-co",
"name": "Rival Co",
"isClient": false
}
],
"rows": [
{
"primitive": "job_costing",
"label": "Job costing",
"layer": "process",
"delta": 0.8,
"cells": [
{
"present": false
},
{
"present": true,
"confidence": "inferred_high"
}
]
}
]
}Over REST
The same call without MCP: GET/api/v1/workspaces/:slug/compare