Analytics
The Analytics routes of Amiril's HTTP API that an OAuth access token can call, with their parameters, request bodies and responses.
Event counts, tool count, time span, and per-day activity.
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 environment's stats and daily activity
application/json- response
stats*activity*array<>curl -X GET 'https://api.amiril.ai/api/overview'{ "stats": { "runs": 0, "toolCalls": 0, "generations": 0, "tools": 0, "firstTs": "string", "lastTs": "string" }, "activity": [ { "date": "string", "runs": 0, "toolCalls": 0, "generations": 0 } ]}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.
Tools by call volume
application/json- response
tools*array<>curl -X GET 'https://api.amiril.ai/api/tools'{ "tools": [ { "tool": "string", "calls": 0, "runs": 0, "firstSeen": "string", "lastSeen": "string" } ]}Aggregates, per-day use, argument-field distributions from a recent sample, and recent calls.
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.
tool*string1 <= lengthTool detail
application/json- response
tool*stringcalls*numberruns*numberfirstSeen*stringlastSeen*stringactivity*array<>fields*array<>recentCalls*array<>sampledCalls*numbercurl -X GET 'https://api.amiril.ai/api/tools/string'{ "tool": "string", "calls": 0, "runs": 0, "firstSeen": "string", "lastSeen": "string", "activity": [ { "date": "string", "calls": 0, "unusual": 0 } ], "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 } } ], "sampledCalls": 0}The tool's argument and result fields as a path tree: argument statistics from a recent sample (as in the tool dossier), merged with the argument JSON Schema the most recently seen installation reported for the tool. A tool with no calls and no reported schema returns an empty profile.
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.
tool*string1 <= lengthTool profile
application/json- response
tool*stringargs*array<>Top-level argument fields observed in recent calls, merged with the declared schema's fields to any depth.
result*array<>Top-level result keys with scalar values in recent calls.
sampled*numberCalls the observed statistics come from; 0 for a tool with no calls.
declaredFrom*|The installation whose reported argument schema supplied declared; null when none reported one.
curl -X GET 'https://api.amiril.ai/api/tools/string/profile'{ "tool": "string", "args": [ { "path": "string", "kind": "number", "declared": { "type": "string", "required": true }, "coverage": 0, "distinct": 0, "numeric": { "min": 0, "max": 0, "p50": 0, "p95": 0 }, "categories": [ { "value": "string", "count": 0 } ], "children": [ {} ] } ], "result": [ { "path": "string", "kind": "number", "declared": { "type": "string", "required": true }, "coverage": 0, "distinct": 0, "numeric": { "min": 0, "max": 0, "p50": 0, "p95": 0 }, "categories": [ { "value": "string", "count": 0 } ], "children": [ {} ] } ], "sampled": 0, "declaredFrom": "string"}