Skip to main content
Glama

Publish a briq: its HTTPS URL, or a TCP endpoint

briq_expose
Destructive

Give a briq its HTTPS URL, on one port (https://-<4 random characters>., kept for the life of the briq). mode "private" opens only with the URL you get back: it carries a secret, briq turns away every request without it before it reaches the briq, and the browser keeps it as a cookie after the first visit. Use "private" whenever the person wants it private, protected or only for them; "public" is open to anyone on the internet. Visits to the URL count as use for its whole stack, so an exposed briq sleeps only when nobody uses it, and a visit to a sleeping one wakes it. By default a briq has one front-door URL: its front door (the one a recipe names, or the only port in ports) is published at once; another port moves the URL there and restarts the machine (processes start over, files on disk are kept). Without mode, a URL that already exists keeps the mode it has, so moving a private URL never opens it; a first URL is public. rotate: true gives a private URL a new token, for when the link went somewhere it should not have: the URL stays, the old token stops working; a public URL has none to rotate. Set additional: true to give an HTTP port a separate URL on supported environments, keeping the front door. The new URL inherits its mode and has an independent token. Repeat with the same port to keep that URL. briq_unexpose removes a URL by endpoint id. A briq declares at most 32 ports. Simplest: briq_run with expose. protocol other than "http" makes a TCP endpoint instead, for a client outside briq (psql, a BI tool, a laptop): -<10 random characters>.tcp. on the usual port of its protocol, TLS required. postgres (5432), mysql (3306), redis (6379), mongodb (27017), amqp (AMQPS 5671), bolt (Neo4j, 7687), grpc (6334). The database port of a recipe (briq_status lists them as databasePorts) answers with its full connection string, password included; another briq gets the address, to which you add its user and password. No token: the password is the gate, so mode does not apply, and the edge refuses a Postgres, Redis or MongoDB that lets anyone in. Only when the person wants to reach the service from outside: briqs of the stack reach it on its internal address already.

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>",
      "port": "<port>"
    },
    "name": "briq_expose"
  }
}

Input Schema

NameRequiredDescriptionDefault
briqYes
modeNo
portYes
rotateNoA new token for a private URL; the old one stops working
protocolNoWhat the port speaks: http (default) for an HTTPS URL, or a database protocol
additionalNoGive this HTTP port a separate URL, keeping the front door; supported environments only

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / additional
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "const": "true",
      +      "type": "string"
      +    },
      +    {
      +      "const": "false",
      +      "type": "string"
      +    }
      +  ],
      +  "description": "Give this HTTP port a separate URL, keeping the front door; supported environments only"
      +}
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations (destructive, non-idempotent, open-world) are matched and exceeded with concrete consequences: moving the URL to another port "restarts the machine (processes start over, files on disk are kept)", rotate keeps the URL but kills the old token, exposes make the briq sleep/wake on visits, and the edge refuses a Postgres/Redis/MongoDB with no password. Port cap of 32 and mode inheritance on re-expose are also disclosed.

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 core action and the resulting URL shape before branching into modes, side effects, and TCP. It is dense but essentially every clause carries a rule an agent cannot infer elsewhere; the only cost is that the single unbroken paragraph jumbles HTTP and TCP rules together, making it harder to scan 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 6-param, two-protocol, destructive tool with no output schema, the description still explains what comes back (a URL carrying a secret; a full connection string with password for a recipe's database port, an address otherwise) and covers all side effects and constraints. Nothing material is missing for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 50%, and the description compensates thoroughly for the undocumented `mode`, `port`, and `briq` params: mode semantics including inheritance when omitted, port as front door vs. moving the URL, and rotate/additional behavior (independent token, repeat with same port to keep the URL). This adds meaning well beyond the schema's enum lists.

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 and resource: "Give a briq its HTTPS URL, on one port", and immediately shows the resulting shape (https://<briq>-<4 random characters>.<domain>). It also carves out the TCP variant and names briq_unexpose as the inverse operation, so an agent can distinguish it from every sibling 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 Guidelines5/5

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

Explicit decision rules are given: use "private" whenever the person wants it private/protected/only for them, "public" for anyone; use `protocol` other than http only when the person needs to reach the service from outside, with the explicit when-not ("briqs of the stack reach it on its internal address already"). It also routes to briq_run with `expose` as the simplest path and to briq_unexpose for removal.

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.