Agents
The Agents routes of Amiril's HTTP API that an OAuth access token can call, with their parameters, request bodies and responses.
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.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
agentId*string1 <= lengthThe agent's structural topics
application/json- response
layoutVersion*number|nullsuccessTools*array<string>runs*numberoutcomeRate*number|nullclusters*array<>curl -X GET 'https://api.amiril.ai/api/agents/string/clusters'{ "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 } ] } ]}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.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
agentId*string1 <= lengthrole?string"user""user""assistant"The agent's turn topics
application/json- response
role*string"user""assistant"fits*array<>noMatch*outcomeRate*number|nullclusters*array<>curl -X GET 'https://api.amiril.ai/api/agents/string/turn-clusters'{ "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" } ] } ]}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.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
agentId*string1 <= lengthThe agent's run topics
application/json- response
fits*array<>runs*numbernoMatch*numberoutcomeRate*number|nullclusters*array<>curl -X GET 'https://api.amiril.ai/api/agents/string/facet-clusters'{ "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" } ] } ]}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.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
agentId*string1 <= lengthSuccess condition
application/json- response
condition*|nullcurl -X GET 'https://api.amiril.ai/api/agents/string/success-condition'{ "condition": { "text": "string", "version": 0, "computing": true, "decided": 0, "updatedBy": "string", "updatedAt": "string" }}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.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
agentId*string1 <= lengthSuccess tools
application/json- response
tools*array<>items <= 100curl -X GET 'https://api.amiril.ai/api/agents/string/success-tools'{ "tools": [ "string" ]}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.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
window?string"30d""1h""6h""24h""7d""30d""90d""custom"from?stringto?stringFleet list
application/json- response
agents*array<>archived*array<>unattributed*|nullsource*windowFrom*string|nullwindowTo*string|nullnewestEnd*string|nullcurl -X GET 'https://api.amiril.ai/api/agents'{ "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"}Any access token can call this, read-only or full.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
The rule
application/json- response
source*string"trace_name""metadata""none"sourceKey*string|nullgeneration*numberconfirmedAt*string|nullcurl -X GET 'https://api.amiril.ai/api/agents/source'{ "source": "trace_name", "sourceKey": "string", "generation": 0, "confirmedAt": "string"}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.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
application/json- body
source*string"trace_name""metadata""none"sourceKey?stringlength <= 200The confirmed rule
application/json- response
source*string"trace_name""metadata""none"sourceKey*string|nullgeneration*numberconfirmedAt*string|nullcurl -X PUT 'https://api.amiril.ai/api/agents/source' \ -H 'Content-Type: application/json' \ -d '{ "source": "trace_name"}'{ "source": "trace_name", "sourceKey": "string", "generation": 0, "confirmedAt": "string"}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.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
agentId*string1 <= lengthAgent detail
application/json- response
redirectTo*string|nullagent*|nullkeys*array<>activity*array<>tools*array<>curl -X GET 'https://api.amiril.ai/api/agents/string'{ "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" } ]}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.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
agentId*string1 <= lengthapplication/json- body
displayName?|nulldescription?|nulltags?array<>items <= 20mark?|nullrepoUrl?|nullruntime?|nullUpdated agent
application/json- response
id?string|nulldisplayName?string|nullmark?|nulldescription?string|nullstatus?string"observed""named""archived"tags?array<string>observedKeys?array<string>runs?numbertoolCalls?numbergenerations?numberrunsInWindow?numberanomaliesInWindow?numberanomalyCounts?topScore?numbercostInWindow?number|nulldailyRuns?array<number>deploy?|nullsuccess?|nullruntime?string|nullinstallation?|nullmergedInto?string|nullfirstSeen?string|nulllastSeen?string|nullaccess?|nullcurl -X PATCH 'https://api.amiril.ai/api/agents/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "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 }}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.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
agentId*string1 <= lengthOne entry per environment with a match
application/json- response
matches*array<>curl -X GET 'https://api.amiril.ai/api/agents/string/matches'{ "matches": [ { "environment": { "id": "string", "name": "string" }, "agentId": "string" } ]}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.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
agentId*string1 <= lengthdays?integer1 <= value <= 36530Behavior profile
application/json- response
windowDays*numberfrom*stringto*stringtools*array<>runShape*|nullcurl -X GET 'https://api.amiril.ai/api/agents/string/behavior'{ "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 } ] } }}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.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
agentId*string1 <= lengthapplication/json- body
into*string1 <= lengthThe merge target
application/json- response
id*stringcurl -X POST 'https://api.amiril.ai/api/agents/string/merge' \ -H 'Content-Type: application/json' \ -d '{ "into": "string"}'{ "id": "string"}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.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
agentId*string1 <= lengthapplication/json- body
observedKey*string1 <= lengthThe fresh agent carrying the key
application/json- response
id*stringcurl -X POST 'https://api.amiril.ai/api/agents/string/detach' \ -H 'Content-Type: application/json' \ -d '{ "observedKey": "string"}'{ "id": "string"}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.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
agentId*string1 <= lengthapplication/json- body
archived*booleanUpdated agent
application/json- response
id*stringstatus*stringcurl -X POST 'https://api.amiril.ai/api/agents/string/archive' \ -H 'Content-Type: application/json' \ -d '{ "archived": true}'{ "id": "string", "status": "string"}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.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
agentId*string1 <= lengthQuiet fields
application/json- response
fields*array<>Suppressed or restored kinds on the agent's names
curl -X GET 'https://api.amiril.ai/api/agents/string/quiet-fields'{ "fields": [ { "kindKey": "string", "agent": "string", "eventType": "string", "tool": "string", "path": "string", "signal": "string", "noiseCount": -9007199254740991, "signalCount": -9007199254740991, "restored": true, "noiseCeiling": 0, "suppressed": true } ]}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.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
agentId*string^([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)$uuidThe environment's catalogue with the agent's grants
application/json- response
agentId*stringenvironment*stringservers*array<>Every live server in this environment, by name
curl -X GET 'https://api.amiril.ai/api/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/grants'{ "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 } ] } ]}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.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
agentId*string^([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)$uuidThe agent's tokens
application/json- response
tokens*array<>curl -X GET 'https://api.amiril.ai/api/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/tokens'{ "tokens": [ { "id": "string", "agentId": "string", "environment": "string", "name": "string", "prefix": "string", "createdAt": "string", "createdBy": "string", "lastUsedAt": "string", "revokedAt": "string", "revokedBy": "string" } ]}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.
accessTokenAuthorizationBearer <JWT>An OAuth access token from Amiril's authorization server, the kind an MCP client gets when it connects.
agentId*string^([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)$uuidcursor?stringnextCursor of the previous page
length <= 512limit?integerDefault 50
1 <= value <= 200A page of calls, and use per tool
application/json- response
calls*array<>Newest first
nextCursor*string|nulltools*array<>Per tool over the last 30 days, busiest first; tools never called are absent
curl -X GET 'https://api.amiril.ai/api/agents/497f6eca-6276-4993-bfeb-53cbbbba6f08/calls'{ "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" } ]}