Skip to main content
Glama
Cicatriiz

Civitai MCP Server

get_download_url

Retrieve the download URL for a specific AI model version by providing its ID, enabling direct access to the model file on Civitai's platform via the MCP server.

Instructions

Get the download URL for a specific model version

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelVersionIdYesThe ID of the model version to get download URL for

Implementation Reference

  • The primary handler function for the 'get_download_url' MCP tool. It extracts the modelVersionId from arguments, retrieves the download URL via the CivitaiClient, and returns a formatted text response with the URL and download instructions.
    private async getDownloadUrl(args: any) {
      const { modelVersionId } = args;
      const downloadUrl = this.client.getDownloadUrl(modelVersionId);
      
      return {
        content: [
          {
            type: 'text',
            text: `Download URL for model version ${modelVersionId}:\\n\\n${downloadUrl}\\n\\n` +
              `**Note:** Use \`wget "${downloadUrl}" --content-disposition\` to download with proper filename.\\n` +
              `If the model requires authentication, add your API key: \`?token=YOUR_API_KEY\``,
          },
        ],
      };
    }
  • src/index.ts:313-323 (registration)
    The tool registration entry in the getTools() method, defining the name 'get_download_url', description, and input schema (requiring modelVersionId as number).
    {
      name: 'get_download_url',
      description: 'Get the download URL for a specific model version',
      inputSchema: {
        type: 'object',
        properties: {
          modelVersionId: { type: 'number', description: 'The ID of the model version to get download URL for' },
        },
        required: ['modelVersionId'],
      },
    },
  • The input schema for the get_download_url tool, specifying an object with required 'modelVersionId' property of type number.
    inputSchema: {
      type: 'object',
      properties: {
        modelVersionId: { type: 'number', description: 'The ID of the model version to get download URL for' },
      },
      required: ['modelVersionId'],
    },
  • Supporting helper method in CivitaiClient that generates the actual download URL by calling buildUrl with the model version endpoint.
    getDownloadUrl(modelVersionId: number): string {
      return this.buildUrl(`/download/models/${modelVersionId}`);
    }
Behavior2/5

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

No annotations are provided, so the description carries full burden for behavioral disclosure. It states the tool retrieves a download URL but doesn't mention any behavioral traits, such as whether it requires authentication, has rate limits, returns a temporary or permanent URL, or what format the URL is in. This is a significant gap for a tool with no annotation coverage.

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, efficient sentence that directly states the tool's purpose without any wasted words. It's appropriately sized and front-loaded, making it easy to parse quickly.

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 lack of annotations and output schema, the description is incomplete. It doesn't explain what the download URL is used for, its validity period, or any error conditions. For a tool that likely involves accessing external resources, more context is needed to ensure correct 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 description implies the parameter 'modelVersionId' is used to specify which model version to get the URL for, but it adds no meaning beyond what the input schema provides (which has 100% coverage and fully describes the parameter). Since schema coverage is high, the baseline is 3, and the description doesn't compensate with extra details like ID format or sourcing.

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 clearly states the action ('Get') and target resource ('download URL for a specific model version'), making the purpose understandable. However, it doesn't differentiate from sibling tools like 'get_model_version' or 'get_model_version_by_hash' that might also retrieve model version data, so it's not fully specific about its unique function.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, such as needing a model version ID from another tool, or compare to siblings like 'get_model_version' that might return different data. This leaves the agent with minimal context for selection.

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

Related 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/Cicatriiz/civitai-mcp-server'

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