list_tenants
Retrieve a complete list of tenants managed on the UseGrant MCP Server to streamline provider, client, and access token administration.
Instructions
List all tenants
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:213-218 (handler)The inline handler function for the 'list_tenants' MCP tool. It calls usegrant.listTenants() from the UseGrant SDK to fetch all tenants and returns the result as a JSON-formatted text content block. This is also the registration site since the handler is inline.server.tool('list_tenants', 'List all tenants', async () => { const tenants = await usegrant.listTenants(); return { content: [{ type: 'text', text: JSON.stringify(tenants, null, 2) }], }; });