Skip to main content
Glama

add_workspace_sources

DestructiveIdempotent

Imports a local file or bounded folder into a shared workspace, checks the current revision to reject stale edits, and returns source metadata without document text.

Instructions

Import one explicit local file or bounded folder into a shared workspace. Requires its current revision (null to create); stale edits are rejected. Extracts text locally without indexing or model calls. Returns metadata and source IDs, never document text.

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": {
      "workspace_id": "<workspace_id>",
      "path": "<path>",
      "revision": "<revision>"
    },
    "name": "add_workspace_sources"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
revisionYes
extensionsNo
workspace_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4/5.0
Behavior4/5

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

Annotations declare destructiveHint=true and idempotentHint=true, and the description adds real context beyond them: revision-based optimistic concurrency ("stale edits are rejected"), local extraction with no indexing or model calls, and the return shape ("metadata and source IDs, never document text"). It does not explain why the operation is flagged destructive (what existing state could be affected on a re-import or overwrite), which is the one meaningful gap.

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?

Four short sentences, each earning its place: purpose, precondition, side-effect profile, return contract. It is front-loaded with the action and constraint, with no filler or repetition of the title.

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 4-parameter mutation tool with no output schema, the definition covers the essentials an agent needs: what it consumes, the concurrency precondition, absence of indexing/model calls, and what is returned. Remaining gaps are the undocumented extensions filter and any statement of file-size or permission limits implied by "bounded folder."

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 0%, so the description carries the burden. It explains path ("one explicit local file or bounded folder") and revision ("null to create; stale edits are rejected") well, but says nothing about extensions (the 1–16 item filter list) or workspace_id, leaving half the parameters undocumented in both places.

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?

"Import one explicit local file or bounded folder into a shared workspace" gives a specific verb (import), a specific resource (local file/folder), a destination (workspace), and a scope qualifier (one, explicit, bounded). This is clearly distinguishable from retrieval-oriented siblings such as get_workspace_chunks or search_workspace without needing to open either schema.

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?

Usage is implied rather than stated: the tool is the ingestion path ("extracts text locally without indexing or model calls"), and the revision clause hints at the edit workflow. However, no alternative is named and there is no explicit when-not guidance (e.g., when to prefer query_knowledge_base or how this relates to indexing later), so the agent must infer routing.

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