Skip to main content
Glama
getmasv

masv

Official

create_portal

Create a portal for collecting files from external users with customizable access, branding, and security settings. Configure access codes, download passwords, file type restrictions, and more. Only name and subdomain are required.

Instructions

Create a new portal for collecting files from external users. Portals can be configured with access codes, download passwords, file type restrictions, custom branding, connected integrations, and more. Only 'name' and 'subdomain' are required - all other settings are optional.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesPortal name
subdomainYesPortal subdomain (3-53 characters)
access_levelNoPortal access level: 'regular' for public access, 'private' for restricted access
access_listNoArray of membership IDs for users with direct access to private portal. Use get_team_members to retrieve membership IDs
has_access_codeNoWhether portal requires an access code to upload (if true, you also need to specify access_code parameter)
access_codeNoAccess code for portal (required if has_access_code is true)
has_download_passwordNoWhether portal packages require password to download (if true, you also need to specify download_password parameter)
download_passwordNoDownload password (required if has_download_password is true)
messageNoWelcome message displayed on portal
disable_upload_receiptNoDisable email receipt to uploader
activeNoWhether portal is active and accepting uploads
recipientsNoEmail addresses that receive notifications for portal uploads
cc_recipientsNoEmail addresses that receive carbon copy notifications without download link
primary_colorNoPrimary color for portal branding (hex color code)
background_urlNoURL of background image for portal
logo_urlNoURL of logo image for portal
teamspace_idNoID of teamspace to associate portal with
custom_expiry_daysNoCustom expiry days for packages (-1 for unlimited)
expiryNoPortal expiry date (ISO 8601 format). This parameter is required when expiry_enabled: true
expiry_enabledNoWhether portal expiry is enabled. If set to true, need to also provide expiry parameter, e.g. expiry: '2027-01-01'
file_type_restriction_enabledNoWhether file type restrictions are enabled
file_type_restriction_excludeNoWhether to exclude (true) or include (false) specified file types
file_typesNoAllowed/excluded file extensions prefixed with dots (e.g., ['.mp4', '.mov'])
max_file_countNoMaximum number of files per upload (0 for unlimited). Only works when package_size_restriction_enabled: true
max_file_sizeNoMaximum file size in bytes (0 for unlimited). Only works when package_size_restriction_enabled: true
max_package_sizeNoMaximum package size in bytes (0 for unlimited). Only works when package_size_restriction_enabled: true
package_size_restriction_enabledNoWhether package size restrictions are enabled. Set to true in order to set max_file_count, max_file_size or max_package_size
user_authentication_requiredNoWhether to restrict Portal upload to only team users with proper access. Users must authenticate to upload
download_user_authentication_requiredNoWhether users must authenticate to download
package_name_format_enabledNoWhether custom package naming format is enabled
package_name_formatNoCustom package naming format configuration (required when package_name_format_enabled is true)
terms_of_service_enabledNoWhether terms of service acceptance is required to upload to the portal
terms_of_serviceNoTerms of service configuration (required when terms_of_service_enabled is true)

