Skip to main content
Glama

Update agent link

update_agent_link
DestructiveIdempotent

Edita um link de entrada (list_agent_links): nome, texto e/ou o agente para onde ele leva. Mande só o que muda. O id continua o mesmo, então a contagem de conversas e de fechadas é mantida (apagar e criar de novo zera). O número do link não muda. Ao trocar o texto, troque também onde o link está publicado (site, bio, anúncio): o endereço wa.me devolvido já vem com o texto novo, e quem tocar no link antigo cai na regra normal do número.

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": {
      "link_id": "<link_id>"
    },
    "name": "update_agent_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
nomeNoNome da origem (até 40)
textoNoTexto pronto novo (8 a 200), único no número
link_idYesid do link (list_agent_links)
target_user_idNo(Só o admin da plataforma) userId da conta a operar
agent_profile_idNoAgente para onde o link leva (list_agent_profiles); precisa trabalhar no número do link

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond annotations, it discloses important mutation behavior: the id stays the same, conversation and closed counts are preserved, the link number does not change, and old published links fall back to the number's normal rule. It also notes that the returned wa.me address includes the new text. This is rich context for a destructive, idempotent update and does not contradict the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core action and then gives tightly relevant behavioral caveats. Every sentence earns its place: partial-update instruction, count preservation, number stability, and publication warning are all operationally useful.

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 mutation tool with no output schema, the description supplies enough context to call it safely: what changes, what is preserved, how old links behave, and what the returned wa.me address contains. The remaining parameter details are fully covered by the schema.

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 coverage is 100%, so all five parameters are already documented. The description adds useful semantics around partial updates, link_id stability, and the downstream effect of changing texto, but it does not elaborate on target_user_id or agent_profile_id beyond the schema.

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 description names a specific verb and resource: editing an inbound link, including name, text, and destination agent. It clearly distinguishes this as a partial update of an existing link via list_agent_links, rather than creation or deletion.

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?

It gives clear operational guidance: send only changed fields, preserve the id, and avoid delete-and-recreate because that resets conversation counts. It also warns to update published placements when changing the text. It does not explicitly enumerate create_agent_link/delete_agent_link as alternatives, so it stops short of a full when/when-not routing statement.

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