retrieve_multiple_access_tokens
Retrieve all access tokens for the current Storyblok space via the Management API. Get a complete list of tokens without parameters.
Instructions
Retrieve all access tokens for the current Storyblok space using the Management API.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "retrieve_multiple_access_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/access-tokens.ts:17-33 (handler)The 'retrieve_multiple_access_tokens' tool handler. It calls apiGet('/api_keys/') to fetch all access tokens for the current Storyblok space, returning JSON-formatted results. Registered via server.tool() with an empty schema (no input parameters).
// Tool: retrieve_multiple_access_tokens server.tool( 'retrieve_multiple_access_tokens', 'Retrieve all access tokens for the current Storyblok space using the Management API.', {}, async () => { try { const data = await apiGet('/api_keys/'); return createJsonResponse(data); } catch (error) { if (error instanceof APIError) { return createErrorResponse(error); } throw error; } } ); - src/tools/access-tokens.ts:21-21 (schema)The input schema for 'retrieve_multiple_access_tokens' is an empty object {}, meaning the tool takes no parameters.
{}, - src/tools/access-tokens.ts:16-33 (registration)Registration of 'retrieve_multiple_access_tokens' within the registerAccessTokens function, which is exported and called from src/tools/index.ts.
export function registerAccessTokens(server: McpServer): void { // Tool: retrieve_multiple_access_tokens server.tool( 'retrieve_multiple_access_tokens', 'Retrieve all access tokens for the current Storyblok space using the Management API.', {}, async () => { try { const data = await apiGet('/api_keys/'); return createJsonResponse(data); } catch (error) { if (error instanceof APIError) { return createErrorResponse(error); } throw error; } } ); - src/tools/index.ts:12-12 (registration)Import of registerAccessTokens from the access-tokens module.
import { registerAccessTokens } from './access-tokens.js'; - src/tools/index.ts:52-52 (registration)Call to registerAccessTokens(server) to register all access token tools including retrieve_multiple_access_tokens.
registerAccessTokens(server);