Skip to main content
Glama

List project model grants

grant_models_list
Read-onlyIdempotent

List the models a project can use, newest grants first, including each grant's overrides and the model's name and provider config. Paginate, sort, or filter by name to find a granted model.

Instructions

Lists the configured models a project can use, most recently granted first by default, with each grant's overrides and the model's name and provider config.

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": {
      "orgID": "<orgID>",
      "projectID": "<projectID>"
    },
    "name": "grant_models_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoCase-insensitive glob over the list's logical name. `*` matches zero or more characters, `?` matches one character, and `\` escapes a wildcard.
sortNoField to sort by; prefix with - for descending order. Defaults to -created_at (newest first).
limitNoMaximum number of items to return in one page.
orgIDYesOrganization ID (org_...).
cursorNoOpaque pagination cursor from a previous response's next_cursor. Omit for the first page.
projectIDYesProject ID (proj_...).

Output Schema

NameRequiredDescriptionDefault
dataYes
next_cursorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.10
    • changedInput schema / properties / sort / description
      Previous value: -"Sort order for named resources that expose created and modified timestamps."New value: +"Field to sort by; prefix with - for descending order. Defaults to -created_at (newest first)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "ConfiguredModelID": {
      +      "pattern": "^mdl_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ConfiguredModelSummary": {
      +      "properties": {
      +        "created_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        },
      +        "id": {
      +          "$ref": "#/$defs/ConfiguredModelID"
      +        },
      +        "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"
      +        },
      +        "provider_config": {
      +          "$ref": "#/$defs/ResourceName",
      +          "description": "Name of the provider config that owns this model, used by agent YAML as model.provider_config."
      +        },
      +        "provider_model_slug": {
      +          "description": "Exact provider model slug sent to the provider endpoint by the current revision.",
      +          "type": "string"
      +        },
      +        "updated_at": {
      +          "$ref": "#/$defs/Timestamp"
      +        }
      +      },
      +      "required": [
      +        "id",
      +        "org_id",
      +        "model_provider_config_id",
      +        "name",
      +        "provider_config",
      +        "provider_model_slug",
      +        "created_at",
      +        "updated_at"
      +      ],
      +      "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"
      +    },
      +    "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"
      +    },
      +    "ProjectModelGrantEffectiveReasoning": {
      +      "description": "Reasoning settings agents in this project get for the model, after project grant overrides are applied to the configured model's current revision.",
      +      "properties": {
      +        "default_reasoning_effort": {
      +          "description": "Reasoning effort sent when an agent config does not set model.reasoning.effort. Empty means the provider default.",
      +          "type": "string"
      +        },
      +        "supported_reasoning_efforts": {
      +          "description": "Values an agent config may set as model.reasoning.effort, including limits the model's API format imposes when the configured model lists none. Empty means any value is accepted.",
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        },
      +        "supports_reasoning": {
      +          "description": "Whether agents can use this model's reasoning features. False when the grant no longer fits the configured model.",
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "supports_reasoning",
      +        "default_reasoning_effort",
      +        "supported_reasoning_efforts"
      +      ],
      +      "type": "object"
      +    },
      +    "ProjectModelGrantID": {
      +      "pattern": "^pmog_[a-z2-7]{26}$",
      +      "type": "string"
      +    },
      +    "ProjectModelGrantListItem": {
      +      "properties": {
      +        "effective_reasoning": {
      +          "$ref": "#/$defs/ProjectModelGrantEffectiveReasoning"
      +        },
      +        "grant": {
      +          "$ref": "#/$defs/ProjectModelGrant"
      +        },
      +        "model": {
      +          "$ref": "#/$defs/ConfiguredModelSummary"
      +        }
      +      },
      +      "required": [
      +        "grant",
      +        "model",
      +        "effective_reasoning"
      +      ],
      +      "type": "object"
      +    },
      +    "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": {
      +    "data": {
      +      "items": {
      +        "$ref": "#/$defs/ProjectModelGrantListItem"
      +      },
      +      "type": "array"
      +    },
      +    "next_cursor": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "data",
      +    "next_cursor"
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changedv0.1.1
    • addedInput schema / properties / orgID / description
      Added value: +"Organization ID (org_...)."
    • addedInput schema / properties / projectID / description
      Added value: +"Project ID (proj_...)."
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish readOnlyHint, idempotentHint, destructiveHint=false and a closed world, so the safety profile is covered. The description usefully adds what an agent cannot get from annotations: the default ordering ('most recently granted first'), and the fact that each row carries the grant's overrides plus the model's name and provider config.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler; scope, default ordering, and payload contents arrive in the order an agent needs them. It is dense but not padded.

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 an output schema for return values, full annotation coverage, and 100% schema description coverage, the description only needed to state purpose and ordering, which it does. The remaining gap is the absence of any routing guidance versus sibling list tools.

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?

Schema coverage is 100%, so every parameter (including name glob, sort enum, limit, cursor) is already documented in the schema. The description only restates the default ordering behavior, which the schema's sort description already covers, so it adds little semantic value beyond the baseline.

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 ('Lists') and a precisely scoped resource: the models a given project has been granted, including overrides and the underlying model's name/provider config. It implicitly separates itself from models_list (a catalog of models) and from the add/edit/delete grant siblings, but it never names those alternatives, so the differentiation is inferable 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?

Usage is only implied by the purpose statement — an agent can infer this is the read path for examining existing grants. There is no explicit guidance on when to choose this over models_list or the other grant_*_list tools, and no prerequisites (e.g. required permissions) are mentioned.

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