Skip to main content
Glama

Create knowledge source

asks_create_source

Adds knowledge the AI agent learns from, and starts training immediately — there is no separate train step. text: a named passage. qna: one answer for up to 50 phrasings of a question. website: crawls an https site (optionally only include_urls, skipping exclude_paths) in the background and returns syncing. The source comes back training/syncing; call asks_get_source until it is trained (or failed) before saying the agent knows it. File uploads are dashboard-only. Counts toward the plan's knowledge limits.

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": {
      "type": "<type>"
    },
    "name": "asks_create_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNowebsite: https URL to crawl.
nameNoSource name (text: required; qna: optional, defaults to the first question; website: optional).
typeYes
answerNoqna: the answer.
contentNotext: the passage (plain text, newlines kept).
max_pagesNowebsite: page cap (plan maximum applies).
questionsNoqna: the question and its other phrasings.
include_urlsNowebsite: crawl ONLY these pages.
exclude_pathsNowebsite: skip these paths (e.g. "/blog") or ^regex.

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?

Beyond the annotations, it discloses asynchronous training, background website crawling, the syncing/training return states, the required polling loop, and plan knowledge limits. These are exactly the behavioral traits an agent needs and none are available from the structured fields.

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 dense but front-loaded: purpose first, then per-type semantics, then the polling requirement and limits. Nearly every sentence carries operational value, though the inline parameter notation is slightly compressed.

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

Completeness5/5

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

With no output schema, the description compensates by explaining the returned training/syncing states and the follow-up call needed to confirm completion. It also covers plan limits and the dashboard-only file upload constraint, leaving no major gap for invoking the tool correctly.

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 high at 89%, so the baseline is 3. The description still adds meaning by tying parameters to source types: text is a named passage, qna supports one answer for up to 50 phrasings, and website optionally uses include_urls while skipping exclude_paths.

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 opens with a specific verb and resource: it adds knowledge the agent learns from and starts training immediately. It then differentiates the three source types (text, qna, website) with concrete behavior, so an agent can tell what the tool creates without opening the 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 clear operational guidance: there is no separate train step, the source returns training/syncing, and asks_get_source must be polled until trained or failed before claiming the agent knows the content. It also excludes file uploads as dashboard-only. It does not explicitly compare against asks_sync_source or asks_add_note, which keeps it from a 5.

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