Skip to main content
Glama
informatics-isi-edu

Deriva MCP Server

Official

rag_add_source

Register a GitHub repository as a documentation source for RAG indexing. Specify repo, branch, and file patterns, then run ingestion to make the docs searchable.

Instructions

Register a new documentation source for RAG indexing.

After adding a source, run rag_ingest(source_name=name) to index it.

Args: name: Unique name for this source (e.g., "my-project-docs") repo_owner: GitHub repository owner (e.g., "informatics-isi-edu") repo_name: GitHub repository name (e.g., "deriva-ml") branch: Git branch to index (default "main") path_prefix: Only index files under this path (default "docs/") include_patterns: File patterns to include (default ["*.md"]) doc_type: Document type tag for filtering (default "user-guide")

Returns: Dict confirming the source was added.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
branchNomain
doc_typeNouser-guide
repo_nameYes
repo_ownerYes
path_prefixNodocs/
include_patternsNo
Behavior3/5

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

With no annotations, the description must carry the behavioral disclosure burden. It mentions that the operation 'registers' a source and returns a confirmation dict, and it notes the follow-up ingest step. However, it does not disclose failure modes, idempotency, or what happens if the source name already exists. This is a moderate level of transparency.

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 reasonably concise and well-structured, with a one-line summary, a usage note, parameter bullets, and a returns line. The parameter list is a bit verbose but earned because the schema has no descriptions. The extra note about ingestion is valuable and not wasted.

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?

Given no annotations, no output schema, and a schema with zero descriptions, this description covers all parameters, explains the return value, and provides a follow-up action. It lacks edge-case information (e.g., duplicate name behavior, authentication requirements), which would make it complete. For the complexity level, it is mostly complete.

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?

The description provides a detailed Args list with examples, default values, and purpose for all seven parameters, fully compensating for the schema's 0% description coverage. However, there is a minor discrepancy: the schema sets include_patterns default to null, while the description claims a default of ['*.md'], which could confuse the agent.

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+resource combination: 'Register a new documentation source for RAG indexing.' This is unambiguous and distinguishes it from sibling tools like rag_remove_source, rag_ingest, and rag_update, which handle other aspects of RAG source management.

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?

The description gives clear context: this is for adding a new documentation source, and it explicitly tells the agent to run 'rag_ingest(source_name=name)' afterward. It does not, however, enumerate when not to use it or explicitly compare it to alternatives like rag_update, so it falls short of a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/informatics-isi-edu/deriva-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server