Skip to main content
Glama

Check whether Wiro Model Access rules allow a model

check_model_access
Read-onlyIdempotent

Check if a model is allowed for a run under workspace access rules, see which rule decides and why, and preview any refusal (error 92) without running or charging.

Instructions

Check how the Model Access rules of the connected project's workspace decide one model for one run: rule by rule (the whole wallet's, the member's, the API key's, the surface's and the agent's), why each decides as it does (the model's own entry, one of its categories, or what the rule does with every model it does not name), and the refusal text a run would get (error code 92). Nothing runs and nothing is charged. With no member, project, surface or agent it checks a run through this connection. A way in that comes with an API key (api, mcp, llm-gateway, extension, studio, workflow-agent) and a workflow run are checked with this connection's key unless project names another, and a run with a key counts as the person who created that key. When the model is blocked and this connection can change the rules, nextAction is the change summary that would allow it in the first rule that blocks it.

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": {
      "model": "<model>"
    },
    "name": "check_model_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentNoA deployed agent, by name or guid: checks a run the agent starts (surface agent).
modelYesThe model, by owner/slug as search_models shows it, or by its id.
memberNoTeam only: the team member whose run to check, by e-mail or user id. Left out, the person who created the connected project. A run with an API key counts as the person who created the key, so with project or agent that person is checked.
projectNoThe API key the run uses, by its project id or exact name. Left out, this connection's own key when nothing else is named, or when surface is api, mcp, llm-gateway, extension, studio, workflow-agent or workflow and no member is named.
surfaceNoThe way in: web (the dashboard), api (an API key), mcp (this server, hosted at mcp.wiro.ai or run yourself), llm-gateway, extension, agent, studio (messages to Studio and the models it runs), workflow-agent (messages to the Workflow Agent) or workflow (workflow runs and their steps). Left out, the surface this connection counts as when nothing else is named, api with a project, and web for a member.

Output Schema

NameRequiredDescriptionDefault
fixesNoFor each rule that blocks the model, the change summary that would allow it there. Every one must change for the model to run.
modelYesThe model's owner/slug, as Wiro names it.
rulesYesEvery rule that applies to this run, widest first.
allowedYes
contextYesThe run Wiro checked. A run with an API key counts as the person who created the key.
messageYesThe refusal text a run would get, with error code 92; null when it is allowed.
canManageYesWhether this connection can change the rules.
categoriesYesThe model's categories.
nextActionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.0.0
    • changedInput schema / properties / project / description
      Previous value: -"The API key the run uses, by its project id or exact name. Left out, this connection's own key when nothing else is named, or when surface is api, mcp, llm-gateway or extension and no member is named."New value: +"The API key the run uses, by its project id or exact name. Left out, this connection's own key when nothing else is named, or when surface is api, mcp, llm-gateway, extension, studio, workflow-agent or workflow and no member is named."
    • changedInput schema / properties / surface / description
      Previous value: -"The way in: web (the dashboard), api (an API key, a local install of this server included), mcp (the hosted MCP server), llm-gateway, extension or agent. Left out, the surface this connection counts as when nothing else is named, api with a project, and web for a member."New value: +"The way in: web (the dashboard), api (an API key), mcp (this server, hosted at mcp.wiro.ai or run yourself), llm-gateway, extension, agent, studio (messages to Studio and the models it runs), workflow-agent (messages to the Workflow Agent) or workflow (workflow runs and their steps). Left out, the surface this connection counts as when nothing else is named, api with a project, and web for a member."
    • changedInput schema / properties / surface / enum
      Previous value: -[
      -  "web",
      -  "api",
      -  "mcp",
      -  "llm-gateway",
      -  "extension",
      -  "agent"
      -]New value: +[
      +  "web",
      +  "api",
      +  "mcp",
      +  "llm-gateway",
      +  "extension",
      +  "agent",
      +  "studio",
      +  "workflow-agent",
      +  "workflow"
      +]
    • changedOutput schema / properties / context / properties / surface / enum
      Previous value: -[
      -  "web",
      -  "api",
      -  "mcp",
      -  "llm-gateway",
      -  "extension",
      -  "agent"
      -]New value: +[
      +  "web",
      +  "api",
      +  "mcp",
      +  "llm-gateway",
      +  "extension",
      +  "agent",
      +  "studio",
      +  "workflow-agent",
      +  "workflow"
      +]
  2. Changed1 schema field changedv1.9.1
    • addedOutput schema / properties / rules / items / properties / updatedBy
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Who changed it last. Absent when Wiro did not say, or when a change Wiro made itself was the last.",
      +  "properties": {
      +    "name": {
      +      "description": "Their name or e-mail, or \"the organization owner\"; absent for someone who is no longer in the team.",
      +      "type": "string"
      +    },
      +    "useruuid": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "useruuid"
      +  ],
      +  "type": "object"
      +}
  3. Addedv1.9.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it states the tool is a dry run with no charge, discloses the refusal output (error code 92), enumerates the rule scopes checked (wallet, member, API key, surface, agent), and explains the nextAction field when the caller can change rules. That is substantive behavior an agent could not derive from annotations.

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

Conciseness3/5

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

The purpose is front-loaded, but the body is a single sprawling sentence with stacked parentheticals ('the whole wallet's, the member's, the API key's, the surface's and the agent's') that make it harder to parse than necessary. Information is valuable but the packaging is dense.

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 present, return-value explanation is not required, and the description covers dry-run semantics, defaults, and error signaling. What remains thin is the boundary with the rule-mutating sibling, which an agent must guess at when the check comes back blocked.

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 already 100%, so the baseline is 3, but the description adds cross-parameter precedence: the default run subject when no member/project/surface/agent is given, and how an API key run is attributed to the key's creator. That interaction logic is more than the schema's per-field defaults.

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 opens with a specific verb and resource: check how Model Access rules decide one model for one run, evaluated rule by rule. It implicitly separates itself from a rule-changing tool by noting that 'nextAction is the change summary' only, but it never names manage_model_access, so sibling differentiation is left to inference.

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?

It gives clear invocation context: 'Nothing runs and nothing is charged', and 'With no member, project, surface or agent it checks a run through this connection', plus which surface is assumed for API-key and workflow runs. It stops short of an explicit when-not or a named alternative for actually changing rules.

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