Skip to main content
Glama

Improve a link's LFG stack

update_stack
Destructive

Improves the LFG stack behind an LFG link the person made: adds research topics (the LFG agent finds sources for each, which takes about a minute), adds sources by link, adds notes that tell the LFG agent what the person cares about, removes topics or sources that are not earning their place, and with set_interest replaces what the link is for when the person changes their mind. Adding never removes or rewrites what is already there; set_interest is the one field that replaces. Removing a topic lets go of only the sources found for that topic. For a link that already exists; the sources a new topic brought show in its stack a minute later. It does not change how or when the link reaches anyone. When other people ride the link, its last research topic cannot be removed.

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": {
      "id": "<id>"
    },
    "name": "update_stack"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe link's id.
add_notesNoNotes on what the person cares about or wants skipped, or what is already known about the subject, in plain words: "only graded cards, no bulk lots". The LFG agent reads them to plan, to pick what goes in the brief and to judge; they are not crawled. For something to do each day (a workout, dinners, a practice, a lesson), add what you know that fits it to them: their goal, level, time, equipment, diet, injuries or likes, so each day's session is made for them. They stay private.
add_sourcesNoSources to read, each a full link to a page or feed: "https://www.federalreserve.gov/feeds/press_all.xml". Or, to say what to pull from one and why it is there, an object: { "link": "https://cointelegraph.com/rss", "pull": ["company", "amount", "investors"], "why": "where crypto rounds are reported" }. pull and why are optional; read_stack shows both.
add_researchNoTopics for the LFG agent to find sources on, one short phrase each: "graded Charizard sales", "the Fed". One subject per topic; several topics beat one long sentence.
set_interestNoWhat the link is for now, in the person's words, in place of what it was for before: "acoustic guitars from $200 to $400, with daily inspiration". It replaces the old interest, where add_notes only adds to it. The plan is then looked at again against it: sources that no longer fit are dropped and new ones found, and its schedule and how it reaches the person stay as they are. For a link the person made that explores or monitors something.
remove_sourcesNoSources to stop reading, each as read_stack lists it (its link or target).
remove_researchNoResearch topics to stop, exactly as read_stack lists them.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • changedInput schema / properties / add_sources / description
      Previous value: -"Sources to read, each a full link to a page or feed: \"https://www.federalreserve.gov/feeds/press_all.xml\"."New value: +"Sources to read, each a full link to a page or feed: \"https://www.federalreserve.gov/feeds/press_all.xml\". Or, to say what to pull from one and why it is there, an object: { \"link\": \"https://cointelegraph.com/rss\", \"pull\": [\"company\", \"amount\", \"investors\"], \"why\": \"where crypto rounds are reported\" }. pull and why are optional; read_stack shows both."
    • addedInput schema / properties / add_sources / items / anyOf
      Added value: +[
      +  {
      +    "maxLength": 2000,
      +    "minLength": 4,
      +    "type": "string"
      +  },
      +  {
      +    "properties": {
      +      "link": {
      +        "maxLength": 2000,
      +        "minLength": 4,
      +        "type": "string"
      +      },
      +      "pull": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "maxLength": 40,
      +              "type": "string"
      +            },
      +            "maxItems": 8,
      +            "type": "array"
      +          },
      +          {
      +            "maxLength": 536,
      +            "type": "string"
      +          }
      +        ]
      +      },
      +      "why": {
      +        "maxLength": 160,
      +        "minLength": 2,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "link"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / add_sources / items / maxLength
      Removed value: -2000
    • removedInput schema / properties / add_sources / items / minLength
      Removed value: -4
    • removedInput schema / properties / add_sources / items / type
      Removed value: -"string"
    • removedInput schema / properties / id / format
      Removed value: -"uuid"
    • changedInput schema / properties / id / pattern
      Previous value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"New value: +"^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
    • addedInput schema / properties / set_interest
      Added value: +{
      +  "description": "What the link is for now, in the person's words, in place of what it was for before: \"acoustic guitars from $200 to $400, with daily inspiration\". It replaces the old interest, where add_notes only adds to it. The plan is then looked at again against it: sources that no longer fit are dropped and new ones found, and its schedule and how it reaches the person stay as they are. For a link the person made that explores or monitors something.",
      +  "maxLength": 500,
      +  "minLength": 4,
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"The alarm's id."New value: +"The link's id."
  3. Changed2 schema fields changed
    • changedInput schema / properties / add_notes / description
      Previous value: -"Notes on what the person cares about or wants skipped, or what is already known about the subject, in plain words: \"only graded cards, no bulk lots\". Rocco reads them to plan, to pick what goes in the brief and to judge; they are not crawled."New value: +"Notes on what the person cares about or wants skipped, or what is already known about the subject, in plain words: \"only graded cards, no bulk lots\". The LFG agent reads them to plan, to pick what goes in the brief and to judge; they are not crawled. For something to do each day (a workout, dinners, a practice, a lesson), add what you know that fits it to them: their goal, level, time, equipment, diet, injuries or likes, so each day's session is made for them. They stay private."
    • changedInput schema / properties / add_research / description
      Previous value: -"Topics for Rocco to find sources on, one short phrase each: \"graded Charizard sales\", \"the Fed\". One subject per topic; several topics beat one long sentence."New value: +"Topics for the LFG agent to find sources on, one short phrase each: \"graded Charizard sales\", \"the Fed\". One subject per topic; several topics beat one long sentence."
  4. Changed5 schema fields changed
    • changedInput schema / properties / add_notes / description
      Previous value: -"Notes on what the person cares about or wants skipped, in plain words: \"only graded cards, no bulk lots\". Rocco reads them to plan and to judge; they are not crawled."New value: +"Notes on what the person cares about or wants skipped, or what is already known about the subject, in plain words: \"only graded cards, no bulk lots\". Rocco reads them to plan, to pick what goes in the brief and to judge; they are not crawled."
    • changedInput schema / properties / add_notes / items / maxLength
      Previous value: -600New value: +4000
    • changedInput schema / properties / add_notes / maxItems
      Previous value: -3New value: +10
    • changedInput schema / properties / add_research / maxItems
      Previous value: -3New value: +10
    • changedInput schema / properties / add_sources / maxItems
      Previous value: -5New value: +40
  5. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, openWorldHint=true), the description discloses the exact destruction boundary: adding never removes or rewrites, set_interest is the one replacing field, and removing a topic releases only the sources found for it. It also surfaces timing (research takes about a minute, results appear a minute later) and an authorization-like constraint (the last research topic cannot be removed when other people ride the link), which is meaningful context an agent cannot infer from the annotations alone.

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?

A single front-loaded paragraph with the core purpose in the first clause and no filler sentences; the append-vs-replace distinction arrives early where it matters most. It is dense and runs long as one block, but every clause carries operational information.

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 7-parameter destructive mutation with no output schema, the description covers the full picture: what is mutated, what is preserved, async latency before results are visible, and the one constraint that can block a removal. Nothing an agent needs in order to call this safely is missing.

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 the baseline is 3, but the description adds real semantics: set_interest replaces the prior interest while add_notes only appends, removal arguments must match what read_stack lists, and set_interest triggers re-planning where unfitting sources are dropped and new ones found. That is added meaning beyond the schema text rather than restatement.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ("Improves the LFG stack behind an LFG link") and enumerates the concrete sub-operations: add research, add sources, add notes, remove topics/sources, and replace interest via set_interest. It scopes itself negatively ("It does not change how or when the link reaches anyone"), which separates it from scheduling/delivery tools, though it never names a sibling tool outright.

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 states the precondition clearly ("For a link that already exists" / "a link the person made that explores or monitors something") and explains the decision point for set_interest ("when the person changes their mind"). It does not name an explicit alternative tool for editing adjacent link attributes, so routing guidance stops just short of the top band.

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.