Skip to main content
Glama

Update configured model

models_update
DestructiveIdempotent

Updates a configured model's settings and returns the updated model; omitted fields keep their values. Agents already using the model pick up the change on their next model call. The update isn't checked against project grants or agent configs, so lowering a limit below their overrides or turning off tools or reasoning they rely on makes those agents' next model call fail.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "configuredModelID": "<configuredModelID>",
      "modelProviderConfigID": "<modelProviderConfigID>",
      "orgID": "<orgID>"
    },
    "name": "models_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoUser-assigned configured model name used by agent YAML as model.name. Renaming affects future YAML resolution but does not change existing agents.
orgIDYesOrganization ID (org_...).
pricingNoYour own prices for this model. Omit to keep them, or set to null to remove them.
supports_toolsNoWhether this configured model can receive tool definitions and emit tool calls. Agent configs with enabled tools are rejected when this is false. Omitted keeps the current value.
input_modalitiesNoInput types this configured model accepts. Omnara recognizes text, image, file, and audio; an empty list leaves capabilities unspecified.
configuredModelIDYesConfigured model ID (mdl_...).
max_output_tokensNoKnown output-token ceiling for this model. Omitted keeps the current value. Null clears it to unknown for every API format.
output_modalitiesNoOutput types this configured model can return. Omnara currently consumes text output.
supports_reasoningNoWhether Omnara should use this model's reasoning features. For OpenAI Responses, this also enables encrypted reasoning replay for stateless calls. Omitted keeps the current value.
api_variant_optionsNoExtra top-level JSON fields to include in provider requests for this configured model. Use this for provider-specific settings that Omnara does not expose as typed fields, such as OpenRouter `provider` routing or sampling parameters. Omnara still controls the fields it needs to run the agent correctly, including the model, prompt/messages, streaming, tools, output-token limit, and selected reasoning policy. Provider passthrough values for those fields are ignored. For OpenRouter routing options, see https://openrouter.ai/docs/guides/routing/provider-selection and general request parameters at https://openrouter.ai/docs/api/reference/parameters. Omnara-managed OpenRouter providers accept only sampling, reasoning, and per-model routing options here.
provider_model_slugNoExact provider model slug sent to the provider endpoint. Free-pool, `:online`, and preset model ids are not accepted on Omnara-managed OpenRouter providers.
context_window_tokensNoContext budget for input and output tokens. Triggers compaction when estimated input exceeds the remaining budget after output and safety reserves. The turn fails if compaction cannot make it fit.
modelProviderConfigIDYesModel provider config ID (mpc_...).
default_cache_retentionNoPrompt-cache preference for model requests; `short` when omitted. `short` applies the route's default caching (explicit cache breakpoints where the provider requires them) and, where the route accepts one, a stable conversation key for cache-aware routing. `long` prefers the route's extended cache lifetime where one exists (currently Anthropic's one-hour cache, which on Bedrock requires Claude 4.5 or newer) and behaves like `short` elsewhere. `none` sends no Omnara-managed cache controls or conversation key; providers may still cache prefixes on their own.
default_reasoning_effortNoReasoning effort sent by default, such as low, medium, or high. Requires supports_reasoning; must be listed in supported_reasoning_efforts when that is set.
default_max_output_tokensNoOptional per-request output allowance unless a project or agent overrides it. Without a default or known ceiling, Messages uses 64000 tokens; other formats omit the allowance.
supported_reasoning_effortsNoReasoning effort values this configured model accepts. Requires supports_reasoning=true when non-empty.

Output Schema

NameRequiredDescriptionDefault
idYes
nameYesUser-assigned configured model name used by agent YAML as model.name.
org_idYes
pricingNoYour own prices for this model, when set.
created_atYes
updated_atYes
supports_toolsYesWhether this configured model can receive tool definitions and emit tool calls.
management_kindYes
input_modalitiesYesInput types this configured model accepts. Omnara recognizes text, image, file, and audio; an empty list leaves capabilities unspecified.
max_output_tokensYesKnown output-token ceiling for this model, or null when unknown.
output_modalitiesYesOutput types this configured model can return.
supports_reasoningYesWhether Omnara should use this model's reasoning features.
api_variant_optionsYes
current_revision_idYes
provider_model_slugYesExact provider model slug sent to the provider endpoint by the current revision.
revision_created_atYes
context_window_tokensYesContext budget for input and output tokens. Triggers compaction when estimated input exceeds the remaining budget after output and safety reserves. The turn fails if compaction cannot make it fit.
default_cache_retentionNo
default_reasoning_effortYesDefault reasoning effort to send for models/API formats that support effort-style reasoning controls.
model_provider_config_idYes
default_max_output_tokensNoDefault per-request output-token cap sent to the provider unless an agent config overrides it.
supported_reasoning_effortsYesReasoning effort values this configured model accepts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / $defs
      Added value: +{
      +  "ModelPricing": {
      +    "additionalProperties": false,
      +    "description": "Your own prices in USD per million tokens, as exact decimal strings, named like genai-prices catalog entries. Missing cache prices use the input price.",
      +    "properties": {
      +      "cache_read_mtok": {
      +        "description": "USD per million input tokens read from the prompt cache.",
      +        "maxLength": 31,
      +        "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,15})?$",
      +        "type": "string"
      +      },
      +      "cache_write_mtok": {
      +        "description": "USD per million input tokens written to the prompt cache.",
      +        "maxLength": 31,
      +        "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,15})?$",
      +        "type": "string"
      +      },
      +      "input_mtok": {
      +        "description": "USD per million input tokens.",
      +        "maxLength": 31,
      +        "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,15})?$",
      +        "type": "string"
      +      },
      +      "output_mtok": {
      +        "description": "USD per million output tokens.",
      +        "maxLength": 31,
      +        "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,15})?$",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "input_mtok",
      +      "output_mtok"
      +    ],
      +    "type": "object"
      +  }
      +}
    • addedInput schema / properties / pricing
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/ModelPricing"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Your own prices for this model. Omit to keep them, or set to null to remove them."
      +}
    • addedOutput schema / $defs / ModelPricing
      Added value: +{
      +  "description": "Your own prices in USD per million tokens, as exact decimal strings, named like genai-prices catalog entries. Missing cache prices use the input price.",
      +  "properties": {
      +    "cache_read_mtok": {
      +      "description": "USD per million input tokens read from the prompt cache.",
      +      "maxLength": 31,
      +      "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,15})?$",
      +      "type": "string"
      +    },
      +    "cache_write_mtok": {
      +      "description": "USD per million input tokens written to the prompt cache.",
      +      "maxLength": 31,
      +      "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,15})?$",
      +      "type": "string"
      +    },
      +    "input_mtok": {
      +      "description": "USD per million input tokens.",
      +      "maxLength": 31,
      +      "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,15})?$",
      +      "type": "string"
      +    },
      +    "output_mtok": {
      +      "description": "USD per million output tokens.",
      +      "maxLength": 31,
      +      "pattern": "^(0|[1-9][0-9]*)(\\.[0-9]{1,15})?$",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "input_mtok",
      +    "output_mtok"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / pricing
      Added value: +{
      +  "$ref": "#/$defs/ModelPricing",
      +  "description": "Your own prices for this model, when set."
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / input_modalities / description
      Previous value: -"Input types this configured model accepts. Omnara recognizes text, image, and file; an empty list leaves capabilities unspecified."New value: +"Input types this configured model accepts. Omnara recognizes text, image, file, and audio; an empty list leaves capabilities unspecified."
    • changedOutput schema / properties / input_modalities / description
      Previous value: -"Input types this configured model accepts. Omnara recognizes text, image, and file; an empty list leaves capabilities unspecified."New value: +"Input types this configured model accepts. Omnara recognizes text, image, file, and audio; an empty list leaves capabilities unspecified."
  3. Changed5 schema fields changed
    • removedInput schema / properties / api_variant_options / x-go-type
      Removed value: -"json.RawMessage"
    • removedInput schema / properties / api_variant_options / x-go-type-skip-optional-pointer
      Removed value: -true
    • changedInput schema / properties / default_reasoning_effort / description
      Previous value: -"Default reasoning effort to send for models/API formats that support effort-style reasoning controls. Requires supports_reasoning=true. When supported_reasoning_efforts is present, this value must be listed there."New value: +"Reasoning effort sent by default, such as low, medium, or high. Requires supports_reasoning; must be listed in supported_reasoning_efforts when that is set."
    • removedInput schema / properties / name / x-omnara-unicode-normalization
      Removed value: -"NFC"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "ConfiguredModelID": {
      +      "pattern": "^mdl_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ConfiguredModelRevisionID": {
      +      "pattern": "^mrev_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ManagementKind": {
      +      "description": "Lifecycle owner. Tenant-managed resources can be changed through tenant APIs. Cluster-managed resources are installed and lifecycle-managed by the control plane; individual APIs may explicitly expose tenant-editable settings.",
      +      "enum": [
      +        "tenant",
      +        "cluster"
      +      ],
      +      "type": "string"
      +    },
      +    "ModelAPIVariantOptions": {
      +      "additionalProperties": true,
      +      "description": "Extra top-level JSON fields to include in provider requests for this configured model. Use this for provider-specific settings that Omnara does not expose as typed fields, such as OpenRouter `provider` routing or sampling parameters. Omnara still controls the fields it needs to run the agent correctly, including the model, prompt/messages, streaming, tools, output-token limit, and selected reasoning policy. Provider passthrough values for those fields are ignored. For OpenRouter routing options, see https://openrouter.ai/docs/guides/routing/provider-selection and general request parameters at https://openrouter.ai/docs/api/reference/parameters. Omnara-managed OpenRouter providers accept only sampling, reasoning, and per-model routing options here.",
      +      "type": "object"
      +    },
      +    "ModelCacheRetention": {
      +      "description": "Prompt-cache preference for model requests; `short` when omitted. `short` applies the route's default caching (explicit cache breakpoints where the provider requires them) and, where the route accepts one, a stable conversation key for cache-aware routing. `long` prefers the route's extended cache lifetime where one exists (currently Anthropic's one-hour cache, which on Bedrock requires Claude 4.5 or newer) and behaves like `short` elsewhere. `none` sends no Omnara-managed cache controls or conversation key; providers may still cache prefixes on their own.",
      +      "enum": [
      +        "none",
      +        "short",
      +        "long"
      +      ],
      +      "type": "string"
      +    },
      +    "ModelProviderConfigID": {
      +      "pattern": "^mpc_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "OrganizationID": {
      +      "pattern": "^org_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ResourceName": {
      +      "description": "Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.",
      +      "maxLength": 64,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    "Timestamp": {
      +      "format": "date-time",
      +      "type": "string"
      +    }
      +  },
      +  "properties": {
      +    "api_variant_options": {
      +      "$ref": "#/$defs/ModelAPIVariantOptions"
      +    },
      +    "context_window_tokens": {
      +      "description": "Context budget for input and output tokens. Triggers compaction when estimated input exceeds the remaining budget after output and safety reserves. The turn fails if compaction cannot make it fit.",
      +      "type": "integer"
      +    },
      +    "created_at": {
      +      "$ref": "#/$defs/Timestamp"
      +    },
      +    "current_revision_id": {
      +      "$ref": "#/$defs/ConfiguredModelRevisionID"
      +    },
      +    "default_cache_retention": {
      +      "$ref": "#/$defs/ModelCacheRetention"
      +    },
      +    "default_max_output_tokens": {
      +      "description": "Default per-request output-token cap sent to the provider unless an agent config overrides it.",
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "default_reasoning_effort": {
      +      "description": "Default reasoning effort to send for models/API formats that support effort-style reasoning controls.",
      +      "type": "string"
      +    },
      +    "id": {
      +      "$ref": "#/$defs/ConfiguredModelID"
      +    },
      +    "input_modalities": {
      +      "description": "Input types this configured model accepts. Omnara recognizes text, image, and file; an empty list leaves capabilities unspecified.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "management_kind": {
      +      "$ref": "#/$defs/ManagementKind"
      +    },
      +    "max_output_tokens": {
      +      "description": "Known output-token ceiling for this model, or null when unknown.",
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "model_provider_config_id": {
      +      "$ref": "#/$defs/ModelProviderConfigID"
      +    },
      +    "name": {
      +      "$ref": "#/$defs/ResourceName",
      +      "description": "User-assigned configured model name used by agent YAML as model.name."
      +    },
      +    "org_id": {
      +      "$ref": "#/$defs/OrganizationID"
      +    },
      +    "output_modalities": {
      +      "description": "Output types this configured model can return.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "provider_model_slug": {
      +      "description": "Exact provider model slug sent to the provider endpoint by the current revision.",
      +      "type": "string"
      +    },
      +    "revision_created_at": {
      +      "$ref": "#/$defs/Timestamp"
      +    },
      +    "supported_reasoning_efforts": {
      +      "description": "Reasoning effort values this configured model accepts.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "supports_reasoning": {
      +      "description": "Whether Omnara should use this model's reasoning features.",
      +      "type": "boolean"
      +    },
      +    "supports_tools": {
      +      "description": "Whether this configured model can receive tool definitions and emit tool calls.",
      +      "type": "boolean"
      +    },
      +    "updated_at": {
      +      "$ref": "#/$defs/Timestamp"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "org_id",
      +    "model_provider_config_id",
      +    "management_kind",
      +    "name",
      +    "current_revision_id",
      +    "provider_model_slug",
      +    "context_window_tokens",
      +    "max_output_tokens",
      +    "supports_tools",
      +    "supports_reasoning",
      +    "default_reasoning_effort",
      +    "supported_reasoning_efforts",
      +    "input_modalities",
      +    "output_modalities",
      +    "api_variant_options",
      +    "created_at",
      +    "updated_at",
      +    "revision_created_at"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / name / description
      Previous value: -"Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not."New value: +"User-assigned configured model name used by agent YAML as model.name. Renaming affects future YAML resolution but does not change existing agents."
  5. Changed3 schema fields changed
    • addedInput schema / properties / configuredModelID / description
      Added value: +"Configured model ID (mdl_...)."
    • addedInput schema / properties / modelProviderConfigID / description
      Added value: +"Model provider config ID (mpc_...)."
    • addedInput schema / properties / orgID / description
      Added value: +"Organization ID (org_...)."
  6. Changed1 schema field changed
    • changedInput schema / properties / context_window_tokens / description
      Previous value: -"Total token window for this model, including input and output."New value: +"Context budget for input and output tokens. Triggers compaction when estimated input exceeds the remaining budget after output and safety reserves. The turn fails if compaction cannot make it fit."
  7. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), it discloses non-obvious behavior: the response is the updated model, omitted fields are preserved, changes propagate to agents on their next model call, and the update is not validated against project grants or agent configs, so overrides can break subsequent agent calls. That failure mode is exactly the kind of consequence an agent cannot infer from structured fields.

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?

Three sentences, front-loaded with purpose and return value, then propagation behavior, then the risk warning. No filler, and the most consequential fact (unguarded cross-config impact) is placed where a reader will reach it.

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?

With 17 parameters, nested objects, and full schema coverage plus an output schema, the description covers what the schema cannot: propagation timing and the lack of grant/agent-config validation. It stops short of noting permission requirements for the mutation itself or what a rejected update returns, leaving a small gap for a destructive operation.

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?

Schema coverage is 100%, so the baseline is 3; the description earns extra credit by stating the PATCH-style contract that omitted fields keep their values, which applies across all 17 parameters and frames how the rich per-field schema should be read. It does not add field-specific meaning beyond what the already-detailed schema provides.

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?

States a specific verb and resource ('Updates a configured model's settings') and adds the return behavior, which clearly separates it from models_create/models_delete and from model_providers_update via the 'configured model' framing. It never names an alternative sibling or states an explicit contrast, so sibling differentiation is implied rather than stated.

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?

The description conveys the update/partial-update context ('omitted fields keep their values') and a real caution about lowering limits below project or agent overrides, which is actionable when-decide guidance. However, it gives no explicit routing to alternatives (e.g., when to use models_create or a grant tool instead) and no prerequisite/permission conditions for calling it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.