Skip to main content
Glama
delano
by delano

list_apis

List all APIs in a workspace using workspace ID, with optional filters for creator, description, and pagination.

Instructions

List all APIs in a workspace

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
workspaceIdYesWorkspace ID (required)
createdByNoFilter by creator user ID
cursorNoPagination cursor
descriptionNoFilter by description text
limitNoMaximum number of results

Implementation Reference

  • The listApis method in ApiTools class - makes a GET request to /apis with query params and returns the response. Validates workspaceId is provided.
    /**
     * List all APIs in a workspace
     * @param params Query parameters including workspaceId (required)
     */
    async listApis(params: any): Promise<ToolCallResponse> {
      if (!params.workspaceId) {
        throw new McpError(ErrorCode.InvalidParams, 'workspaceId is required');
      }
      const response = await this.client.get('/apis', { params });
      return this.createResponse(response.data);
    }
  • TypeScript interface ListApisParams defining the input parameters for list_apis: workspaceId (required), cursor, limit, createdBy, description.
    export interface ListApisParams {
      workspaceId: string;
      cursor?: string;
      limit?: number;
      createdBy?: number;
      description?: string;
    }
  • Tool definition registration for list_apis, including description and inputSchema (JSON Schema) with workspaceId as required field and optional cursor, limit, createdBy, description properties.
    {
      name: 'list_apis',
      description: 'List all APIs in a workspace',
      inputSchema: {
        type: 'object',
        properties: {
          workspaceId: {
            type: 'string',
            description: 'Workspace ID (required)',
          },
          createdBy: {
            type: 'number',
            description: 'Filter by creator user ID',
          },
          cursor: {
            type: 'string',
            description: 'Pagination cursor',
          },
          description: {
            type: 'string',
            description: 'Filter by description text',
          },
          limit: {
            type: 'number',
            description: 'Maximum number of results',
          },
        },
        required: ['workspaceId'],
      },
    },
  • Switch case in handleToolCall that routes 'list_apis' to the listApis method.
    switch (name) {
      case 'list_apis':
        return await this.listApis(args);
  • BasePostmanTool.getToolMappings() - maps tool names (including 'list_apis') to the handler instance, enabling the server dispatcher to route calls to the correct tool.
    public getToolMappings(): ToolMapping {
      const toolDefinitions = this.getToolDefinitions();
      const mappings: ToolMapping = {};
    
      toolDefinitions.forEach(tool => {
        mappings[tool.name] = this;
      });
    
      return mappings;
    }
Behavior2/5

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

With no annotations provided, the description carries full burden. It only says 'list all APIs' without disclosing pagination, ordering, rate limits, or other behavioral traits. For a list tool this is insufficient.

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 sentence with no unnecessary words. Front-loaded and efficient.

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 absence of an output schema and five parameters, the description is too minimal. It fails to explain return format, pagination behavior, or result limits, leaving significant gaps for a list operation.

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?

Schema coverage is 100%, so the schema already documents all five parameters. The description adds no extra meaning beyond what is in the schema, justifying the baseline score of 3.

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

Purpose4/5

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

The description states 'List all APIs in a workspace' which is a clear verb+resource. However, it does not differentiate from sibling listing tools like list_collections or list_environments, so it lacks explicit distinction.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives. No mention of when not to use it or any prerequisites, leaving the agent to infer context.

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/delano/postman-mcp-server'

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