Skip to main content
Glama

Add a resource

add_resource
DestructiveIdempotent

Adds a non-book web link or an existing named resource to the signed-in user's Linko library through Linko's add-to-library flow. Incomplete metadata of an existing link may be refreshed and replaced. Books are added with add_book (title, author, ISBN or catalog book_id), not as a link to a book page.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "add_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
linkNoFull http or https address of a web page to save (an article, video, podcast episode or post), at most 2048 characters. Required unless resource_name is given.
resource_nameNoExact title of a resource already in the user's library; Linko refreshes its details. Required unless link is given.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedInput schema / properties / async_labeling
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "boolean"
      -    },
      -    {
      -      "type": "string"
      -    }
      -  ],
      -  "default": true,
      -  "title": "Async Labeling"
      -}
    • removedInput schema / properties / book_id
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "title": "Book Id"
      -}
    • removedInput schema / properties / completed
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "boolean"
      -    },
      -    {
      -      "type": "string"
      -    }
      -  ],
      -  "default": false,
      -  "title": "Completed"
      -}
    • changedInput schema / properties / link / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 2048,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / link / description
      Added value: +"Full http or https address of a web page to save (an article, video, podcast episode or post), at most 2048 characters. Required unless resource_name is given."
    • changedInput schema / properties / resource_name / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 300,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / resource_name / description
      Added value: +"Exact title of a resource already in the user's library; Linko refreshes its details. Required unless link is given."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true; the description adds context the annotations cannot convey, namely that this goes through Linko's add-to-library flow and that an existing link's incomplete metadata may be refreshed and replaced – which explains why a nominally 'add' operation is destructive. It also implies an authenticated user context. Missing are any notes on what happens when the same link already exists, or failure modes.

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?

Three sentences, front-loaded with the core action, then the mutation caveat, then the sibling routing rule. Every sentence carries information an agent needs; nothing is redundant with the title or annotations.

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?

With an output schema present and rich annotations, the description only needs to cover routing, auth context, and side effects – all of which it does. The one residual gap is that the precise scope of the destructive replacement for an existing resource is only hinted at rather than stated plainly.

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 meaning: link must be a non-book web page (articles, video, podcast, post implied by the flow), and resource_name targets an already-library-held resource whose details get refreshed. That clarifies the intended value of each parameter beyond the schema's type/default 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?

Uses a specific verb ('Adds') and precise resource ('non-book web link or an existing named resource') and scopes it to the signed-in user's Linko library. It also explicitly separates this from add_book, so an agent can distinguish 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit exclusion and a routing rule: books go to add_book with title/author/ISBN or book_id, not as a link to a book page. It also distinguishes the two paths here (new link vs. existing resource_name). What it does not address is when to prefer this over other save flows such as note-saving siblings, so it is strong but not fully exhaustive.

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