Skip to main content
Glama

volkern_check_disponibilidad

Check available time slots for a specific date to schedule appointments. Use this tool before booking to verify availability based on duration requirements.

Instructions

Check available time slots for a specific date. Always call this before booking.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fechaYesDate in YYYY-MM-DD format
duracionNoDuration in minutes (default: 60)

Implementation Reference

  • Handler for volkern_check_disponibilidad tool - constructs query parameters (fecha and optional duracion) and calls the Volkern API endpoint /citas/disponibilidad
    case "volkern_check_disponibilidad": {
      const params = new URLSearchParams();
      params.append("fecha", String(args.fecha));
      if (args.duracion) params.append("duracion", String(args.duracion));
      return volkernRequest(`/citas/disponibilidad?${params.toString()}`);
    }
  • Tool schema definition for volkern_check_disponibilidad - defines input parameters: fecha (required date string in YYYY-MM-DD format) and duracion (optional duration in minutes)
    {
      name: "volkern_check_disponibilidad",
      description: "Check available time slots for a specific date. Always call this before booking.",
      inputSchema: {
        type: "object",
        properties: {
          fecha: { type: "string", description: "Date in YYYY-MM-DD format" },
          duracion: { type: "number", description: "Duration in minutes (default: 60)" }
        },
        required: ["fecha"]
      }
    },
  • Helper function that makes HTTP requests to the Volkern API - handles authentication with Bearer token, JSON serialization, and error handling
    async function volkernRequest(
      endpoint: string,
      method: string = "GET",
      body?: Record<string, unknown>
    ): Promise<unknown> {
      const url = `${VOLKERN_API_URL}${endpoint}`;
      
      const options: RequestInit = {
        method,
        headers: {
          "Authorization": `Bearer ${VOLKERN_API_KEY}`,
          "Content-Type": "application/json",
        },
      };
    
      if (body && method !== "GET") {
        options.body = JSON.stringify(body);
      }
    
      const response = await fetch(url, options);
      
      if (!response.ok) {
        const errorData = await response.json().catch(() => ({}));
        throw new Error(
          `Volkern API Error (${response.status}): ${JSON.stringify(errorData)}`
        );
      }
    
      return response.json();
    }
  • src/index.ts:961-986 (registration)
    MCP server request handler registration for CallToolRequestSchema - dispatches tool calls to handleToolCall function and formats responses
    server.setRequestHandler(CallToolRequestSchema, async (request) => {
      const { name, arguments: args } = request.params;
    
      try {
        const result = await handleToolCall(name, args as Record<string, unknown>);
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(result, null, 2),
            },
          ],
        };
      } catch (error) {
        const errorMessage = error instanceof Error ? error.message : String(error);
        return {
          content: [
            {
              type: "text",
              text: `Error: ${errorMessage}`,
            },
          ],
          isError: true,
        };
      }
    });

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/DeXpertmx/mcp-volkern'

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