Skip to main content
Glama

list_models

Retrieve all QuiverAI models with supported operations (svg_generate, svg_vectorize, etc.) and pricing to select the right model for your task.

Instructions

List all models available on QuiverAI, including supported operations (svg_generate, svg_vectorize, etc.) and pricing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Tool handler for 'list_models' that calls quiver.models.listModels(), asserts the response shape, formats model data (id, name, supportedOperations, pricing, description) into Markdown, and returns it as text content.
    if (name === "list_models") {
      const response = await quiver.models.listModels();
      const result = response.result;
      assertListModels(result);
    
      const formatted = result.data
        .map((m) => {
          const ops = m.supportedOperations?.join(", ") ?? "—";
          const price = m.pricing
            ? `prompt: ${m.pricing.prompt} / completion: ${m.pricing.completion}`
            : "—";
          return (
            `**${m.id}**${m.name ? ` (${m.name})` : ""}` +
            `\n  operations: ${ops}` +
            `\n  pricing: ${price}` +
            (m.description ? `\n  ${m.description}` : "")
          );
        })
        .join("\n\n");
    
      return {
        content: [{ type: "text" as const, text: formatted }],
      };
    }
  • Type-narrowing helper assertListModels that validates the API response has the expected shape (data array with id, name, description, supportedOperations, pricing fields).
    /** Narrow result to ListModelsResponse or throw. */
    function assertListModels(
      result: unknown
    ): asserts result is {
      data: Array<{
        id: string;
        name?: string;
        description?: string;
        supportedOperations?: string[];
        pricing?: { prompt: string; completion: string };
      }>;
    } {
      if (
        typeof result !== "object" ||
        result === null ||
        !("data" in result) ||
        !("object" in result)
      ) {
        const err = result as { message?: string };
        throw new Error(
          `QuiverAI API error: ${err.message ?? JSON.stringify(result)}`
        );
      }
    }
  • src/index.ts:260-269 (registration)
    Tool registration for 'list_models' in the ListToolsRequestSchema handler, with description and empty inputSchema (no parameters).
    {
      name: "list_models",
      description:
        "List all models available on QuiverAI, including supported operations " +
        "(svg_generate, svg_vectorize, etc.) and pricing.",
      inputSchema: {
        type: "object",
        properties: {},
      },
    },
  • assertListModels is a type assertion helper that validates the listModels API response structure.
    /** Narrow result to ListModelsResponse or throw. */
    function assertListModels(
      result: unknown
    ): asserts result is {
      data: Array<{
        id: string;
        name?: string;
        description?: string;
        supportedOperations?: string[];
        pricing?: { prompt: string; completion: string };
      }>;
    } {
      if (
        typeof result !== "object" ||
        result === null ||
        !("data" in result) ||
        !("object" in result)
      ) {
        const err = result as { message?: string };
        throw new Error(
          `QuiverAI API error: ${err.message ?? JSON.stringify(result)}`
        );
      }
    }
Behavior3/5

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

No annotations, but description is straightforward (list only). Does not mention read-only nature or auth requirements, but these are implicit for a list operation.

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, no wasted words, front-loaded with purpose.

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?

Complete for a simple list tool with no parameters and no output schema. Describes what is included (operations, pricing). Could mention output format but not critical.

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?

No parameters in schema; baseline for 0 params is 4. Description adds no param info (none needed).

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?

Clearly states verb (List), resource (models), and includes what info is returned (supported operations and pricing). Distinguishes from siblings generate_svg and vectorize_svg which are different actions.

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

Usage Guidelines4/5

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

Implied usage: use to discover available models before generating or vectorizing. No explicit when-not-to-use or alternatives, but context makes it clear.

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/syntropicsignal-ai/quiver-mcp'

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