Grant model to project
grant_models_addGrants a configured model to a project for agent configs and returns the new grant, with optional overrides to narrow limits and set per-request defaults.
Instructions
Lets a project's agent configs use a configured model and returns the new grant. Optional overrides can narrow the model for that project (lower token limits, tools or reasoning turned off, fewer reasoning efforts or modalities) and set its per-request defaults within those limits.
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": {
"configured_model_id": "<configured_model_id>",
"orgID": "<orgID>",
"projectID": "<projectID>"
},
"name": "grant_models_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgID | Yes | Organization ID (org_...). | |
| projectID | Yes | Project ID (proj_...). | |
| supports_tools | No | Optional project-level tool-use gate. Can disable tools, but cannot enable tools when the configured model does not support them. | |
| input_modalities | No | Optional project subset of configured-model input types (text, image, or file). Empty or omitted means inherit. | |
| max_output_tokens | No | Optional project output-token ceiling. Cannot exceed the configured model's ceiling. | |
| output_modalities | No | Optional project subset of configured-model output types. Empty or omitted means inherit. | |
| supports_reasoning | No | Optional project-level reasoning gate. Can disable reasoning, but cannot enable reasoning when the configured model does not support it. | |
| configured_model_id | Yes | Configured model the project can use. | |
| context_window_tokens | No | Optional project 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_retention | No | 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. | |
| default_reasoning_effort | No | Reasoning effort this project uses by default, such as low or high. Omit to inherit the configured model's. | |
| default_max_output_tokens | No | Default output allowance per request for this project; agents can raise it up to max_output_tokens. Omit to inherit the configured model's. | |
| supported_reasoning_efforts | No | 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grant | Yes |