Skip to main content
Glama

pylon_create_contact

Add new customer contacts to Pylon for support requests and portal access by providing email, name, and role details.

Instructions

Create a new customer contact in Pylon. Use this when adding a new customer who will submit support requests or access your customer portal.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailYesContact email address. Must be valid email format. Example: "sarah@company.com"
nameYesFull name of the contact. Example: "Sarah Johnson"
portal_roleNoRole in customer portal: "admin", "member", "viewer". Determines access level. Example: "member"

Implementation Reference

  • Handler for the 'pylon_create_contact' tool - validates arguments are provided and calls pylonClient.createContact(), returning the created contact as JSON
    case 'pylon_create_contact': {
      if (!args) throw new Error('Arguments required for creating contact');
      const contact = await pylonClient.createContact(args as any);
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(contact, null, 2),
          },
        ],
      };
    }
  • Tool registration and schema definition for 'pylon_create_contact' - defines the tool name, description, and input schema with email (required), name (required), and portal_role (optional) parameters
    {
      name: 'pylon_create_contact',
      description: 'Create a new customer contact in Pylon. Use this when adding a new customer who will submit support requests or access your customer portal.',
      inputSchema: {
        type: 'object',
        properties: {
          email: { type: 'string', description: 'Contact email address. Must be valid email format. Example: "sarah@company.com"' },
          name: { type: 'string', description: 'Full name of the contact. Example: "Sarah Johnson"' },
          portal_role: { type: 'string', description: 'Role in customer portal: "admin", "member", "viewer". Determines access level. Example: "member"' },
        },
        required: ['email', 'name'],
      },
    },
  • PylonClient method that makes the actual API POST request to /contacts endpoint to create a new contact in the Pylon API
    async createContact(contact: Omit<PylonContact, 'id'>): Promise<PylonContact> {
      const response: AxiosResponse<PylonContact> = await this.client.post('/contacts', contact);
      return response.data;
    }
  • TypeScript interface defining the PylonContact data structure with id, email, name, and optional portal_role fields
    export interface PylonContact {
      id: string;
      email: string;
      name: string;
      portal_role?: string;
    }

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/marcinwyszynski/pylon-mcp'

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