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

Skip to Content
AMIRILDocs
/

Analytics

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

Environment overview

GET
/api/overview

Event counts, tool count, time span, and per-day activity.

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 environment's stats and daily activity

application/json
  1. response
stats*
activity*array<>
Example Request
curl -X GET 'https://api.amiril.ai/api/overview'
Example Response200
{  "stats": {    "runs": 0,    "toolCalls": 0,    "generations": 0,    "tools": 0,    "firstTs": "string",    "lastTs": "string"  },  "activity": [    {      "date": "string",      "runs": 0,      "toolCalls": 0,      "generations": 0    }  ]}

List tools

GET
/api/tools

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

Tools by call volume

application/json
  1. response
tools*array<>
Example Request
curl -X GET 'https://api.amiril.ai/api/tools'
Example Response200
{  "tools": [    {      "tool": "string",      "calls": 0,      "runs": 0,      "firstSeen": "string",      "lastSeen": "string"    }  ]}

Tool dossier

GET
/api/tools/{tool}

Aggregates, per-day use, argument-field distributions from a recent sample, and recent calls.

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

tool*string
Length1 <= length

Response Body

Tool detail

application/json
  1. response
tool*string
calls*number
runs*number
firstSeen*string
lastSeen*string
activity*array<>
fields*array<>
recentCalls*array<>
sampledCalls*number
Example Request
curl -X GET 'https://api.amiril.ai/api/tools/string'
Example Response
{  "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}

Tool field profile

GET
/api/tools/{tool}/profile

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.

Authorization

accessToken
headerAuthorizationBearer <JWT>

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

Path Parameters

tool*string
Length1 <= length

Response Body

Tool profile

application/json
  1. response
tool*string
args*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*number

Calls 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.

Example Request
curl -X GET 'https://api.amiril.ai/api/tools/string/profile'
Example Response200
{  "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"}