Need more detail? Connect your coding agent to the full docs.

Skip to Content
AMIRILDocs
/

Agents

The Agents routes of Amiril's HTTP API that an OAuth access token can call, with their parameters, request bodies and responses.

GET
/api/agents/{agentId}/clusters

The structural topics the newest layout fit found among the agent's runs in this environment, largest first. A topic keeps its letter across refits, and so its name and label; a topic that left a refit is not listed and its letter is never reused. Each carries the summariser's name (null until named, from the features that set it apart and its size), a person's label, its runs, its outcome rate (the share of its runs that succeeded, of those with an outcome, by the agent's success condition or else its success tools; null with neither) beside the agent's own, the runs at least as far from their usual group as the farthest run it was fitted on, which match no group well, and up to three features that set it apart.

Any access token can call this, read-only or full.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

agentId*string
Length1 <= length

Response Body

The agent's structural topics

application/json
  1. response
layoutVersion*number|null
successTools*array<string>
runs*number
outcomeRate*number|null
clusters*array<>
Example Request
curl -X GET 'https://api.amiril.ai/api/agents/string/clusters'
Example Response
{  "layoutVersion": 0,  "successTools": [    "string"  ],  "runs": 0,  "outcomeRate": 0,  "clusters": [    {      "key": "string",      "agentKey": "string",      "letter": "string",      "name": "string",      "label": "bad",      "labelledBy": "string",      "labelledAt": "string",      "runs": 0,      "outcomeRate": 0,      "beyondGroup": 0,      "features": [        {          "column": "string",          "clusterMedian": 0,          "populationMedian": 0,          "difference": 0        }      ]    }  ]}

An agent's turn topics

GET
/api/agents/{agentId}/turn-clusters

