Skip to main content
Glama

Proxy a domain to an app

set_proxy
DestructiveIdempotent

Serve a backend at this subdomain through the AgentDomains edge, which terminates TLS with its own certificate — this is how you get working HTTPS on an origin that has no certificate of its own (a bare IP-less PaaS host, a tunnel, an internal box). Unlike a forward, the URL stays on your domain and the response is proxied, not redirected. Claims the label first if needed. Like a forward, a proxy TAKES OVER the hostname: A/AAAA/CNAME records on the label itself are deleted and returned in 'replaced_records', while sub-label and TXT records are untouched. A proxy and a forward are mutually exclusive on one label. Caveat: apps that hardcode their own hostname (OAuth callbacks especially) may need your new hostname registered on their side.

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": {
      "label": "<label>",
      "origin": "<origin>"
    },
    "name": "set_proxy"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNoEmail, if this call also claims a new name on an account without one.
labelYesThe subdomain label, without the domain suffix (e.g. 'myapp' for myapp.makes.fyi).
domainNoWhich domain to act under: 'makes.fyi' (the default) or 'agentdomains.co'. The same label can exist under each, so pass this whenever you are not using the default.
originYesBackend hostname to proxy to, without a scheme (e.g. myapp.fly.dev). Must be a hostname, not an IP.
api_keyNoYour AgentDomains API key (adom_…). Only needed when this MCP connection has no `Authorization: Bearer` header, for example right after calling signup.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / api_key
      Added value: +{
      +  "description": "Your AgentDomains API key (adom_…). Only needed when this MCP connection has no `Authorization: Bearer` header, for example right after calling signup.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the destructiveHint/openWorldHint/idempotentHint annotations by spelling out exactly what is destroyed (A/AAAA/CNAME on the label, returned in 'replaced_records') and what is spared (sub-label and TXT records). It also discloses the implicit label claim and the TLS-termination behavior, which no annotation conveys.

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 forward contrast before the destructive side effects, and every sentence carries information. The single dense paragraph and parenthetical examples make it slightly harder to scan than it could be, but nothing is redundant.

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 destructive, open-world mutation with no output schema, the description covers the takeover semantics, the returned 'replaced_records' field, record-type exceptions, mutual exclusivity, and the origin-side caveat. An agent has everything needed to call it safely.

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 label, origin, domain, email, and api_key, including the no-scheme/hostname-only constraint. The description adds only a small amount of extra meaning — 'Claims the label first if needed' implicitly ties to the email parameter — so the baseline 3 applies.

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 specific verb+resource ('Serve a backend at this subdomain through the AgentDomains edge') and immediately distinguishes itself from the sibling set_forward ('the URL stays on your domain and the response is proxied, not redirected'). An agent can choose between the two without opening either 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?

Gives the positive condition (HTTPS on an origin with no certificate — PaaS host, tunnel, internal box) and names the alternative it is not (a forward), plus the hard exclusion that proxy and forward are mutually exclusive on one label. It also flags the caveat case (hardcoded hostname / OAuth callbacks) where the call needs extra setup on the app side.

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.