Agent access
/ade/dashboard/mcp/agents
Agent access turns a published version of your API into MCP tools an AI agent can call — only the operations you choose, with keys you issue. Go to MCP servers → Agent access. It has three tabs: Toolsets, Agent keys and Usage. You need permission to manage API keys.
Enable agent access
- Click “Enable Agent Access”.
- Choose the Published version to expose, and where Calls go to: Production or Mock.
- Confirm. Apiome creates a toolset: one tool per operation. Read operations are exposed right away; write operations stay off until you switch each one on and confirm Let agents call a write operation?


/ade/dashboard/mcp/agentsCreate an agent key
- On the toolset, click “Create agent key” (or Agent keys → Create agent key).
- Enter a Name (for example
claude-desktop) and a Description, choose the Toolset, tick the Tools this key may call, and set Expires in (days) — expiry cannot change later. - Copy the key from Agent key created — it is shown only once — and click “I've saved my key”.
The agent connects to Apiome's MCP endpoint with that key; see Connect an MCP host.


/ade/dashboard/mcp/agentsShow revoked keys includes revoked ones; Revoke key stops a key at once.
Save enrichment as an overlay
Accepted description enrichment reaches agents, and it can reach your exports too. On the toolset, click “Save as overlay”, pick the Draft revision of the same project, and click “Save as overlay”. Apiome turns every accepted tool and parameter description into one action of an OpenAPI Overlay and adds it to that revision's chain as Agent enrichment. When the revision is exported or published, its descriptions are the accepted ones. The proposals themselves are not changed.
The toolset's own version is published, so its chain is read-only: the overlay goes to a draft.
Operations an OpenAPI overlay cannot address (for example GraphQL fields) are left out and counted.
With the API: GET /v1/tenants/{tenant}/agent-toolsets/{toolset}/enrichment/overlay returns the
overlay; POST it to the draft's …/overlays with "source": "enrichment-export".
Usage
Usage shows calls, error rate, latency and active agents over 7 days, 30 days or 90 days, with charts per day, per tool and per agent.


