Skip to main content
Glama

update_workspace

Update workspace settings by ID: name, slug, description, default flag, metadata, rate limits, usage limits, guardrails, and API key config; only provided fields change and take effect immediately.

Instructions

Update a workspace's name, slug, description, default flag, or metadata by id, unlike update_workspace_member which changes role assignments within a workspace. Only provided fields change and updates take effect immediately; changing the slug can break URLs, API key references, and other external links, so confirm no dependencies first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoNew name for the workspace
slugNoNew slug for the workspace
metadataNoNew metadata key-value pairs
is_defaultNoSet as default workspace (1 = yes, 0 = no)
descriptionNoNew description
rate_limitsNoReplacement workspace rate-limit settings
usage_limitsNoReplacement workspace usage-limit settings
workspace_idYesThe workspace ID to update
input_guardrailsNoGuardrail IDs applied to workspace model inputs
output_guardrailsNoGuardrail IDs applied to workspace model outputs
user_api_key_configNoDefault config slug for workspace-user API keys, or null to clear

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesWhether the tool call succeeded and returned structured data
dataNoStructured success payload when ok is true
errorNoStructured error payload when ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.11.5
    • addedInput schema / properties / input_guardrails
      Added value: +{
      +  "description": "Guardrail IDs applied to workspace model inputs",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / output_guardrails
      Added value: +{
      +  "description": "Guardrail IDs applied to workspace model outputs",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / rate_limits
      Added value: +{
      +  "description": "Replacement workspace rate-limit settings",
      +  "items": {
      +    "properties": {
      +      "type": {
      +        "description": "Whether the limit counts requests or tokens",
      +        "enum": [
      +          "requests",
      +          "tokens"
      +        ],
      +        "type": "string"
      +      },
      +      "unit": {
      +        "description": "Rate window: requests per day, hour, or minute",
      +        "enum": [
      +          "rpd",
      +          "rph",
      +          "rpm"
      +        ],
      +        "type": "string"
      +      },
      +      "value": {
      +        "description": "Maximum count in the selected rate window",
      +        "maximum": 9007199254740991,
      +        "minimum": 0,
      +        "type": "integer"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / usage_limits
      Added value: +{
      +  "description": "Replacement workspace usage-limit settings",
      +  "items": {
      +    "properties": {
      +      "alert_threshold": {
      +        "description": "Percentage of the limit that triggers an alert",
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "credit_limit": {
      +        "description": "Maximum cost or token usage for the workspace",
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "next_usage_reset_at": {
      +        "anyOf": [
      +          {
      +            "format": "date-time",
      +            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Next reset timestamp in ISO 8601 format"
      +      },
      +      "periodic_reset": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "monthly",
      +              "weekly"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Built-in weekly or monthly reset cadence"
      +      },
      +      "periodic_reset_days": {
      +        "anyOf": [
      +          {
      +            "maximum": 365,
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Custom reset cadence in days, from 1 through 365"
      +      },
      +      "type": {
      +        "description": "Whether the limit measures cost or tokens",
      +        "enum": [
      +          "cost",
      +          "tokens"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / user_api_key_config
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Default config slug for workspace-user API keys, or null to clear"
      +}
  2. Addedv1.0.1
  3. Removed
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already convey readOnly=false, idempotent=false, and destructive=false. The description adds non-obvious behavior: partial-update semantics, immediate effect, and the side-effect risk of changing the slug. No contradiction with annotations.

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

Conciseness5/5

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

Two sentences with front-loaded purpose and immediately useful caveats. Every clause adds information; there is no filler or repetition of schema details.

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 an 11-parameter update with nested objects and an output schema, the description is compact but sufficient: it identifies the target, partial-update behavior, immediacy, and the key side effect. The fully covered schema handles the remaining parameter details, and the output schema makes return-value prose unnecessary.

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 the schema already documents all 11 parameters. The description reinforces that fields are optional and only provided ones are changed, but it does not add per-parameter meaning or format details beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete operation ('Update a workspace's name, slug, description, default flag, or metadata by id') with a specific resource and target identifier. It also distinguishes itself from the closest sibling, update_workspace_member, preventing role-assignment confusion.

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?

Names update_workspace_member as the alternative for role assignments, giving an explicit when-not condition. It also provides practical guardrails: only provided fields change, updates take effect immediately, and slug changes can break external references.

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

Deploy Server

Other Tools