Skip to main content
Glama

Update project model grant

grant_models_edit
Destructive

Updates a project's model overrides for token limits, modalities, reasoning, caching, and tool support; omitted fields stay unchanged and cleared fields inherit from the configured model.

Instructions

Updates the project's overrides for the configured model. Omitted fields keep their current values; null, or [] for supported_reasoning_efforts, input_modalities, and output_modalities, clears an override so the project inherits from the configured model. Agents already using the model apply the updated overrides on their next model call. Updates are validated against the configured model's current revision but not against agent configs, so narrowing below a config's model settings, such as its context_window_tokens or reasoning effort, makes that agent's 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": {
      "modelGrantID": "<modelGrantID>",
      "orgID": "<orgID>",
      "projectID": "<projectID>"
    },
    "name": "grant_models_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
orgIDYesOrganization ID (org_...).
projectIDYesProject ID (proj_...).
modelGrantIDYesProject model grant ID (pmog_...).
supports_toolsNoProject-level tool-use gate. Can disable tools, but cannot enable tools when the configured model does not support them.
input_modalitiesNoInput types this project may send, such as text, image, or file; limited to the configured model's.
max_output_tokensNoProject output-token ceiling. Cannot exceed the configured model's ceiling.
output_modalitiesNoOutput types this project may receive, limited to the configured model's.
supports_reasoningNoProject-level reasoning gate. Can disable reasoning, but cannot enable reasoning when the configured model does not support it.
context_window_tokensNoProject context budget for input and output tokens. Cannot exceed the configured model's budget. 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_retentionNoOverrides the model's prompt caching for this project. Null inherits it.
default_reasoning_effortNoReasoning effort this project uses by default. Null inherits the configured model's.
default_max_output_tokensNoDefault output allowance per request for this project; agents can raise it up to max_output_tokens. Null inherits the configured model's.
supported_reasoning_effortsNoReasoning efforts this project may use, limited to the configured model's. If this excludes the inherited default_reasoning_effort, set default_reasoning_effort too.

Output Schema

