Skip to main content
Glama

Add knowledge pages

add_knowledge_pages

Add public web pages to a knowledge base: a page, a sitemap's pages, or a site crawled from a URL. Crawling and indexing them uses its embedding model.

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": {
      "knowledge_base": "<knowledge_base>",
      "urls": "<urls>"
    },
    "name": "add_knowledge_pages"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNo
urlsYes
knowledge_baseYesThe knowledge base's name (or its id).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false, so the write semantics and the open-world nature are covered structurally. The description usefully adds that crawling and indexing run through an embedding model, hinting at latency and processing cost. It does not say whether indexing is asynchronous, how duplicate URLs are handled, or whether re-adding is safe — the key behavioral questions for a non-idempotent write.

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?

Two short sentences with the core action front-loaded and the mode list before the secondary processing note. The trailing clause 'uses its embedding model' has an ambiguous antecedent ('its'), which costs a little clarity but not length.

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 a 3-parameter, non-idempotent ingestion tool with no output schema, the definition covers what it adds but not what happens after the call — no mention of job status, indexing time, or how to verify results. Adequate to invoke, incomplete for operating or reasoning about the outcome.

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 33% (only `knowledge_base` is documented in the schema). The description partially compensates by spelling out the three `kind` modes, which adds real meaning over bare enum tokens. But `urls` — a required array whose element format and count semantics matter — gets no explanation at all, leaving a notable gap against the low coverage.

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?

States a specific verb and resource (add public web pages to a knowledge base) and enumerates the three modes that match the `kind` enum. The 'public web pages' framing implicitly separates it from the file/note siblings, though no sibling is named explicitly.

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 three modes give implied usage ('a page, a sitemap's pages, or a site crawled from a URL'), so an agent can infer which mode to pick. There is no explicit guidance on when to choose this over add_knowledge_file or add_knowledge_note, and no prerequisites (e.g., whether the URLs must be publicly reachable, whether a knowledge base must exist first).

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.