Skip to main content
Glama

knowledge_create_datasource

Create a datasource in a knowledge base by providing its display name and knowledge base ID, with an optional file ID to link uploaded content.

Instructions

Create a datasource

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_id": "<knowledge_id>",
      "display_name": "<display_name>"
    },
    "name": "knowledge_create_datasource"
  }
}

Input Schema

NameRequiredDescriptionDefault
file_idNoOptional file ID
display_nameYesName
knowledge_idYesKnowledge base ID or key

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

D1.8/5.0
Behavior1/5

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

With no annotations, the description carries the full burden of behavioral disclosure, and it discloses nothing: not whether creation is idempotent, what happens when file_id is omitted, whether a name collision fails or overwrites, or what the response contains. For a mutation tool this is a critical gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

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

The text is a four-word fragment that is brief only because it is under-specified, not because it is efficient. There is no structure, no front-loaded context, and nothing for the agent to act on beyond the name.

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

Completeness2/5

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

For a three-parameter creation tool with no annotations and no output schema, the description says nothing about identity requirements, side effects, or return value. The rich schema fields mitigate this slightly, but an agent still cannot call this tool confidently without outside knowledge.

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 100%, so all three parameters (knowledge_id, display_name, file_id) are already documented in the schema, and no additional semantics are needed to reach the baseline. The description adds no meaning beyond the schema — notably it does not explain the effect of the optional file_id linkage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Create a datasource" only restates the tool name with a verb and resource; it never explains what a datasource is inside a knowledge base or how it differs from siblings like knowledge_create or knowledge_create_chunks. An agent must guess at the resource's meaning from the name alone.

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

Usage Guidelines1/5

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

The description gives no when-to-use guidance, no prerequisites (e.g., that a knowledge base must already exist), and no mention of alternatives such as knowledge_update_datasource or knowledge_list_datasources. Nothing directs an agent to choose this tool over its siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools