Skip to main content
Glama

volkern_create_contact

Add new contacts (people or companies) to the Volkern CRM system with details like name, email, phone, and job title.

Instructions

Create a new contact (person or company)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nombreYesContact/company name (required)
emailNoEmail address
telefonoNoPhone number
tipoNoContact type (default: person)
cargoNoJob title (for persons)
ubicacionNoLocation/address
companyIdNoID of parent company (for persons)
linkedinNoLinkedIn profile URL
notasNoNotes about the contact
tagsNoTags for categorization

Implementation Reference

  • Handler case for volkern_create_contact tool - makes a POST request to /contacts endpoint with the provided arguments
    case "volkern_create_contact":
      return volkernRequest("/contacts", "POST", args);
  • Main handleToolCall function that dispatches tool calls to their respective handlers
    async function handleToolCall(
      name: string,
      args: Record<string, unknown>
    ): Promise<unknown> {
  • Schema definition for volkern_create_contact tool - defines input parameters including nombre, email, telefono, tipo, cargo, ubicacion, companyId, linkedin, notas, and tags
    {
      name: "volkern_create_contact",
      description: "Create a new contact (person or company)",
      inputSchema: {
        type: "object",
        properties: {
          nombre: { type: "string", description: "Contact/company name (required)" },
          email: { type: "string", description: "Email address" },
          telefono: { type: "string", description: "Phone number" },
          tipo: { 
            type: "string", 
            enum: ["person", "company"],
            description: "Contact type (default: person)"
          },
          cargo: { type: "string", description: "Job title (for persons)" },
          ubicacion: { type: "string", description: "Location/address" },
          companyId: { type: "string", description: "ID of parent company (for persons)" },
          linkedin: { type: "string", description: "LinkedIn profile URL" },
          notas: { type: "string", description: "Notes about the contact" },
          tags: { type: "array", items: { type: "string" }, description: "Tags for categorization" }
        },
        required: ["nombre"]
      }
    },
  • volkernRequest helper function that makes HTTP requests to the Volkern API with authentication 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:60-61 (registration)
    Tools array declaration where all MCP tools including volkern_create_contact are registered
    const tools: Tool[] = [
      // === LEADS ===

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