Skip to main content
Glama

Refresh a chatbot knowledge source

refresh_chatbot_knowledge

Refresh a chatbot knowledge source

Re-reads a URL knowledge source from its source page immediately and replaces the stored content with what the page says now. Website sources are also re-read on a schedule, so this is for the case where a page changed and the chatbot should know about it at once. Only entries of type url can be refreshed; text and file entries are rejected with 400. The entry must belong to this chatbot and to the account behind the key, otherwise the request is rejected with 404. This endpoint takes no request body.

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": {
      "chatbotId": "<chatbotId>",
      "knowledgeId": "<knowledgeId>"
    },
    "name": "refresh_chatbot_knowledge"
  }
}

Input Schema

NameRequiredDescriptionDefault
chatbotIdYesNumeric identifier of the chatbot.
knowledgeIdYesIdentifier of the knowledge entry to refresh.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the annotations (which only say readOnlyHint=false, destructiveHint=false, idempotentHint=false) by disclosing exactly what is mutated — stored content is overwritten with what the page says now — plus the rejection codes (400 for non-url entries, 404 for entries not owned by this chatbot/account) and the fact that no request body is expected. Nothing here contradicts 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.

Conciseness4/5

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

Front-loaded with the purpose, then schedule-vs-immediate rationale, then eligibility and error rules. Efficient overall, though the leading line merely repeats the tool title and the 'This endpoint takes no request body' sentence is low-value given the schema already shows only two parameters.

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 two-parameter mutation with no output schema, the description covers eligibility, ownership/auth scope, timing, and failure codes, which is enough to call it correctly. The only gap is that nothing describes what the refresh returns or how to confirm the new content was picked up, which matters slightly more because no output schema exists.

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 a relational constraint not expressible in the schema: the knowledge entry must belong to the named chatbot and to the account behind the key, otherwise 404. That cross-parameter ownership rule is genuine added meaning beyond the two integer fields.

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 resource ('Refresh a chatbot knowledge source') and then defines the mechanics precisely: the URL source is re-read from its source page immediately and stored content is replaced with current page content. It also scopes the operation ('Only entries of type `url` can be refreshed'), which separates it from add/delete knowledge siblings without needing to name them.

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?

Gives an explicit when-to-use rule ('Website sources are also re-read on a schedule, so this is for the case where a page changed and the chatbot should know about it at once') and an explicit when-not ('text and file entries are rejected with 400'). The agent knows both the triggering condition and the boundary case.

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.