Check whether Wiro Model Access rules allow a model
check_model_accessCheck 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
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | A deployed agent, by name or guid: checks a run the agent starts (surface agent). | |
| model | Yes | The model, by owner/slug as search_models shows it, or by its id. | |
| member | No | Team 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. | |
| project | No | 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. | |
| surface | No | 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. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fixes | No | For each rule that blocks the model, the change summary that would allow it there. Every one must change for the model to run. | |
| model | Yes | The model's owner/slug, as Wiro names it. | |
| rules | Yes | Every rule that applies to this run, widest first. | |
| allowed | Yes | ||
| context | Yes | The run Wiro checked. A run with an API key counts as the person who created the key. | |
| message | Yes | The refusal text a run would get, with error code 92; null when it is allowed. | |
| canManage | Yes | Whether this connection can change the rules. | |
| categories | Yes | The model's categories. | |
| nextAction | No |