/ade/dashboard/mcp/agentsBody samples
To debug an agent's calls you can keep the bodies of a share of a toolset's tools/call
invocations for a short time. This is off by default and uses the same control as a usage source's
body samples:
- Open the toolset version's project, go to Consumers and click Usage data.
- Under Agent toolsets, find the version and click Sample bodies….
- Enter the Rate (%) (up to 100) and Stop after (days) (at most 7).
- Tick I understand that sampled request and response bodies are stored, after redaction, for up to 7 days., then click Start sampling.
Stop sampling ends it at once. Kept bodies are capped at 16 KiB each and deleted after 7 days.
Changing the window takes permission to edit API keys and is recorded in the access audit as
agent.toolset.body_samples.update. With the API:
PATCH /v1/tenants/{tenant}/agent-toolsets/{toolset}/body-samples with
{"rate": 0.1, "until": "…", "acknowledgement": "…"}, or {"rate": 0} to stop.
Export server.json
Hosts, gateways and registries pass MCP servers around as a registry server.json document. Apiome
describes its agent runtime in that shape, so you can hand a toolset to any of them, or commit the
file and diff it in CI. There are two exports:
- One toolset: one server named
apiome.<tenant>/agent-toolset-<toolset id>, with that toolset's tools. - Tenant-wide: one server named
apiome.<tenant>/agent-runtime, listing every enabled toolset. The agent key decides which toolset an agent gets.
From the CLI (it uses your workspace API key):
apiome mcp server-json export --toolset <toolset id> # one toolset, to stdout
apiome mcp server-json export --tenant-wide --out server.json # every enabled toolset, to a file
Pass exactly one of --toolset or --tenant-wide. The output always comes out byte for byte the
same: keys sorted, two-space indent and one trailing newline. It only changes when the toolset
does.
Each document holds:
| Field | What it is |
|---|---|
remotes | One streamable-http remote: the agent runtime's public /agent/mcp URL |
version | The published version label (1.0.0). Tenant-wide: 1.0.0+<first 12 characters of the digest> |
_meta["dev.apiome/agent-runtime"].auth | How to sign in: oauth with the runtime's protectedResourceMetadata URL when OAuth is set up, otherwise agent-key — send Authorization: Bearer <agent key>, which the remote also lists as a secret header |
_meta["dev.apiome/agent-runtime"].digest | A fingerprint of the tools agents are served. It changes when you switch a tool on or off or an accepted description is served, and at no other time |
_meta["dev.apiome/agent-runtime"].manifest | One toolset only: the toolset's MCP manifest — the same tools as Compile returns |
_meta["dev.apiome/agent-runtime"].toolsets | Tenant-wide only: each toolset's server name, version, tool names and digest. A toolset that cannot be built is listed under unavailable instead |
The document never holds a key: the header value is the placeholder Bearer {agent_key}.
Import it back the same way as any MCP server manifest (MCP servers → Import, or
POST /v1/mcp/{tenant}/manifests). A one-toolset export gives a catalog entry with the same tools,
and its manifest digest matches the export's digest. The tenant-wide export holds no tools of its
own, so it cannot be imported.
Your tenant's MCP registry endpoint also lists the tenant-wide entry, but only to callers who sign in with one of the tenant's credentials.
Export the invocation audit
Every tools/call an agent key makes leaves one invocation audit row: which key called which
tool, when, how fast, the outcome, the upstream HTTP status, a reason code and the request and
response sizes. It never holds a body, a header or an argument value. To load these rows into a
SIEM (Splunk, Elastic, Datadog, Sentinel…), export them one UTC day at a time, as JSON
Lines (one object per line) or CSV (a header line first).
From the CLI (it uses your workspace API key):
apiome mcp agent-invocations export --day 2026-11-14 # JSON Lines, to stdout
apiome mcp agent-invocations export --day 2026-11-14 --format csv --out day.csv
apiome mcp agent-invocations export --day 2026-11-14 | jq -c 'select(.outcome != "success")'
With the API: GET /v1/tenants/{tenant}/agent-invocations/export?day=2026-11-14&format=jsonl
(or format=csv). You need permission to view API keys.
Which days you can export
- Finalized days only. About six hours after a UTC day ends, the usage sweep closes it, and the
Usage charts count exactly the rows the export holds. Before that, including today, the export
is refused with
409 agent-invocations-day-not-final, and the response'sfinalizesAftersays when it can be exported. - Days inside your plan's retention. Raw invocation rows are kept for 7 days on Free, 30 on Paid
and 90 on Sponsor. An older day may already be partly deleted, so it is refused with
410 agent-invocations-day-past-retention. The response givesretentionDaysandoldestExportableDay. Run the export daily to keep a full history.
What each row holds
Each row has every stored column, as stored and in table order, followed by two more:
| Column | What it is |
|---|---|
id, tenant_id, key_id, toolset_id | The row, workspace, agent key and toolset ids |
tool_name, target | The tool called, and whether calls went to prod or mock |
invoked_at, invoked_day | When the call started (UTC), and the UTC day it counts on |
latency_ms, outcome, error_code, http_status | How long it took, success / upstream_error / validation_failure / quota_rejected / internal_error, the reason code of a failure, and the upstream status when it answered |
request_bytes, response_bytes, sampled | Sizes, and whether a body sample was kept (the sample itself is never exported) |
key_name | The agent key's name, or empty once the key is deleted |
key_fingerprint | sha256: and 32 hex digits computed from the key's id. It is the same in every export, so your SIEM can group one key's calls. It is never derived from the key secret |
The key secret and its stored hash never appear in an export. Rows are ordered by invoked_at.
In CSV, a text cell that a spreadsheet would run as a formula (one starting with =, +, - or
@) starts with '; JSON Lines hold the values unchanged.
Columns added to the audit later appear in the export automatically, so read the CSV header or
JSON keys rather than relying on positions.
Every export is recorded in the access audit as
agent.invocations.export, with the day and format.
:::note Streaming to a SIEM
Sending invocation rows to a SIEM as they happen, over Apiome's signed audit stream, will come with audit streaming (EID-3.4). Until then, schedule the daily export.
:::
With the API
GET / POST /v1/tenants/{tenant}/agent-toolsets, GET …/agent-toolsets/{toolset}/tools,
GET / POST /v1/tenants/{tenant}/agent-keys, GET /v1/tenants/{tenant}/agent-usage,
GET …/agent-toolsets/{toolset}/server.json, GET /v1/tenants/{tenant}/agent-access/server.json
and GET /v1/tenants/{tenant}/agent-invocations/export (these three need permission to view API
keys) and
PATCH …/agent-toolsets/{toolset}/body-samples (permission to edit API keys) — see the API reference.