Skip to main content
Glama

Update knowledge source

asks_update_source
DestructiveIdempotent

Overwrites a text/Q&A source's content (the previous text is gone and it retrains at once), renames it, turns it on/off for the AI, or changes a website's crawl settings. A website URL can't change — delete and recreate. Treat a content change as destructive: confirm before overwriting text the user may not have a copy of.

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": {
      "source_id": "<source_id>"
    },
    "name": "asks_update_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew name.
answerNoqna: replacement answer.
contentNotext: replacement content.
refreshNowebsite: automatic re-crawl cadence (as shown by asks_get_source).
max_pagesNo
questionsNo
source_idYesThe knowledge source id (from a list/search tool — never guess it).
ai_enabledNoWhether the AI agent uses this source.
include_urlsNo
exclude_pathsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds genuinely new behavior: the previous text is irrecoverable ('the previous text is gone'), the source retrains immediately, and a website URL is immutable. The explicit confirmation instruction for content overwrites is exactly the kind of operational context annotations cannot convey.

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?

Two sentences, front-loaded with the mutation list, followed by the immutability constraint and the safety warning in priority order. Every clause carries distinct information with 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 10-parameter destructive mutation with no output schema, the description covers the critical unknowns: irreversibility of content, immediate retraining, URL immutability, and a confirmation rule. It stops short of describing the response or whether omitted fields are left untouched, which would fully close the loop for an agent.

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?

With 60% schema coverage across 10 parameters, the description compensates well by mapping parameters to source types: 'content' for text sources, 'answer'/'questions' context for Q&A, and 'refresh'/'max_pages'/'include_urls'/'exclude_paths' as website crawl settings. It does not clarify partial-update semantics (whether unspecified fields are preserved) or how questions and answer interact, which keeps it short of a 5.

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 the resource (a knowledge source) and enumerates the exact mutations it performs: overwriting text/Q&A content, renaming, toggling AI usage, and editing website crawl settings. It even carves out the operation it cannot do (changing a website URL) and points to the delete/recreate path instead, so an agent can distinguish it from create_source and sync_source without opening a 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?

It gives a clear when-to-use condition plus an explicit caution: 'Treat a content change as destructive: confirm before overwriting text the user may not have a copy of,' and rules out URL changes. What it lacks is an explicit statement of when to prefer this over siblings like asks_sync_source or asks_create_source, leaving that routing to inference.

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