The turn topics the newest turn fit found among the agent's turns of one role in this environment (role=user, the user's words, or assistant, the agent's replies), largest first. Turns are embedded, reduced with UMAP and grouped with HDBSCAN; each later turn joins its nearest topic by cosine, or none past that topic's cut-off. A topic keeps its letter across refits, and so its name and label. Each carries the summariser's name (from member turns; null until named), a person's label, its turns and runs, its outcome rate (the share of those runs that succeeded, of those with an outcome, by the agent's success condition or else its success tools; null with neither) and member turns nearest its centre (only when the workspace keeps message text).

Any access token can call this, read-only or full.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

agentId*string
Length1 <= length

Query Parameters

role?string
Default"user"
Value in"user""assistant"

Response Body

The agent's turn topics

application/json
  1. response
role*string
Value in"user""assistant"
fits*array<>
noMatch*
outcomeRate*number|null
clusters*array<>
Example Request
curl -X GET 'https://api.amiril.ai/api/agents/string/turn-clusters'
Example Response
{  "role": "user",  "fits": [    {      "agentKey": "string",      "version": 0,      "turns": 0,      "fittedAt": "string"    }  ],  "noMatch": {    "turns": 0,    "runs": 0  },  "outcomeRate": 0,  "clusters": [    {      "key": "string",      "agentKey": "string",      "role": "user",      "letter": "string",      "name": "string",      "label": "bad",      "labelledBy": "string",      "labelledAt": "string",      "proposal": "problem",      "proposalReason": "string",      "turns": 0,      "runs": 0,      "outcomeRate": 0,      "samples": [        {          "runId": "string",          "position": 0,          "text": "string"        }      ]    }  ]}

An agent's run topics

GET
/api/agents/{agentId}/facet-clusters

The run topics the newest summary fit found among the agent's runs in this environment, largest first. Each run gets a one-sentence summary a small model writes from its turns and tool calls in a fixed frame (what the user wanted, what went wrong if anything, how it ended), written only when the workspace keeps message text. Summaries are embedded, reduced with UMAP and grouped with HDBSCAN; each later run joins its nearest topic by cosine, or none past that topic's cut-off. A topic keeps its letter across refits, and so its name and label. Each carries the summariser's name (from member summaries; null until named), a person's label, its runs, whether a person marked it as expecting no outcome, its outcome rate (the share of its runs that succeeded, by the agent's success condition or else its success tools; null with neither, or when it expects no outcome) beside the agent's own (which leaves such topics out), and member summaries nearest its centre (only when the workspace keeps message text).

Any access token can call this, read-only or full.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

agentId*string
Length1 <= length

Response Body

The agent's run topics

application/json
  1. response
fits*array<>
runs*number
noMatch*number
outcomeRate*number|null
clusters*array<>
Example Request
curl -X GET 'https://api.amiril.ai/api/agents/string/facet-clusters'
Example Response
{  "fits": [    {      "agentKey": "string",      "version": 0,      "runs": 0,      "fittedAt": "string"    }  ],  "runs": 0,  "noMatch": 0,  "outcomeRate": 0,  "clusters": [    {      "key": "string",      "agentKey": "string",      "letter": "string",      "name": "string",      "label": "bad",      "labelledBy": "string",      "labelledAt": "string",      "proposal": "problem",      "proposalReason": "string",      "noOutcomeExpected": true,      "runs": 0,      "outcomeRate": 0,      "samples": [        {          "runId": "string",          "text": "string"        }      ]    }  ]}
GET
/api/agents/{agentId}/success-condition

Rule text read at each run's end over the run's calls, saying when one of the agent's runs succeeded in this environment: the clauses alone, with no head (for example when { some_tool{ result.ok == true } }). Set, it decides each run's outcome in place of the success tools; null when none is set. computing says runs are still being replayed under the current version.

Any access token can call this, read-only or full.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

agentId*string
Length1 <= length

Response Body

Success condition

application/json
  1. response
condition*|null
Example Request
curl -X GET 'https://api.amiril.ai/api/agents/string/success-condition'
Example Response
{  "condition": {    "text": "string",    "version": 0,    "computing": true,    "decided": 0,    "updatedBy": "string",    "updatedAt": "string"  }}
GET
/api/agents/{agentId}/success-tools

The tools whose call means one of the agent's runs succeeded in this environment; empty means no outcome rate.

Any access token can call this, read-only or full.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

agentId*string
Length1 <= length

Response Body

Success tools

application/json
  1. response
tools*array<>
Itemsitems <= 100
Example Request
curl -X GET 'https://api.amiril.ai/api/agents/string/success-tools'
Example Response
{  "tools": [    "string"  ]}

List agents

GET
/api/agents

Every agent of this environment, registered or not, folded over the names it is seen under, plus the Unattributed bucket and the environment's extraction rule. An agent belongs to one environment: the same name in another environment is another agent. An unregistered agent is listed while the environment has runs under one of its names or an SDK reports one. Runs, anomalies (reviewed or not), top rarity and cost are scoped to the window param (default 30d); runs per day cover the 14 days the window ends on. With access:read, each agent carries its owners, live gateway tokens, granted tools, the servers it reaches, how many of its grants it used in 30 days, and its review flags.

Any access token can call this, read-only or full.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Query Parameters

window?string
Default"30d"
Value in"1h""6h""24h""7d""30d""90d""custom"
from?string
to?string

Response Body

Fleet list

application/json
  1. response
agents*array<>
archived*array<>
unattributed*|null
source*
windowFrom*string|null
windowTo*string|null
newestEnd*string|null
Example Request
curl -X GET 'https://api.amiril.ai/api/agents'
Example Response200
{  "agents": [    {      "id": "string",      "displayName": "string",      "mark": {        "pattern": "tide",        "family": "green"      },      "description": "string",      "status": "observed",      "tags": [        "string"      ],      "observedKeys": [        "string"      ],      "runs": 0,      "toolCalls": 0,      "generations": 0,      "runsInWindow": 0,      "anomaliesInWindow": 0,      "anomalyCounts": {        "total": 0,        "wholeRun": 0,        "singleEvent": 0,        "both": 0      },      "topScore": 0,      "costInWindow": 0,      "dailyRuns": [        0      ],      "deploy": {        "version": "string",        "commit": "string",        "deployedAt": "string"      },      "success": {        "succeeded": 0,        "decided": 0      },      "runtime": "string",      "installation": {        "framework": {          "name": "string",          "version": "string"        },        "source": "string"      },      "mergedInto": "string",      "firstSeen": "string",      "lastSeen": "string",      "access": {        "repoUrl": "string",        "createdAt": "string",        "createdBy": "string",        "owners": [          {            "id": "string",            "name": "string",            "email": "string"          }        ],        "liveTokens": 0,        "grantCounts": {          "read": 0,          "write": 0,          "destructive": 0        },        "destructiveAllowed": 0,        "openSuggestions": 0,        "reach": {          "internal": 0,          "external": 0        },        "servers": [          {            "id": "string",            "slug": "string",            "name": "string",            "kind": "internal",            "icon": "string"          }        ],        "toolNames": [          "string"        ],        "grantsUsed": 0      }    }  ],  "archived": [    {      "id": "string",      "displayName": "string",      "mark": {        "pattern": "tide",        "family": "green"      },      "description": "string",      "status": "observed",      "tags": [        "string"      ],      "observedKeys": [        "string"      ],      "runs": 0,      "toolCalls": 0,      "generations": 0,      "runsInWindow": 0,      "anomaliesInWindow": 0,      "anomalyCounts": {        "total": 0,        "wholeRun": 0,        "singleEvent": 0,        "both": 0      },      "topScore": 0,      "costInWindow": 0,      "dailyRuns": [        0      ],      "deploy": {        "version": "string",        "commit": "string",        "deployedAt": "string"      },      "success": {        "succeeded": 0,        "decided": 0      },      "runtime": "string",      "installation": {        "framework": {          "name": "string",          "version": "string"        },        "source": "string"      },      "mergedInto": "string",      "firstSeen": "string",      "lastSeen": "string",      "access": {        "repoUrl": "string",        "createdAt": "string",        "createdBy": "string",        "owners": [          {            "id": "string",            "name": "string",            "email": "string"          }        ],        "liveTokens": 0,        "grantCounts": {          "read": 0,          "write": 0,          "destructive": 0        },        "destructiveAllowed": 0,        "openSuggestions": 0,        "reach": {          "internal": 0,          "external": 0        },        "servers": [          {            "id": "string",            "slug": "string",            "name": "string",            "kind": "internal",            "icon": "string"          }        ],        "toolNames": [          "string"        ],        "grantsUsed": 0      }    }  ],  "unattributed": {    "id": "string",    "displayName": "string",    "mark": {      "pattern": "tide",      "family": "green"    },    "description": "string",    "status": "observed",    "tags": [      "string"    ],    "observedKeys": [      "string"    ],    "runs": 0,    "toolCalls": 0,    "generations": 0,    "runsInWindow": 0,    "anomaliesInWindow": 0,    "anomalyCounts": {      "total": 0,      "wholeRun": 0,      "singleEvent": 0,      "both": 0    },    "topScore": 0,    "costInWindow": 0,    "dailyRuns": [      0    ],    "deploy": {      "version": "string",      "commit": "string",      "deployedAt": "string"    },    "success": {      "succeeded": 0,      "decided": 0    },    "runtime": "string",    "installation": {      "framework": {        "name": "string",        "version": "string"      },      "source": "string"    },    "mergedInto": "string",    "firstSeen": "string",    "lastSeen": "string",    "access": {      "repoUrl": "string",      "createdAt": "string",      "createdBy": "string",      "owners": [        {          "id": "string",          "name": "string",          "email": "string"        }      ],      "liveTokens": 0,      "grantCounts": {        "read": 0,        "write": 0,        "destructive": 0      },      "destructiveAllowed": 0,      "openSuggestions": 0,      "reach": {        "internal": 0,        "external": 0      },      "servers": [        {          "id": "string",          "slug": "string",          "name": "string",          "kind": "internal",          "icon": "string"        }      ],      "toolNames": [        "string"      ],      "grantsUsed": 0    }  },  "source": {    "source": "trace_name",    "sourceKey": "string",    "generation": 0,    "confirmedAt": "string"  },  "windowFrom": "string",  "windowTo": "string",  "newestEnd": "string"}
GET
/api/agents/source

Any access token can call this, read-only or full.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Response Body

The rule

application/json
  1. response
source*string
Value in"trace_name""metadata""none"
sourceKey*string|null
generation*number
confirmedAt*string|null
Example Request
curl -X GET 'https://api.amiril.ai/api/agents/source'
Example Response200
{  "source": "trace_name",  "sourceKey": "string",  "generation": 0,  "confirmedAt": "string"}
PUT
/api/agents/source

The rule is this environment's. Changing it re-extracts this environment (reprojection) under a new generation of names; other environments keep their rule.

Needs a full access token. A read-only token is refused.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Request Body

application/json
  1. body
source*string
Value in"trace_name""metadata""none"
sourceKey?string
Lengthlength <= 200

Response Body

The confirmed rule

application/json
  1. response
source*string
Value in"trace_name""metadata""none"
sourceKey*string|null
generation*number
confirmedAt*string|null
Example Request
curl -X PUT 'https://api.amiril.ai/api/agents/source' \  -H 'Content-Type: application/json' \  -d '{  "source": "trace_name"}'
Example Response
{  "source": "trace_name",  "sourceKey": "string",  "generation": 0,  "confirmedAt": "string"}

Agent detail

GET
/api/agents/{agentId}

Folded stats, per-name breakdown, daily activity and the agent's tools. An id that is an agent of another environment answers 404 with that environment in the body. With access:read, the agent carries its access section (owners, repository, live gateway tokens, granted tools, review flags).

Any access token can call this, read-only or full.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

agentId*string
Length1 <= length

Response Body

Agent detail

application/json
  1. response
redirectTo*string|null
agent*|null
keys*array<>
activity*array<>
tools*array<>
Example Request
curl -X GET 'https://api.amiril.ai/api/agents/string'
Example Response
{  "redirectTo": "string",  "agent": {    "id": "string",    "displayName": "string",    "mark": {      "pattern": "tide",      "family": "green"    },    "description": "string",    "status": "observed",    "tags": [      "string"    ],    "observedKeys": [      "string"    ],    "runs": 0,    "toolCalls": 0,    "generations": 0,    "runsInWindow": 0,    "anomaliesInWindow": 0,    "anomalyCounts": {      "total": 0,      "wholeRun": 0,      "singleEvent": 0,      "both": 0    },    "topScore": 0,    "costInWindow": 0,    "dailyRuns": [      0    ],    "deploy": {      "version": "string",      "commit": "string",      "deployedAt": "string"    },    "success": {      "succeeded": 0,      "decided": 0    },    "runtime": "string",    "installation": {      "framework": {        "name": "string",        "version": "string"      },      "source": "string"    },    "mergedInto": "string",    "firstSeen": "string",    "lastSeen": "string",    "access": {      "repoUrl": "string",      "createdAt": "string",      "createdBy": "string",      "owners": [        {          "id": "string",          "name": "string",          "email": "string"        }      ],      "liveTokens": 0,      "grantCounts": {        "read": 0,        "write": 0,        "destructive": 0      },      "destructiveAllowed": 0,      "openSuggestions": 0,      "reach": {        "internal": 0,        "external": 0      },      "servers": [        {          "id": "string",          "slug": "string",          "name": "string",          "kind": "internal",          "icon": "string"        }      ],      "toolNames": [        "string"      ],      "grantsUsed": 0    }  },  "keys": [    {      "observedKey": "string",      "versionLabel": "string",      "sources": [        "traces"      ],      "runs": 0,      "toolCalls": 0,      "generations": 0,      "firstSeen": "string",      "lastSeen": "string"    }  ],  "activity": [    {      "date": "string",      "runs": 0,      "toolCalls": 0,      "generations": 0    }  ],  "tools": [    {      "tool": "string",      "calls": 0,      "runs": 0,      "firstSeen": "string",      "lastSeen": "string"    }  ]}
PATCH
/api/agents/{agentId}

Naming an unregistered agent registers it; clearing the name of a registered one unregisters it, which an agent with owners, grants or gateway tokens refuses.

Needs a full access token. A read-only token is refused.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

agentId*string
Length1 <= length

Request Body

application/json
  1. body
displayName?|null
description?|null
tags?array<>
Itemsitems <= 20
mark?|null
repoUrl?|null
runtime?|null

Response Body

Updated agent

application/json
  1. response
id?string|null
displayName?string|null
mark?|null
description?string|null
status?string
Value in"observed""named""archived"
tags?array<string>
observedKeys?array<string>
runs?number
toolCalls?number
generations?number
runsInWindow?number
anomaliesInWindow?number
anomalyCounts?
topScore?number
costInWindow?number|null
dailyRuns?array<number>
deploy?|null
success?|null
runtime?string|null
installation?|null
mergedInto?string|null
firstSeen?string|null
lastSeen?string|null
access?|null
Example Request
curl -X PATCH 'https://api.amiril.ai/api/agents/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "displayName": "string",  "mark": {    "pattern": "tide",    "family": "green"  },  "description": "string",  "status": "observed",  "tags": [    "string"  ],  "observedKeys": [    "string"  ],  "runs": 0,  "toolCalls": 0,  "generations": 0,  "runsInWindow": 0,  "anomaliesInWindow": 0,  "anomalyCounts": {    "total": 0,    "wholeRun": 0,    "singleEvent": 0,    "both": 0  },  "topScore": 0,  "costInWindow": 0,  "dailyRuns": [    0  ],  "deploy": {    "version": "string",    "commit": "string",    "deployedAt": "string"  },  "success": {    "succeeded": 0,    "decided": 0  },  "runtime": "string",  "installation": {    "framework": {      "name": "string",      "version": "string"    },    "source": "string"  },  "mergedInto": "string",  "firstSeen": "string",  "lastSeen": "string",  "access": {    "repoUrl": "string",    "createdAt": "string",    "createdBy": "string",    "owners": [      {        "id": "string",        "name": "string",        "email": "string"      }    ],    "liveTokens": 0,    "grantCounts": {      "read": 0,      "write": 0,      "destructive": 0    },    "destructiveAllowed": 0,    "openSuggestions": 0,    "reach": {      "internal": 0,      "external": 0    },    "servers": [      {        "id": "string",        "slug": "string",        "name": "string",        "kind": "internal",        "icon": "string"      }    ],    "toolNames": [      "string"    ],    "grantsUsed": 0  }}
GET
/api/agents/{agentId}/matches

Where switching environment on this agent's page lands, for each other live environment that has a match: the registered agent there with the same display name, otherwise the agent there that has one of this agent's names. Archived agents never match. Each environment is read on its own, and only ids are returned.

Any access token can call this, read-only or full.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

agentId*string
Length1 <= length

Response Body

One entry per environment with a match

application/json
  1. response
matches*array<>
Example Request
curl -X GET 'https://api.amiril.ai/api/agents/string/matches'
Example Response
{  "matches": [    {      "environment": {        "id": "string",        "name": "string"      },      "agentId": "string"    }  ]}

Agent behavior profile

GET
/api/agents/{agentId}/behavior

Windowed per-tool input profiles and run-shape distributions, anchored at the agent's latest event. The Unattributed bucket pools unknown actors and has no baseline, so it is refused here.

Any access token can call this, read-only or full.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

agentId*string
Length1 <= length

Query Parameters

days?integer
Range1 <= value <= 365
Default30

Response Body

Behavior profile

application/json
  1. response
windowDays*number
from*string
to*string
tools*array<>
runShape*|null
Example Request
curl -X GET 'https://api.amiril.ai/api/agents/string/behavior'
Example Response
{  "windowDays": 0,  "from": "string",  "to": "string",  "tools": [    {      "tool": "string",      "windowCalls": 0,      "sampledCalls": 0,      "thin": true,      "fields": [        {          "name": "string",          "kind": "number",          "coverage": 0,          "distinct": 0,          "numeric": {            "min": 0,            "max": 0,            "p50": 0,            "p95": 0,            "histogram": [              {                "x0": 0,                "x1": 0,                "count": 0              }            ]          },          "categories": [            {              "value": "string",              "count": 0            }          ]        }      ],      "recentCalls": [        {          "eventId": "string",          "ts": "string",          "runId": "string",          "args": {            "property1": null,            "property2": null          }        }      ],      "daily": [        {          "date": "string",          "calls": 0,          "unusual": 0        }      ]    }  ],  "runShape": {    "runs": 0,    "callsPerRun": {      "min": 0,      "p50": 0,      "p95": 0,      "max": 0,      "histogram": [        {          "x0": 0,          "x1": 0,          "count": 0        }      ]    },    "runSpanSeconds": {      "min": 0,      "p50": 0,      "p95": 0,      "max": 0,      "histogram": [        {          "x0": 0,          "x1": 0,          "count": 0        }      ]    },    "dailyCalls": {      "min": 0,      "p50": 0,      "p95": 0,      "max": 0,      "histogram": [        {          "x0": 0,          "x1": 0,          "count": 0        }      ]    }  }}
POST
/api/agents/{agentId}/merge

Its names move to the target with its owners, grants (a union per tool), gateway tokens and suggestions; tags union; this agent archives with a redirect. Access only moves onto a registered agent.

Needs a full access token. A read-only token is refused.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

agentId*string
Length1 <= length

Request Body

application/json
  1. body
into*string
Length1 <= length

Response Body

The merge target

application/json
  1. response
id*string
Example Request
curl -X POST 'https://api.amiril.ai/api/agents/string/merge' \  -H 'Content-Type: application/json' \  -d '{  "into": "string"}'
Example Response
{  "id": "string"}
POST
/api/agents/{agentId}/detach

The unmerge/split primitive. The fresh agent is unregistered; access stays with this one.

Needs a full access token. A read-only token is refused.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

agentId*string
Length1 <= length

Request Body

application/json
  1. body
observedKey*string
Length1 <= length

Response Body

The fresh agent carrying the key

application/json
  1. response
id*string
Example Request
curl -X POST 'https://api.amiril.ai/api/agents/string/detach' \  -H 'Content-Type: application/json' \  -d '{  "observedKey": "string"}'
Example Response
{  "id": "string"}
POST
/api/agents/{agentId}/archive

Archiving takes away everything the agent can reach in the same step: its grants are revoked and its gateway tokens stop working. It needs access:write besides agents:write. Unarchiving brings the agent back with neither.

Needs a full access token. A read-only token is refused.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

agentId*string
Length1 <= length

Request Body

application/json
  1. body
archived*boolean

Response Body

Updated agent

application/json
  1. response
id*string
status*string
Example Request
curl -X POST 'https://api.amiril.ai/api/agents/string/archive' \  -H 'Content-Type: application/json' \  -d '{  "archived": true}'
Example Response
{  "id": "string",  "status": "string"}

Quiet fields

GET
/api/agents/{agentId}/quiet-fields

Rarity factor kinds on this agent's names that reviewer noise verdicts have suppressed, or that a reviewer restored.

Any access token can call this, read-only or full.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

agentId*string
Length1 <= length

Response Body

Quiet fields

application/json
  1. response
fields*array<>

Suppressed or restored kinds on the agent's names

Example Request
curl -X GET 'https://api.amiril.ai/api/agents/string/quiet-fields'
Example Response
{  "fields": [    {      "kindKey": "string",      "agent": "string",      "eventType": "string",      "tool": "string",      "path": "string",      "signal": "string",      "noiseCount": -9007199254740991,      "signalCount": -9007199254740991,      "restored": true,      "noiseCeiling": 0,      "suppressed": true    }  ]}

Get an agent's access

GET
/api/agents/{agentId}/grants

Every live tool of every live server in this environment, and whether the agent is granted it.

Any access token can call this, read-only or full.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

agentId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Response Body

The environment's catalogue with the agent's grants

application/json
  1. response
agentId*string
environment*string
servers*array<>

Every live server in this environment, by name

Example Request
curl -X GET 'https://api.amiril.ai/api/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/grants'
Example Response
{  "agentId": "string",  "environment": "string",  "servers": [    {      "id": "string",      "slug": "string",      "name": "string",      "kind": "internal",      "icon": "string",      "status": "ok",      "ownerTeam": "string",      "authMethod": "none",      "connectedBy": {        "id": "string",        "name": "string",        "email": "string"      },      "tools": [        {          "id": "string",          "serverId": "string",          "upstreamName": "string",          "wireName": "string",          "title": "string",          "description": "string",          "inputSchema": null,          "outputSchema": null,          "annotations": {            "property1": null,            "property2": null          },          "access": "read",          "accessDerived": "read",          "accessOverride": "read",          "annotated": true,          "firstSeenAt": "string",          "changedAt": "string",          "removedAt": "string",          "granted": true,          "grantedAt": "string",          "grantedBy": "string",          "grantedVia": "read",          "schemaHashAtGrant": "string",          "changedSinceGrant": true        }      ]    }  ]}
GET
/api/agents/{agentId}/tokens

This environment's tokens, newest first, revoked ones included. The tokens themselves are never returned.

Any access token can call this, read-only or full.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

agentId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Response Body

The agent's tokens

application/json
  1. response
tokens*array<>
Example Request
curl -X GET 'https://api.amiril.ai/api/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/tokens'
Example Response
{  "tokens": [    {      "id": "string",      "agentId": "string",      "environment": "string",      "name": "string",      "prefix": "string",      "createdAt": "string",      "createdBy": "string",      "lastUsedAt": "string",      "revokedAt": "string",      "revokedBy": "string"    }  ]}
GET
/api/agents/{agentId}/calls

The agent's recent tools/call requests through the gateway in this environment, newest first, and its calls per tool over the last 30 days. Arguments and results are never stored.

Any access token can call this, read-only or full.

Authorization

accessToken
headerAuthorizationBearer <JWT>

An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.

Path Parameters

agentId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid

Query Parameters

cursor?string

nextCursor of the previous page

Lengthlength <= 512
limit?integer

Default 50

Range1 <= value <= 200

Response Body

A page of calls, and use per tool

application/json
  1. response
calls*array<>

Newest first

nextCursor*string|null
tools*array<>

Per tool over the last 30 days, busiest first; tools never called are absent

Example Request
curl -X GET 'https://api.amiril.ai/api/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/calls'
Example Response
{  "calls": [    {      "at": "string",      "requestId": "string",      "agentId": "string",      "tokenId": "string",      "toolId": "string",      "serverId": "string",      "wireName": "string",      "decision": "allowed",      "upstreamStatus": "ok",      "latencyMs": 0,      "upstreamMs": 0,      "requestBytes": 0,      "responseBytes": 0,      "sessionId": "string",      "subject": "string"    }  ],  "nextCursor": "string",  "tools": [    {      "toolId": "string",      "wireName": "string",      "calls": 0,      "denied": 0,      "lastUsedAt": "string"    }  ]}