Skip to main content
Glama

Resize a briq

briq_resize
Idempotent

Give a briq another size, or a bigger volume, and keep the briq: its disk, volume and URLs stay. Example: { briq: "bq_…", size: "medium", volumeGb: 20 }. A new size restarts a running briq: its processes start over, so finish or save work first. A stopped or sleeping briq takes it at its next start. A volume only grows. Applying growth may restart a running briq, so finish or save work first. Pass image and/or healthcheck to configure a stopped briq (null clears the healthcheck; omitted preserves it); it stays stopped and needs an explicit briq_start afterward. Checked like briq_run: sizes, disk and credits. Returns once it lands (up to 30 s); resizing means it is still on its way.

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": {
      "briq": "<briq>"
    },
    "name": "briq_resize"
  }
}

Input Schema

NameRequiredDescriptionDefault
briqYes
sizeNopico | micro | nano | small | medium | large | xlarge: the new size
imageNoNew image for a stopped briq; then start explicitly
volumeGbNoThe volume grown to this many GB; more than it has now
healthcheckNoStopped briq only: replace healthcheck; null clears it; omitted preserves it

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / healthcheck
      Added value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "cmd": {
      +          "items": {
      +            "maxLength": 8192,
      +            "type": "string"
      +          },
      +          "maxItems": 64,
      +          "minItems": 1,
      +          "type": "array"
      +        },
      +        "intervalMs": {
      +          "maximum": 4294967295000,
      +          "minimum": 500,
      +          "type": "integer"
      +        },
      +        "timeoutMs": {
      +          "maximum": 300000,
      +          "minimum": 1000,
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "cmd"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Stopped briq only: replace healthcheck; null clears it; omitted preserves it"
      +}
    • addedInput schema / properties / image
      Added value: +{
      +  "description": "New image for a stopped briq; then start explicitly",
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / size / description
      Previous value: -"nano | small | medium | large: the new size"New value: +"pico | micro | nano | small | medium | large | xlarge: the new size"
    • changedInput schema / properties / size / enum
      Previous value: -[
      -  "nano",
      -  "small",
      -  "medium",
      -  "large"
      -]New value: +[
      +  "pico",
      +  "micro",
      +  "nano",
      +  "small",
      +  "medium",
      +  "large",
      +  "xlarge"
      +]
  3. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly=false, destructive=false, idempotent=true): it warns that resizing restarts processes and work should be saved, that volume growth alone may restart, that configuration only applies to stopped briqs and leaves them stopped, and that it returns once the change lands (up to 30s) with a `resizing` pending state. These are exactly the operational risks an agent needs and are not present in the structured fields.

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?

Front-loaded with the outcome and an example, then grouped by case (running vs stopped, volume, config, return). The 'finish or save work first' warning is repeated for both size change and volume growth, which is a small redundancy but functionally justified emphasis.

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?

No output schema exists, yet the description explains the return behavior (waits up to 30s, `resizing` means in progress), the persistence of identity/URLs, and validation ('checked like briq_run: sizes, disk and credits'). For a 5-parameter mutation tool this covers everything needed to call it correctly.

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 80% and the schema already documents size enum, image, volumeGb growth semantics, and healthcheck null/omit behavior. The description adds an example payload showing size+volumeGb together, which is mild added value, but otherwise largely restates what the schema says.

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?

Opens with a specific verb+resource: change a briq's size or grow its volume while keeping the same briq (disk, volume, URLs preserved). That preservation clause is what separates it from briq_run/replace-style flows, so an agent can distinguish it from siblings without opening a schema.

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?

Gives concrete conditions: a new size restarts a running briq, a stopped or sleeping one takes it at next start, volume only grows, and configuring image/healthcheck leaves the briq stopped and requires an explicit briq_start. It doesn't explicitly route to alternatives for other cases (e.g., use briq_run instead of passing image on a running briq), so guidance is clear but not framed as when-not alternatives.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.