Skip to main content
Glama
novitalabs

Novita MCP Server

Official
by novitalabs

list-templates

Browse available GPU instance templates for Novita AI platform, filtering by type and channel to find suitable configurations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageSizeNoNumber of templates to return in each page
pageNumNoPage number to return, start from 1
typeNoType of template to return
channelNoChannels of template to return

Implementation Reference

  • The handler function for the 'list-templates' tool. It constructs query parameters based on input params (pageSize, pageNum, type, channel), makes an API request to '/templates' endpoint using novitaRequest, and returns the result as a formatted text content block.
    }, async (params) => {
        const queryParams = new URLSearchParams();
        if (params.pageSize)
            queryParams.append("pageSize", params.pageSize.toString());
        if (params.pageNum)
            queryParams.append("pageNum", params.pageNum.toString());
        if (params.type)
            queryParams.append("type", params.type);
        if (params.channel)
            queryParams.append("channel", params.channel.join(","));
        const queryString = queryParams.toString()
            ? `?${queryParams.toString()}`
            : "";
        const result = await novitaRequest(`/templates${queryString}`);
        return {
            content: [
                {
                    type: "text",
                    text: JSON.stringify(result, null, 2),
                },
            ],
        };
    });
  • Zod schema defining input parameters for the 'list-templates' tool: pagination (pageSize, pageNum), filtering by type (instance/serverless) and channel (private/community/official).
    pageSize: z
        .number()
        .min(0)
        .default(20)
        .optional()
        .describe("Number of templates to return in each page"),
    pageNum: z
        .number()
        .min(0)
        .default(1)
        .optional()
        .describe("Page number to return, start from 1"),
    type: z
        .enum(["instance", "serverless"])
        .optional()
        .describe("Type of template to return"),
    channel: z
        .enum(["private", "community", "official"])
        .array()
        .optional()
        .describe("Channels of template to return"),
  • src/tools.ts:282-326 (registration)
    Registration of the 'list-templates' MCP tool using server.tool(), including input schema and inline handler implementation within registerTemplateTools function.
    server.tool("list-templates", {
        pageSize: z
            .number()
            .min(0)
            .default(20)
            .optional()
            .describe("Number of templates to return in each page"),
        pageNum: z
            .number()
            .min(0)
            .default(1)
            .optional()
            .describe("Page number to return, start from 1"),
        type: z
            .enum(["instance", "serverless"])
            .optional()
            .describe("Type of template to return"),
        channel: z
            .enum(["private", "community", "official"])
            .array()
            .optional()
            .describe("Channels of template to return"),
    }, async (params) => {
        const queryParams = new URLSearchParams();
        if (params.pageSize)
            queryParams.append("pageSize", params.pageSize.toString());
        if (params.pageNum)
            queryParams.append("pageNum", params.pageNum.toString());
        if (params.type)
            queryParams.append("type", params.type);
        if (params.channel)
            queryParams.append("channel", params.channel.join(","));
        const queryString = queryParams.toString()
            ? `?${queryParams.toString()}`
            : "";
        const result = await novitaRequest(`/templates${queryString}`);
        return {
            content: [
                {
                    type: "text",
                    text: JSON.stringify(result, null, 2),
                },
            ],
        };
    });
Behavior1/5

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

Tool has no description.

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

Conciseness1/5

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

Tool has no description.

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

Completeness1/5

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

Tool has no description.

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

Parameters1/5

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

Tool has no description.

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

Purpose1/5

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

Tool has no description.

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

Usage Guidelines1/5

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

Tool has no description.

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/novitalabs/novita-mcp-server'

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