Skip to main content
Glama

Change a Wiro Model Access rule

manage_model_access
DestructiveIdempotent

Change which models an account, member, API key, surface, or agent may run by updating, replacing, or removing access rules; preview changes and confirm before saving.

Instructions

Change one Model Access rule of the connected project's workspace: which models the whole wallet (account), one team member, one API key (project), one way in (surface) or one agent may run. A rule names categories, single models (by owner/slug) and what every other model gets (everything_else). update changes only the entries it names and keeps the rest (access unset takes an entry out), replace writes the whole rule, remove deletes it. Every rule that applies to a run must allow its model, so a narrower rule cannot open what a wider one blocks. Only the account owner, a team admin or the organization's owner can change rules; for anyone else this changes nothing. Without confirm: true it returns a change summary: the rule before and after, each entry that changes, and warnings, such as a wider rule that still blocks a model it allows. Show it, wait for a clear yes, then repeat the call exactly as its nextAction shows. If the rule changed in between, or the call asks for anything else, nothing is saved and a new summary comes back.

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": {
      "action": "<action>"
    },
    "name": "manage_model_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentNoScope agent: the deployed agent, by name or guid. Its rule also covers the chat model it answers with and its built-in voice (voice notes and voice replies, which count as Audio & Speech).
scopeNoWhose runs the rule covers: account (the whole wallet), member (one team member), project (one API key), surface (one way in) or agent (one deployed agent). Needed unless rule_guid names the rule.
actionYesupdate merges the entries given into the rule, replace writes the whole rule from the entries given, remove deletes the rule.
memberNoScope member, teams only: the member, by e-mail or user id.
modelsNoSingle models, up to 50 a call (a rule holds up to 500). unset, with update only, takes the entry out.
confirmNoSet true only by repeating the change summary's nextAction, after the user approved that summary.
projectNoScope project: the API key's project, by id or exact name. Left out, this connection's own key.
surfaceNoScope surface: web (the dashboard), api (an API key), mcp (this server, hosted at mcp.wiro.ai or run yourself), llm-gateway, extension, agent (deployed agents' own runs), studio (messages to Studio and the models it runs), workflow-agent (messages to the Workflow Agent) or workflow (workflow runs and their steps, unless an agent, Studio or the Workflow Agent started them).
rule_guidNoThe rule's guid from get_controls, in place of scope and its target.
categoriesNoCategories: image, video, audio, music, 3d, llm, utilities. A category also covers models added to it later; within a rule a model's own entry wins, then a block among its categories. unset, with update only, takes the entry out.
summary_idNoFrom the change summary's nextAction: the id of the change the user saw. Never set it yourself.
updated_atNoFrom the change summary's nextAction: the version of the rule the user saw. Never set it yourself.
everything_elseNoWhat every model the rule names neither by category nor by name gets. allow: every model except what the rule blocks; block: only what the rule allows. update keeps it when left out; replace and a new rule default to allow.

Output Schema

NameRequiredDescriptionDefault
afterYesThe rule after the change; null for a removal.
notesYes
actionYes
beforeYesThe rule before the change; null when there was none.
targetNo
changesNo
messageYes
outcomeYespreview: a change summary, nothing changed yet. saved or removed: done. unchanged: it was already so. refused: nothing was changed, and message says why.
warningsYes
workspaceYes
nextActionNo
dashboardUrlYes
changedSinceSummaryNoTrue when the rule changed after the summary the user saw: this is a new summary, and nothing was saved.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.0.0
    • changedInput schema / properties / surface / description
      Previous value: -"Scope surface: web (the dashboard), api (an API key, a local install of this server included), mcp (the hosted MCP server), llm-gateway, extension or agent."New value: +"Scope surface: web (the dashboard), api (an API key), mcp (this server, hosted at mcp.wiro.ai or run yourself), llm-gateway, extension, agent (deployed agents' own runs), studio (messages to Studio and the models it runs), workflow-agent (messages to the Workflow Agent) or workflow (workflow runs and their steps, unless an agent, Studio or the Workflow Agent started them)."
    • 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"
      +]
  2. Changed3 schema fields changedv1.9.1
    • changedInput schema / properties / agent / description
      Previous value: -"Scope agent: the deployed agent, by name or guid. Its rule also covers the chat model it answers with."New value: +"Scope agent: the deployed agent, by name or guid. Its rule also covers the chat model it answers with and its built-in voice (voice notes and voice replies, which count as Audio & Speech)."
    • changedOutput schema / properties / after / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "categories": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "access": {
      -              "enum": [
      -                "allow",
      -                "block"
      -              ],
      -              "type": "string"
      -            },
      -            "category": {
      -              "enum": [
      -                "image",
      -                "video",
      -                "audio",
      -                "music",
      -                "3d",
      -                "llm",
      -                "utilities"
      -              ],
      -              "type": "string"
      -            },
      -            "label": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "category",
      -            "label",
      -            "access"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "everythingElse": {
      -        "description": "What a model the rule names neither by category nor by name gets.",
      -        "enum": [
      -          "allow",
      -          "block"
      -        ],
      -        "type": "string"
      -      },
      -      "guid": {
      -        "type": "string"
      -      },
      -      "models": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "access": {
      -              "enum": [
      -                "allow",
      -                "block"
      -              ],
      -              "type": "string"
      -            },
      -            "id": {
      -              "type": "string"
      -            },
      -            "model": {
      -              "description": "The owner/slug; null for a model that is no longer on Wiro.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "title": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "model",
      -            "access"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "scope": {
      -        "description": "Whose runs the rule covers: the whole wallet (account), one team member, one API key (project), one way in (surface) or one agent.",
      -        "enum": [
      -          "account",
      -          "member",
      -          "project",
      -          "surface",
      -          "agent"
      -        ],
      -        "type": "string"
      -      },
      -      "summary": {
      -        "description": "The rule in plain words.",
      -        "type": "string"
      -      },
      -      "target": {
      -        "description": "The member's user id, the project id, the surface or the agent guid; absent for the whole wallet.",
      -        "type": "string"
      -      },
      -      "targetName": {
      -        "type": "string"
      -      },
      -      "thisConnection": {
      -        "description": "True for the API key this connection uses, the surface it counts as, or in a team the member it acts as.",
      -        "type": "boolean"
      -      },
      -      "updatedAt": {
      -        "description": "When the rule last changed, in Unix seconds.",
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "scope",
      -      "everythingElse",
      -      "categories",
      -      "models",
      -      "summary"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "categories": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "access": {
      +              "enum": [
      +                "allow",
      +                "block"
      +              ],
      +              "type": "string"
      +            },
      +            "category": {
      +              "enum": [
      +                "image",
      +                "video",
      +                "audio",
      +                "music",
      +                "3d",
      +                "llm",
      +                "utilities"
      +              ],
      +              "type": "string"
      +            },
      +            "label": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "category",
      +            "label",
      +            "access"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "everythingElse": {
      +        "description": "What a model the rule names neither by category nor by name gets.",
      +        "enum": [
      +          "allow",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "guid": {
      +        "type": "string"
      +      },
      +      "models": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "access": {
      +              "enum": [
      +                "allow",
      +                "block"
      +              ],
      +              "type": "string"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "model": {
      +              "description": "The owner/slug; null for a model that is no longer on Wiro.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "title": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "model",
      +            "access"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "scope": {
      +        "description": "Whose runs the rule covers: the whole wallet (account), one team member, one API key (project), one way in (surface) or one agent.",
      +        "enum": [
      +          "account",
      +          "member",
      +          "project",
      +          "surface",
      +          "agent"
      +        ],
      +        "type": "string"
      +      },
      +      "summary": {
      +        "description": "The rule in plain words.",
      +        "type": "string"
      +      },
      +      "target": {
      +        "description": "The member's user id, the project id, the surface or the agent guid; absent for the whole wallet.",
      +        "type": "string"
      +      },
      +      "targetName": {
      +        "type": "string"
      +      },
      +      "thisConnection": {
      +        "description": "True for the API key this connection uses, the surface it counts as, or in a team the member it acts as.",
      +        "type": "boolean"
      +      },
      +      "updatedAt": {
      +        "description": "When the rule last changed, in Unix seconds.",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "updatedBy": {
      +        "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"
      +      }
      +    },
      +    "required": [
      +      "scope",
      +      "everythingElse",
      +      "categories",
      +      "models",
      +      "summary"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedOutput schema / properties / before / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "categories": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "access": {
      -              "enum": [
      -                "allow",
      -                "block"
      -              ],
      -              "type": "string"
      -            },
      -            "category": {
      -              "enum": [
      -                "image",
      -                "video",
      -                "audio",
      -                "music",
      -                "3d",
      -                "llm",
      -                "utilities"
      -              ],
      -              "type": "string"
      -            },
      -            "label": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "category",
      -            "label",
      -            "access"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "everythingElse": {
      -        "description": "What a model the rule names neither by category nor by name gets.",
      -        "enum": [
      -          "allow",
      -          "block"
      -        ],
      -        "type": "string"
      -      },
      -      "guid": {
      -        "type": "string"
      -      },
      -      "models": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "access": {
      -              "enum": [
      -                "allow",
      -                "block"
      -              ],
      -              "type": "string"
      -            },
      -            "id": {
      -              "type": "string"
      -            },
      -            "model": {
      -              "description": "The owner/slug; null for a model that is no longer on Wiro.",
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            },
      -            "title": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "id",
      -            "model",
      -            "access"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "scope": {
      -        "description": "Whose runs the rule covers: the whole wallet (account), one team member, one API key (project), one way in (surface) or one agent.",
      -        "enum": [
      -          "account",
      -          "member",
      -          "project",
      -          "surface",
      -          "agent"
      -        ],
      -        "type": "string"
      -      },
      -      "summary": {
      -        "description": "The rule in plain words.",
      -        "type": "string"
      -      },
      -      "target": {
      -        "description": "The member's user id, the project id, the surface or the agent guid; absent for the whole wallet.",
      -        "type": "string"
      -      },
      -      "targetName": {
      -        "type": "string"
      -      },
      -      "thisConnection": {
      -        "description": "True for the API key this connection uses, the surface it counts as, or in a team the member it acts as.",
      -        "type": "boolean"
      -      },
      -      "updatedAt": {
      -        "description": "When the rule last changed, in Unix seconds.",
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "scope",
      -      "everythingElse",
      -      "categories",
      -      "models",
      -      "summary"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "categories": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "access": {
      +              "enum": [
      +                "allow",
      +                "block"
      +              ],
      +              "type": "string"
      +            },
      +            "category": {
      +              "enum": [
      +                "image",
      +                "video",
      +                "audio",
      +                "music",
      +                "3d",
      +                "llm",
      +                "utilities"
      +              ],
      +              "type": "string"
      +            },
      +            "label": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "category",
      +            "label",
      +            "access"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "everythingElse": {
      +        "description": "What a model the rule names neither by category nor by name gets.",
      +        "enum": [
      +          "allow",
      +          "block"
      +        ],
      +        "type": "string"
      +      },
      +      "guid": {
      +        "type": "string"
      +      },
      +      "models": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "access": {
      +              "enum": [
      +                "allow",
      +                "block"
      +              ],
      +              "type": "string"
      +            },
      +            "id": {
      +              "type": "string"
      +            },
      +            "model": {
      +              "description": "The owner/slug; null for a model that is no longer on Wiro.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "title": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "model",
      +            "access"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "scope": {
      +        "description": "Whose runs the rule covers: the whole wallet (account), one team member, one API key (project), one way in (surface) or one agent.",
      +        "enum": [
      +          "account",
      +          "member",
      +          "project",
      +          "surface",
      +          "agent"
      +        ],
      +        "type": "string"
      +      },
      +      "summary": {
      +        "description": "The rule in plain words.",
      +        "type": "string"
      +      },
      +      "target": {
      +        "description": "The member's user id, the project id, the surface or the agent guid; absent for the whole wallet.",
      +        "type": "string"
      +      },
      +      "targetName": {
      +        "type": "string"
      +      },
      +      "thisConnection": {
      +        "description": "True for the API key this connection uses, the surface it counts as, or in a team the member it acts as.",
      +        "type": "boolean"
      +      },
      +      "updatedAt": {
      +        "description": "When the rule last changed, in Unix seconds.",
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "updatedBy": {
      +        "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"
      +      }
      +    },
      +    "required": [
      +      "scope",
      +      "everythingElse",
      +      "categories",
      +      "models",
      +      "summary"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Addedv1.9.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare destructive=true and openWorld=true, but the description adds substantial context on top: the two-phase confirm flow, what the pre-confirm call returns (before/after rule, changed entries, warnings), and what happens if the rule changed between calls (nothing saved, new summary returned). That is exactly the operational detail the annotations cannot convey.

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?

Purpose and scope are front-loaded and nearly every clause carries real information. However, it is delivered as one dense paragraph with no separation of the confirm workflow, permissions and precedence semantics, which makes the approval protocol harder to extract than it needs to be.

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?

For a 13-parameter destructive mutation tool, the definition covers eligibility, merge vs replace semantics, precedence interactions, and the full confirm/nextAction protocol. An output schema exists and the description still usefully characterizes the summary response, so nothing an agent needs before calling is missing.

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 description coverage is 100%, so every parameter including the enum values for action, scope, access and everything_else is already documented. The description largely restates the action semantics that the schema's action property already spells out, and adds only the general precedence rule that every applicable rule must allow a model.

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 opening sentence gives a specific verb and resource ("Change one Model Access rule of the connected project's workspace") and enumerates the five scopes the rule can cover, so the agent knows exactly what object is being mutated. It does not name the read-side sibling (check_model_access) to draw the contrast explicitly, which keeps it just short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states precisely when each action applies (update merges named entries, replace writes the whole rule, remove deletes it) and when to use rule_guid instead of scope plus target. It also states the eligibility condition explicitly — only the account owner, a team admin or the organization's owner can change rules — and warns that a narrower rule cannot open what a wider rule blocks.

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