Skip to main content
Glama

get_event_detail

Retrieve detailed information about a specific event on Google Calendar by providing its unique event ID. Simplify event management with direct access to event specifics within the MCP server.

Instructions

일정 ID로 상세 정보 조회

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
event_idYes

Implementation Reference

  • The main handler function for the 'get_event_detail' tool, decorated with @mcp.tool() for registration and implementation. It fetches the detailed event information from Google Calendar API using the provided event_id.
    @mcp.tool() def get_event_detail(event_id: str) -> dict[str, Any]: """일정 ID로 상세 정보 조회""" service = get_calendar_service() event = service.events().get(calendarId='primary', eventId=event_id).execute() return event
  • Supporting utility function that handles OAuth authentication and returns the Google Calendar API service instance, essential for the tool's operation.
    def get_calendar_service(): creds = None if os.path.exists(TOKEN_FILE): with open(TOKEN_FILE, "rb") as token: creds = pickle.load(token) if not creds or not creds.valid: if creds and creds.expired and creds.refresh_token: creds.refresh(Request()) else: flow = InstalledAppFlow.from_client_secrets_file(CLIENT_SECRET_FILE, SCOPES) creds = flow.run_local_server(port=0) with open(TOKEN_FILE, "wb") as token: pickle.dump(creds, token) service = build("calendar", "v3", credentials=creds) return service

Other Tools

Related Tools

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/AnByoungHyun/google_calendar_mcp'

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