Skip to main content
Glama
getWorkbook.test.ts719 B
import { workbookSchema } from '../../../src/sdks/tableau/types/workbook.js'; import { getDefaultEnv, getSuperstoreWorkbook, resetEnv, setEnv } from '../../testEnv.js'; import { callTool } from '../client.js'; describe('get-workbook', () => { beforeAll(setEnv); afterAll(resetEnv); it('should get workbook', async () => { const env = getDefaultEnv(); const superstore = getSuperstoreWorkbook(env); const workbook = await callTool('get-workbook', { env, schema: workbookSchema, toolArgs: { workbookId: superstore.id }, }); expect(workbook).toMatchObject({ id: superstore.id, name: 'Superstore', defaultViewId: superstore.defaultViewId, }); }); });

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/datalabs89/tableau-mcp'

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