Skip to main content
Glama

Add knowledge project

add_knowledge_project
Idempotent

Attach a project as a knowledge source on an agent (RAG). Project and agent must be in the same space. Get ids from list_agents / list_projects.

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": {
      "spaceId": "<spaceId>",
      "agentId": "<agentId>",
      "projectId": "<projectId>"
    },
    "name": "add_knowledge_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentIdYesAgent ID from `list_agents`
spaceIdYesSpace ID
projectIdYesProject ID from `list_projects`

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=true, destructive=false and openWorld=false, so the safety profile is covered. The description adds a constraint annotations cannot express: both project and agent must reside in the same space, which tells the agent a real failure condition to avoid. It does not describe what happens to existing knowledge sources or any permission requirements, so it is not fully exhaustive.

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

Conciseness5/5

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

Three short sentences with the operation and scope stated first, followed by the constraint and the id-source hint. No filler or redundancy, and the most important information is front-loaded.

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 simple three-parameter mutation with full annotation coverage and no output schema, the definition covers purpose, the key validation constraint, and where to obtain ids. Nothing essential to invoking it correctly is missing, though a note on what happens when the project is already attached (idempotency is only implicit in annotations) would close the remaining gap.

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%, and the schema already states that agentId comes from `list_agents` and projectId from `list_projects`, so the description largely repeats structured data. The same-space requirement adds slight meaning relevant to spaceId, but overall the schema does the heavy lifting; baseline 3 applies.

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 uses a specific verb and resource: "Attach a project as a knowledge source on an agent (RAG)". This clearly distinguishes it from add_knowledge_media and remove_knowledge_project by naming the resource being attached and the direction of the operation. It stops short of explicitly contrasting with the media sibling, but the object distinction is sufficient to disambiguate.

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 states a concrete precondition ("Project and agent must be in the same space") and routes the agent to id sources ("Get ids from `list_agents` / `list_projects`"). There are no explicit when-not conditions or a named alternative such as add_knowledge_media for non-project sources, which keeps it below 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.