Skip to main content
Glama

Change an AI agent’s public link

set_agent_public_link
DestructiveIdempotent

Publish, disable, or rename a hosted AI agent's public link, change its conversation limits, turn live conversations on or off, or replace the shared conversations on its page. Confirm the user's intent before publishing, changing a public address, raising or removing a limit, or sharing a recording. Publishing allows anonymous visitors to start browser calls billed to this workspace, unless live_enabled is false. Renaming releases the old address. Disabling keeps the address, limits and recordings. A first publish requires slug and enabled=true. recordings replaces the whole list (at most 5, from list_agent_public_link_recording_candidates); a call not made by the workspace's own team needs consent_confirmed=true, which only the user may confirm. Sending recordings needs recordings:read, and the result lists the shared conversations only with it. Set phone_number_ids to replace the public list, or [] to clear it. Selecting numbers requires numbers:read and the user’s intent to publish those digits. Omit any field you want to preserve.

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": {
      "agent_id": "<agent_id>"
    },
    "name": "set_agent_public_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoThe last segment of the URL. After trimming and lowercasing it must have 3 to 40 characters and contain letters a-z, digits, and single hyphens between words. Reserved addresses are refused.
enabledNoTrue makes a hosted AI agent publicly callable. False keeps the URL reserved and turns off public access.
agent_idYes
project_idNo
recordingsNoReplaces the whole list of shared conversations shown on the page, in this order: at most 5, each a finished call with this AI agent whose recording is 15 s to 10 min long. Any refused entry refuses the whole request with 422 and a code per entry. Recordings stay while they are on the page.
live_enabledNoFalse keeps the page and its recordings up but lets no visitor start a conversation.
recordings_etagNoSent with recordings: the recordings_etag last read. A different current list answers 409.
phone_number_idsNoReplace the ordered list of inbound numbers shown on the public Talk page. Each added number must already route to this AI agent. A nonempty list requires numbers:read. Send [] to clear it, or omit it to preserve the current selection.
consent_confirmedNoSent with recordings. True confirms the callers agreed to their recording being shared outside the workspace; required when a newly added recording is of a call not made by the workspace's team.
concurrent_conversationsNoHow many conversations may run on this link at the same time: 3 until changed, 1 to max_concurrent_conversations. One visitor holds at most 2 at once whatever this is.
daily_conversations_per_visitorNoHow many conversations one visitor may start on this link in a UTC day: 10 until changed, 1 to 1000, or null for no limit. Every conversation is billed to the workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / phone_number_ids
      Added value: +{
      +  "description": "Replace the ordered list of inbound numbers shown on the public Talk page. Each added number must already route to this AI agent. A nonempty list requires numbers:read. Send [] to clear it, or omit it to preserve the current selection.",
      +  "items": {
      +    "pattern": "^[A-Za-z0-9_]{1,80}$",
      +    "type": "string"
      +  },
      +  "maxItems": 50,
      +  "type": "array",
      +  "uniqueItems": true
      +}
  2. Changed4 schema fields changed
    • addedInput schema / properties / consent_confirmed
      Added value: +{
      +  "description": "Sent with recordings. True confirms the callers agreed to their recording being shared outside the workspace; required when a newly added recording is of a call not made by the workspace's team.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / live_enabled
      Added value: +{
      +  "description": "False keeps the page and its recordings up but lets no visitor start a conversation.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / recordings
      Added value: +{
      +  "description": "Replaces the whole list of shared conversations shown on the page, in this order: at most 5, each a finished call with this AI agent whose recording is 15 s to 10 min long. Any refused entry refuses the whole request with 422 and a code per entry. Recordings stay while they are on the page.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "recording_id": {
      +        "type": "string"
      +      },
      +      "title": {
      +        "description": "Plain text the visitor sees above the player.",
      +        "maxLength": 80,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "recording_id",
      +      "title"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 5,
      +  "type": "array"
      +}
    • addedInput schema / properties / recordings_etag
      Added value: +{
      +  "description": "Sent with recordings: the recordings_etag last read. A different current list answers 409.",
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / concurrent_conversations
      Added value: +{
      +  "description": "How many conversations may run on this link at the same time: 3 until changed, 1 to max_concurrent_conversations. One visitor holds at most 2 at once whatever this is.",
      +  "maximum": 4,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / daily_conversations_per_visitor
      Added value: +{
      +  "description": "How many conversations one visitor may start on this link in a UTC day: 10 until changed, 1 to 1000, or null for no limit. Every conversation is billed to the workspace.",
      +  "maximum": 1000,
      +  "minimum": 1,
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
  4. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, but the description goes well beyond them: publishing exposes the agent to anonymous visitors billed to the workspace, renaming releases the old address, disabling keeps address/limits/recordings, and failed recordings entries return 422 with a per-entry code while a stale etag returns 409. It also discloses the permission requirements (recordings:read, numbers:read) that determine what the result contains. The only minor gap is that it does not describe rollback/irreversibility for the rename case beyond the address release.

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?

The purpose is front-loaded and nearly every sentence carries operational weight (billing consequences, etag conflicts, permission gates, omission semantics). It is dense — the first sentence strings together six distinct operations in one breath — but there is very little filler, so the length is largely earned.

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 destructive mutation tool with no output schema, the description covers the consequences of each mode, the permission and consent prerequisites, the error behaviors (409/422), and what the response lists. An agent has enough to decide, act, and anticipate refusal conditions without further context.

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?

Although schema coverage is 82% and the baseline would be 3, the description adds genuinely new meaning the schema cannot: recordings entries must come from list_agent_public_link_recording_candidates, consent_confirmed is a user-only assertion, phone_number_ids selection requires numbers:read and the user's intent to publish those digits, and empty-vs-omitted semantics are spelled out. That is substantive interpretation on top of already-decent schema text.

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?

The opening sentence names the specific verbs (publish, disable, rename) and the resource (hosted AI agent's public link), and enumerates the additional facets it controls (conversation limits, live conversations, shared recordings). It also distinguishes itself from the read-side sibling by naming list_agent_public_link_recording_candidates as the source of recordings.

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?

It gives explicit when-to-use guidance (a first publish requires slug and enabled=true), explicit consent conditions (consent_confirmed is required for calls not made by the workspace's own team and only the user may confirm), and an explicit preservation rule ("Omit any field you want to preserve"). It also states that the user's intent must be confirmed before publishing, changing an address, raising a limit, or sharing a recording — clear guardrails an agent can act on.

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.

Resources