NameRequiredDescriptionDefault
grantYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.1.10
    • addedInput schema / properties / default_cache_retention / description
      Added value: +"Overrides the model's prompt caching for this project. Null inherits it."
    • changedInput schema / properties / default_max_output_tokens / description
      Previous value: -"Project default per-request output-token cap."New value: +"Default output allowance per request for this project; agents can raise it up to max_output_tokens. Null inherits the configured model's."
    • changedInput schema / properties / default_reasoning_effort / description
      Previous value: -"Project default reasoning effort."New value: +"Reasoning effort this project uses by default. Null inherits the configured model's."
    • changedInput schema / properties / input_modalities / description
      Previous value: -"Project subset of configured-model input types."New value: +"Input types this project may send, such as text, image, or file; limited to the configured model's."
    • changedInput schema / properties / output_modalities / description
      Previous value: -"Project subset of configured-model output types."New value: +"Output types this project may receive, limited to the configured model's."
    • changedInput schema / properties / supported_reasoning_efforts / description
      Previous value: -"Project subset of configured-model reasoning efforts. If this excludes the inherited default_reasoning_effort, set default_reasoning_effort on the grant too."New value: +"Reasoning efforts this project may use, limited to the configured model's. If this excludes the inherited default_reasoning_effort, set default_reasoning_effort too."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "ConfiguredModelID": {
      +      "pattern": "^mdl_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "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"
      +    },
      +    "OrganizationID": {
      +      "pattern": "^org_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectID": {
      +      "description": "Project ID (proj_...).",
      +      "pattern": "^proj_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectModelGrant": {
      +      "properties": {
      +        "configured_model_id": {
      +          "$ref": "#/$defs/ConfiguredModelID"
      +        },
      +        "context_window_tokens": {
      +          "description": "Project context budget for input and output tokens, or omitted/null to inherit from the configured model. 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",
      +            "null"
      +          ]
      +        },
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        },
      +        "default_cache_retention": {
      +          "$ref": "#/$defs/ModelCacheRetention"
      +        },
      +        "default_max_output_tokens": {
      +          "description": "Project default per-request output-token cap, or omitted/null to inherit from the configured model.",
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "default_reasoning_effort": {
      +          "description": "Project default reasoning effort, or omitted/empty to inherit from the configured model.",
      +          "type": "string"
      +        },
      +        "id": {
      +          "$ref": "#/$defs/ProjectModelGrantID"
      +        },
      +        "input_modalities": {
      +          "description": "Project subset of configured-model input types (text, image, or file). Empty means inherit.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "max_output_tokens": {
      +          "description": "Project output-token ceiling, or omitted/null to inherit from the configured model.",
      +          "type": [
      +            "integer",
      +            "null"
      +          ]
      +        },
      +        "org_id": {
      +          "$ref": "#/$defs/OrganizationID"
      +        },
      +        "output_modalities": {
      +          "description": "Project subset of configured-model output types. Empty means inherit.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "project_id": {
      +          "$ref": "#/$defs/ProjectID"
      +        },
      +        "supported_reasoning_efforts": {
      +          "description": "Project subset of configured-model reasoning efforts. Empty means inherit. When non-empty, default_reasoning_effort must resolve to one of these values.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "supports_reasoning": {
      +          "description": "Project-level reasoning override, or omitted/null to inherit from the configured model.",
      +          "type": [
      +            "boolean",
      +            "null"
      +          ]
      +        },
      +        "supports_tools": {
      +          "description": "Project-level tool-use override, or omitted/null to inherit from the configured model.",
      +          "type": [
      +            "boolean",
      +            "null"
      +          ]
      +        },
      +        "updated_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "org_id",
      +        "project_id",
      +        "configured_model_id",
      +        "supported_reasoning_efforts",
      +        "input_modalities",
      +        "output_modalities",
      +        "created_at",
      +        "updated_at"
      +      ],
      +      "type": "object"
      +    },
      +    "ProjectModelGrantID": {
      +      "pattern": "^pmog_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "Timestamp": {
      +      "format": "date-time",
      +      "type": "string"
      +    }
      +  },
      +  "properties": {
      +    "grant": {
      +      "$ref": "#/$defs/ProjectModelGrant"
      +    }
      +  },
      +  "required": [
      +    "grant"
      +  ],
      +  "type": "object"
      +}
  2. Changed3 schema fields changedv0.1.1
    • addedInput schema / properties / modelGrantID / description
      Added value: +"Project model grant ID (pmog_...)."
    • addedInput schema / properties / orgID / description
      Added value: +"Organization ID (org_...)."
    • addedInput schema / properties / projectID / description
      Added value: +"Project ID (proj_...)."
  3. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the annotations, it discloses that omitted fields preserve current values, that null or empty arrays clear overrides, that agents apply changes on their next model call, and that validation runs against the model revision rather than agent configs. It also warns that narrowing below an agent config's values will make that agent's next model call fail.

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 four sentences, front-loads the operation, and each sentence adds distinct value about update semantics, propagation, validation, and failure consequences. There is no redundant or filler text for a 13-parameter mutation tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given a complex 13-parameter mutation with a rich schema and an output schema, the description covers the critical behavioral pitfalls: preservation versus clearing, propagation timing, and validation boundaries. It does not need to explain return values or every parameter because those are documented structurally.

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, but the description adds important semantics the schema does not state globally: omitted fields preserve current values, while null or [] clears an override. It also names the three fields where [] has clearing behavior, improving on the per-parameter schema descriptions.

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 uses a specific verb and resource: it updates a project's model overrides for a configured model. That is clear enough to act on, but it does not explicitly distinguish this tool from siblings like models_update or grant_models_add.

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 explains update semantics and a failure mode, but it gives no explicit guidance on when to choose this tool over sibling update/add/delete tools. A reader must infer the usage context from the name and the first sentence.

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