Skip to main content
Glama

add_catalog_model

Add a new AI model to the catalog, enabling its use as a stage default or in fallback chains.

Instructions

Add a new model to the catalog.

    Once added, the model can be used as a stage default or in fallback chains.

    Args:
        name: Short name for the model (e.g. "gpt-5.4", "llama-70b").
        provider: "anthropic", "openai", "google", or "local".
        model_id: The actual model ID for the API (e.g. "gpt-5.4", "claude-opus-4-6-20250514").
        tier: "frontier", "fast", or "local".
        endpoint: API endpoint URL (required for "local" provider, e.g. "http://localhost:8000/v1").

    Returns:
        Confirmation with the updated catalog.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
tierNofrontier
endpointNo
model_idYes
providerYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses that the endpoint parameter is required for the 'local' provider, which is useful. However, it lacks details on edge behavior such as duplicate-name handling, overwriting, or validation failures, leaving the agent without a complete picture of side effects.

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 follows a clean docstring format with an initial action statement, a brief context line, and clearly separated Args/Returns sections. Every sentence contributes useful information without redundancy, making it both structured and concise.

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 simple catalog-addition tool, the description covers the core purpose, all parameters, and the return format, especially with an output schema present. It is missing potential edge-case behavior (e.g., duplicate names, provider validation), which prevents a perfect score in a context with no annotations and no schema descriptions.

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

Parameters5/5

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

The input schema has 0% description coverage, so the parameter details in the description are essential. It explains each parameter's meaning, provides examples for name and model_id, enumerates valid values for provider and tier, and clarifies that endpoint is required for 'local'. This fully compensates for the schema's lack of descriptions.

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?

The description clearly states the action with a specific verb and resource: "Add a new model to the catalog." It also specifies the post-addition effect (usable as stage default or in fallback chains), which differentiates it from sibling tools like remove_catalog_model or update_stage_model.

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?

The description conveys that this tool is the first step for making a model available for stage defaults or fallback chains, implying a clear use case. However, it does not explicitly mention when not to use it or provide alternatives for updating/removing models, so it falls short of a full 5.

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/xz0831/openclaw-brain'

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