Skip to main content
Glama

Refresh an agent knowledge source

refresh_agent_knowledge

Refresh an agent 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 agent 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 agent 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": {
      "agentId": "<agentId>",
      "knowledgeId": "<knowledgeId>"
    },
    "name": "refresh_agent_knowledge"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentIdYesIdentifier of the voice agent. Accepted either as the public form `agent_12` or as the bare number `12`; the prefix is stripped before the lookup.
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?

Beyond the annotations, the description discloses immediate re-reading, replacement of stored content, scheduled website behavior, URL-only restrictions with a 400 error, ownership/account checks with a 404 error, and that no request body is accepted. These details materially exceed the annotation hints.

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?

The description is front-loaded and mostly waste-free, with clear sentences covering behavior and constraints. The only notable redundancy is restating the tool title at the start.

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, no-body mutation tool with no output schema, the description covers trigger conditions, type restrictions, ownership checks, error codes, and the absence of a request body. It does not describe the success response, which is a minor gap but not an invocation blocker.

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 agentId and knowledgeId are already documented in the input schema. The description adds useful constraints: knowledgeId must refer to a url-type entry, and the entry must belong to the agent and account, though it does not add per-parameter syntax.

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 uses a specific verb ('Refresh') and resource ('agent knowledge source'), then states that it re-reads a URL source and replaces stored content. This clearly narrows the operation to immediate URL knowledge refresh, distinguishing it from add/list/delete knowledge siblings.

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?

It explicitly states when to use the tool: when a page changed and the agent should know immediately, as opposed to scheduled website re-reads. It also states when not to use it: text and file entries cannot be refreshed and are rejected with 400.

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.