Skip to main content
Glama

kb

kb
Read-only

Persistent knowledge bases (RAG): create one, add documents, text or web pages/PDFs by URL (we chunk and embed them), then ask questions and get answers with numbered citations. Kept between calls and private to your wallet. create $0.005, add from $0.003, query with an answer $0.01 (sources only $0.003). Costs $0.353 USDC per call (x402).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
textNo
urlsNo
kb_idNo
top_kNo
actionNocreate, add, query (default), info, list, delete
questionNo
documentsNo[{title, text, source}]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3/5.0
Behavior1/5

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

The description plainly describes write and delete operations ('create one', 'add documents', with an action enum that includes delete), while the annotations declare readOnlyHint=true. This is a direct contradiction of the structured safety signal. The genuinely useful extra context (persistence between calls, wallet-private storage, per-operation pricing, x402 payment) is undercut by the conflicting read-only claim.

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 core purpose is front-loaded in the first clause and the workflow sentence is dense but efficient. The trailing pricing sentences are the weak point: the per-operation figures ($0.005 create, $0.003 add, $0.01 query) sit awkwardly beside 'Costs $0.353 USDC per call (x402)', which reads as internally inconsistent rather than clarifying.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter, multi-action tool with no output schema and a low-coverage schema, the description covers the create/add/query happy path and the citation format of answers, which is reasonable. It still omits how kb_id is obtained, defaults for top_k, and delete semantics, and the readOnly contradiction leaves the agent with a materially wrong expectation of side effects.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25%, so the description must compensate, and it does explain part of the surface in prose: name for creation, text/documents/urls for adding, the chunk-and-embed treatment of URLs, and question for querying. However top_k and kb_id are never explained, and the action enum values are only listed in the schema, leaving several parameters semantically thin.

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 names a specific resource (persistent knowledge bases / RAG) and enumerates the concrete operations: create, add documents/text/URLs, and query for answers with numbered citations. It is clear what the tool does, but it never contrasts itself with nearby siblings such as memory, db, vectors, or docs_ask, so an agent gets no routing signal among the many retrieval-style tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The create -> add -> ask workflow implies when to use each action, and the persistence claim hints at multi-turn use, but there is no explicit 'use this instead of X' or prerequisite guidance (e.g., kb_id must come from create/list/info before querying). With dozens of retrieval siblings, implied usage is the bare minimum.

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