Skip to main content
Glama
user-tools.ts606 B
import { type GetUserInput, getUserSchema } from "../schemas.js"; import { formatJsonResponse, withTransportClient, type ToolContext } from "./shared.js"; export const getUserTool = withTransportClient({ name: "get-user", description: "Get current user information including profile, timezone, and group details", parameters: getUserSchema, execute: async (_args: GetUserInput, context: ToolContext) => { // Client auto-injected by withTransportClient const user = await context.client.getUser(); return formatJsonResponse(user); }, }); export const userTools = [getUserTool];

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/robertn702/mcp-sunsama'

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