Implementation Reference

  • The actual handler function that creates a portal by sending a POST request to the MASV API /v1/teams/{teamId}/portals endpoint.
    async function createPortal(params: CreatePortalParams) {
        const url = new URL(`${MASV_BASE_URL}/v1/teams/${MASV_TEAM_ID}/portals`);
    
        const headers = {
            "content-type": "application/json",
            "x-api-key": MASV_API_KEY,
        };
    
        const r = await fetch(url.toString(), {
            method: "POST",
            headers,
            body: JSON.stringify(params),
        });
    
        const data = await r.json();
        return data;
    }
  • Zod schema defining all input parameters for create_portal, including name, subdomain, access settings, branding, expiry, file restrictions, and terms of service.
    const CreatePortalSchema = z.object({
        name: z.string().max(255).describe("Portal name"),
        subdomain: z.string().min(3).max(53).describe("Portal subdomain (3-53 characters)"),
        access_level: z
            .enum(["regular", "private"])
            .describe("Portal access level: 'regular' for public access, 'private' for restricted access")
            .optional(),
        access_list: z.array(z.string()).describe("Array of membership IDs for users with direct access to private portal. Use get_team_members to retrieve membership IDs").optional(),
        has_access_code: z.boolean().describe("Whether portal requires an access code to upload (if true, you also need to specify access_code parameter)").optional(),
        access_code: z.string().max(72).describe("Access code for portal (required if has_access_code is true)").optional(),
        has_download_password: z.boolean().describe("Whether portal packages require password to download (if true, you also need to specify download_password parameter)").optional(),
        download_password: z.string().max(72).describe("Download password (required if has_download_password is true)").optional(),
        message: z.string().describe("Welcome message displayed on portal").optional(),
        disable_upload_receipt: z.boolean().describe("Disable email receipt to uploader").optional(),
        active: z.boolean().describe("Whether portal is active and accepting uploads").optional(),
        recipients: z.array(z.email()).describe("Email addresses that receive notifications for portal uploads").optional(),
        cc_recipients: z.array(z.email()).describe("Email addresses that receive carbon copy notifications without download link").optional(),
        primary_color: z.string().max(255).describe("Primary color for portal branding (hex color code)").optional(),
        background_url: z.string().describe("URL of background image for portal").optional(),
        logo_url: z.string().describe("URL of logo image for portal").optional(),
        teamspace_id: z.string().describe("ID of teamspace to associate portal with").optional(),
        custom_expiry_days: z.number().int().min(-1).max(65535).describe("Custom expiry days for packages (-1 for unlimited)").optional(),
        expiry: z.string().describe("Portal expiry date (ISO 8601 format). This parameter is required when expiry_enabled: true").optional(),
        expiry_enabled: z.boolean().describe("Whether portal expiry is enabled. If set to true, need to also provide expiry parameter, e.g. expiry: '2027-01-01'").optional(),
        file_type_restriction_enabled: z.boolean().describe("Whether file type restrictions are enabled").optional(),
        file_type_restriction_exclude: z.boolean().describe("Whether to exclude (true) or include (false) specified file types").optional(),
        file_types: z.array(z.string()).describe("Allowed/excluded file extensions prefixed with dots (e.g., ['.mp4', '.mov'])").optional(),
        max_file_count: z.number().int().describe("Maximum number of files per upload (0 for unlimited). Only works when package_size_restriction_enabled: true").optional(),
        max_file_size: z.number().int().describe("Maximum file size in bytes (0 for unlimited). Only works when package_size_restriction_enabled: true").optional(),
        max_package_size: z.number().int().describe("Maximum package size in bytes (0 for unlimited). Only works when package_size_restriction_enabled: true").optional(),
        package_size_restriction_enabled: z.boolean().describe("Whether package size restrictions are enabled. Set to true in order to set max_file_count, max_file_size or max_package_size").optional(),
        user_authentication_required: z.boolean().describe("Whether to restrict Portal upload to only team users with proper access. Users must authenticate to upload").optional(),
        download_user_authentication_required: z.boolean().describe("Whether users must authenticate to download").optional(),
        package_name_format_enabled: z.boolean().describe("Whether custom package naming format is enabled").optional(),
        package_name_format: z.object({
            value: z.string().describe("Regex pattern used to enforce package name format (e.g., '^s\d{2}_e\d{2}$')"),
            label: z.string().describe("Label shown to users explaining the required package name format (e.g., 'Format For Videos')"),
        }).describe("Custom package naming format configuration (required when package_name_format_enabled is true)").optional(),
        terms_of_service_enabled: z.boolean().describe("Whether terms of service acceptance is required to upload to the portal").optional(),
        terms_of_service: z.object({
            title: z.string().describe("Title of the terms of service"),
            description: z.string().describe("Description or content of the terms of service"),
            checkbox_label: z.string().describe("Label for the acceptance checkbox"),
            checkbox_url: z.string().describe("URL to full terms of service document or any other additional information"),
        }).describe("Terms of service configuration (required when terms_of_service_enabled is true)").optional(),
    });
  • src/index.ts:352-368 (registration)
    Registration of the 'create_portal' tool with the MCP server, including description and input schema reference, with a handler that calls createPortal and wraps the result with mcpOk.
    server.registerTool(
      "create_portal",
      {
        description:
          "Create a new portal for collecting files from external users. Portals can be configured with access codes, download passwords, file type restrictions, custom branding, connected integrations, and more. Only 'name' and 'subdomain' are required - all other settings are optional.",
        inputSchema: CreatePortalSchema.shape,
      },
      async (args) => {
        try {
          const data = await createPortal(args);
    
          return mcpOk(data);
        } catch (error) {
          return mcpError(error);
        }
      },
    );
  • Imports for zod validation library and environment variables (MASV_BASE_URL, MASV_TEAM_ID, MASV_API_KEY) used by the createPortal handler.
    import { z } from "zod";
    import { MASV_BASE_URL, MASV_TEAM_ID, MASV_API_KEY, MASV_ALLOW_DELETE } from "./env.js";
  • Import statement bringing CreatePortalSchema and createPortal from src/api/portals.ts into the main entry point.
    import {
      GetPortalsSchema,
      getPortals,
      GetPortalSchema,
      getPortal,
      CreatePortalSchema,
      createPortal,
      UpdatePortalSchema,
      updatePortal,
      DeletePortalSchema,
      deletePortal,
    } from "./api/portals.js";
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, and the description does not disclose behavioral traits such as what happens upon creation, response format, side effects, or limits. This is inadequate for a complex creation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single focused sentence that communicates purpose, capabilities, and requirements without any fluff. Every word earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (33 parameters, nested objects, no output schema), the description is too brief. It lacks return value information, error handling, integration context with sibling tools like get_team_members, and overall completeness for effective usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% description coverage, so each parameter is already documented. The description adds value by highlighting that only 'name' and 'subdomain' are required, but does not provide deeper semantics beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Create a new portal for collecting files from external users,' specifying the action and resource. It distinguishes from sibling tools like update_portal, delete_portal, and get_portal.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does not explicitly provide when-to-use or when-not-to-use guidance. It mentions required vs optional parameters but lacks context on prerequisites or comparison with alternatives, earning a mid-range score.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other 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/getmasv/masv-mcp-server'

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