Skip to main content
Glama

venice_list_api_keys

Retrieve all API keys associated with your Venice AI account to manage access and permissions for AI model interactions.

Instructions

List all API keys on the account (requires admin API key)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the tool logic: fetches API keys via veniceAPI, processes the response, handles errors, and returns a formatted text list of keys.
    async () => { const response = await veniceAPI("/api_keys"); const data = await response.json() as APIKeysResponse; if (!response.ok) return { content: [{ type: "text" as const, text: `Error: ${data.error?.message || response.statusText}` }] }; const keys = data.data || []; const list = keys.map((k) => { const created = k.createdAt || k.created_at || "?"; const name = k.name || k.description || "Unnamed"; return `- ${name} (${k.id}) - created: ${created.split("T")[0]}`; }).join("\n"); return { content: [{ type: "text" as const, text: `API Keys (${keys.length}):\n${list}` }] }; }
  • Registration of the 'venice_list_api_keys' tool on the McpServer instance within the registerAdminTools function.
    server.tool( "venice_list_api_keys", "List all API keys on the account (requires admin API key)", {}, async () => { const response = await veniceAPI("/api_keys"); const data = await response.json() as APIKeysResponse; if (!response.ok) return { content: [{ type: "text" as const, text: `Error: ${data.error?.message || response.statusText}` }] }; const keys = data.data || []; const list = keys.map((k) => { const created = k.createdAt || k.created_at || "?"; const name = k.name || k.description || "Unnamed"; return `- ${name} (${k.id}) - created: ${created.split("T")[0]}`; }).join("\n"); return { content: [{ type: "text" as const, text: `API Keys (${keys.length}):\n${list}` }] }; } );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/georgeglarson/venice-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server