Skip to main content
Glama

sandbox_wire

Destructive

Point a service name inside the box at your process in the box (mode box: name:port reaches targetPort) or at externalBaseUrl (mode external). Only the routing changes, so your process can already be running. With port (and targetPort) it declares a new name instead; with port and fromBox the name links to another of your boxes. With web and no mode it only marks whether a person opens the service in a browser, which gives it its own URL. With scenePaths instead of a service, the box forwards those paths on sceneUrl to externalBaseUrl, so a page it serves can call the environment's API same-origin. Returns the whole wiring table.

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": {
      "id": "<id>"
    },
    "name": "sandbox_wire"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
envNoWith version: extra environment variables for its container, applied after the environment's settings file (a name in both takes this value). Wiring the version again replaces them. Shown in sandbox_status, so put no secrets here
webNoMark this service as something a person opens in a browser to see the product itself, or unmark it with false. It is what gives the service its own URL (services[].url in sandbox_status) and puts the box's Use it button in their app. Set it here when the box is already running and you did not mark it at start: {service, web: true} with no mode changes only the mark, not where the service goes; with port it marks the service you declare
modeNobox: the container on the box; external: externalBaseUrl. Leave it out when you only pass web
portNoDeclare this service now, on a box that is already running: the name resolves inside the box from then on and name:port reaches your process on targetPort. Without it the box only knows the names given to sandbox_start. Address ranges still have to be declared at sandbox_start
fromBoxNoWith port: link the name to another of your boxes instead, so name:port here reaches fromPort there. Pass it again with a different box or fromPort to re-point the link
serviceNoName given to sandbox_start, or a new name when you pass port
versionNoWith port: run a published version (label or versionId) under this name in the running box; it starts in the background, see sandbox_status services[].run
fromPortNoWith fromBox: the port in that box (default: the targetPort of its service with the same name, else port)
scenePathsNoInstead of a service: path prefixes on sceneUrl that the box forwards to externalBaseUrl, e.g. ["/api"]. A page loaded from sceneUrl can then call them same-origin, so the environment's API needs no CORS entry for the box. [] clears them
targetPortNoWith port: the port your process listens on in the box (default: port). Required when port is 80 or 9095, which boxd uses itself
containerPortNoWith version: the port the image listens on, when it exposes none or several

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Useful behavior is disclosed beyond the readOnly=false, destructive=true, openWorld=true annotations: routing changes without restarting the process, rewiring a version replaces its env, and the call returns the whole wiring table. However, for a tool flagged destructive it does not warn that re-pointing a name breaks existing routes or that scenePaths [] removes forwarding, so the destructive consequence is only implied.

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?

There is no filler and the core routing statement is front-loaded, but the body is a single dense paragraph of stacked 'With X... with Y...' conditionals that is hard to scan for a 12-parameter tool. Splitting the conditional modes into distinct sentences or bullets would preserve the same content with far better structure.

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?

For a 12-parameter tool with nested objects and no output schema, the definition covers the mode matrix, the return value ('the whole wiring table'), and the fact that the process need not be restarted. Gaps are minor: no statement of what happens to conflicting prior wiring or of failure conditions.

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 description coverage is already 92%, so the baseline is 3, but the description adds real value the schema cannot: it explains how parameters compose conditionally (port alone declares; port with fromBox links; web with no mode only marks; scenePaths replaces a service). This combination logic is the main source of misuse risk and the description addresses it.

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 clause states a specific verb and resource: pointing a service name at an in-box process or at externalBaseUrl. It also anchors the tool relative to sandbox_start by noting the box otherwise only knows names given there, so an agent can distinguish the two, though it never names a sibling explicitly.

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?

Each mode is given a condition: mode box for in-box routing, mode external for externalBaseUrl, port to declare a new name, port plus fromBox to link another box, web alone to mark browser access, scenePaths instead of a service. What is missing is an explicit statement of when not to use it (e.g. declare ranges at sandbox_start) and no named alternative for rewiring versus restarting.

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.