Skip to main content
Glama

modal_apps

List deployed Modal applications with status, task count, and creation date to monitor cloud infrastructure and application health.

Instructions

List all deployed Modal apps with their status, task count, and creation date.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that executes the modal_apps tool logic. It runs 'modal app list' CLI command, parses the table output, and returns structured app data including app_id, description, state, tasks, and created_at.
      async handler() {
        try {
          const out = execSync(`${MODAL_BIN} app list 2>&1`, { timeout: 15000 }).toString();
          // Parse the table output into structured data
          const lines = out.split('\n').filter(l => l.includes('│') && !l.includes('App ID') && !l.includes('━'));
          const apps = lines.map(line => {
            const cols = line.split('│').map(c => c.trim()).filter(Boolean);
            return cols.length >= 3 ? {
              app_id:      cols[0],
              description: cols[1],
              state:       cols[2],
              tasks:       cols[3] || '0',
              created_at:  cols[4] || '',
            } : null;
          }).filter(Boolean);
          return { apps, raw: out };
        } catch (err) {
          throw new Error(`modal app list failed: ${err.message}`);
        }
      },
    },
  • server.js:231-257 (registration)
    The modal_apps tool definition within the TOOLS object. Contains description, inputSchema (empty object since no inputs required), and the handler function. This is where the tool is registered in the MCP server.
    modal_apps: {
      description: 'List all deployed Modal apps with their status, task count, and creation date.',
      inputSchema: {
        type: 'object',
        properties: {},
      },
      async handler() {
        try {
          const out = execSync(`${MODAL_BIN} app list 2>&1`, { timeout: 15000 }).toString();
          // Parse the table output into structured data
          const lines = out.split('\n').filter(l => l.includes('│') && !l.includes('App ID') && !l.includes('━'));
          const apps = lines.map(line => {
            const cols = line.split('│').map(c => c.trim()).filter(Boolean);
            return cols.length >= 3 ? {
              app_id:      cols[0],
              description: cols[1],
              state:       cols[2],
              tasks:       cols[3] || '0',
              created_at:  cols[4] || '',
            } : null;
          }).filter(Boolean);
          return { apps, raw: out };
        } catch (err) {
          throw new Error(`modal app list failed: ${err.message}`);
        }
      },
    },
  • The inputSchema for modal_apps tool. Defines an empty object schema since the tool takes no input parameters.
    inputSchema: {
      type: 'object',
      properties: {},
    },
Behavior3/5

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

No annotations provided, so description carries the burden. It discloses what data is returned (status, task count, creation date) but omits safety profile (read-only vs destructive), pagination behavior, or rate limiting concerns.

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?

Single sentence of 12 words with zero waste. Front-loaded with the action verb 'List' and efficiently specifies both the resource and the specific attributes returned.

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

Completeness4/5

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

For a zero-parameter tool without annotations or output schema, the description is nearly complete by specifying the return payload structure. Could be improved by noting pagination or scope limits, but adequate for complexity level.

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

Parameters4/5

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

Input schema has zero parameters, warranting baseline score of 4 per scoring rules. Description provides context about the operation's output since the empty schema cannot.

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?

Description states a specific verb (List) and resource (deployed Modal apps) and distinguishes from siblings like modal_logs and modal_render_list by specifying the exact entity type ('apps').

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?

Provides implied usage through specificity of returned fields (status, task count, creation date), suggesting it's for inventory/overview. However, lacks explicit when-to-use guidance contrasting it with modal_logs or the render tools.

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/IsaiahDupree/modal-mcp'

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