Skip to main content
Glama

Set links

set_links
Destructive

Replace every link on a profile or link page; for a few changes use edit_links. Pass ids from list_links to keep click history; omitted links are deleted with their click counts. Order is section order; at most 2 pinned, 50 in all. Same-group links show under the group name; null removes it. trackingEnabled:false links are not counted.

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": {
      "slug": "<slug>",
      "links": "<links>"
    },
    "name": "set_links"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYes
linksYes
expectedVersionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / links / items / additionalProperties
      Removed value: -false
    • changedInput schema / properties / links / items / properties / id / description
      Previous value: -"Existing link id from list_links; keeps click history."New value: +"Existing link id; keeps its click history."
    • removedInput schema / properties / links / items / properties / id / maxLength
      Removed value: -64
    • removedInput schema / properties / links / items / properties / id / minLength
      Removed value: -1
    • removedInput schema / properties / links / items / properties / label / minLength
      Removed value: -1
    • removedInput schema / properties / links / items / properties / url / maxLength
      Removed value: -2048
    • removedInput schema / properties / links / items / properties / url / minLength
      Removed value: -1
    • removedInput schema / properties / slug / minLength
      Removed value: -1
  2. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description goes further by specifying what is destroyed: omitted links and their click counts are deleted. It also discloses structural limits (max 2 pinned, 50 total) and that order equals section order. The only gap is that the destructive nature of expectedVersion conflicts or failed writes isn't discussed, but the core 'what gets lost' question is answered well beyond what annotations provide.

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?

Extremely dense but every clause carries information an agent needs: the replace semantics, the alternative, the history-preservation rule, the limits, and the field behaviors. The destructive rule is front-loaded ahead of the field details, and there is no filler.

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 destructive, non-idempotent replacement tool with no output schema and no parameter descriptions, the description covers the critical risk surface (deleted links lose click history, hard caps, ordering). The unresolved expectedVersion parameter is the one meaningful gap, since an agent cannot reason about version conflicts from this definition.

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 0%, so the description must carry parameter meaning — and it does for the nested link fields: id preserves click history, group labels section grouping and null clears it, trackingEnabled:false excludes from counting, and array order determines section order. However, expectedVersion is completely unexplained, which is significant for a destructive replace operation where concurrency conflicts could discard edits. slug is also left implicit.

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 and scope: 'Replace every link on a profile or link page,' making clear both the mutation type (full replacement) and the target resource. It immediately distinguishes itself from the sibling 'edit_links' by contrast, so an agent can pick between them 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?

Explicitly routes the agent: use this for wholesale replacement, use edit_links 'for a few changes.' It also names list_links as the source of ids needed to preserve click history, which is exactly the prerequisite an agent needs before calling.

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