api-key-revoke
Revoke platform API keys by hash to manage access control and security in the LLM Conveyors AI agent platform.
Instructions
Revoke (delete) a platform API key by its hash.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | Yes | API key hash to revoke |
Implementation Reference
- src/tools/settings.ts:138-146 (handler)The handler implementation for the api-key-revoke tool, which calls client.settings.revokeApiKey.
async (params) => { try { await client.settings.revokeApiKey(params.hash); return { content: [{ type: "text", text: JSON.stringify({ revoked: true, hash: params.hash }) }] }; } catch (err) { const message = err instanceof Error ? err.message : String(err); return { content: [{ type: "text", text: `Error: ${message}` }], isError: true }; } }, - src/tools/settings.ts:135-137 (schema)Input schema for the api-key-revoke tool defining the hash parameter.
{ hash: z.string().describe("API key hash to revoke"), }, - src/tools/settings.ts:132-134 (registration)Registration of the api-key-revoke tool.
server.tool( "api-key-revoke", "Revoke (delete) a platform API key by its hash.",