Skip to main content
Glama

stage_source

Resolve GitHub links, URLs, and uploads into an explorable workspace with a staging directory, file tree, and line-numbered digest so you can jump directly to needed content.

Instructions

Resolve source material into a workspace you can explore: a GitHub link is cloned, any other URL is read through the reader, uploads are extracted. Returns the staging directory, the file tree and a digest with a line-number index so you can jump straight to what you need.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "stage_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsNo
uploadsNo
workspaceNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden. It does disclose per-input-type behavior and the return payload (staging directory, file tree, digest with a line-number index), which is genuinely useful, but it omits side-effecting details: whether staging is idempotent, what happens on re-staging the same URL, whether existing workspace content is overwritten, and any permission or network-failure behavior.

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?

Two tightly written sentences with the transformation logic preceding the return payload, so nothing is buried. Slightly dense clause stacking, but no wasted wording.

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

Completeness3/5

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

The output schema exists, so return values need not be spelled out (the description explains them anyway, which is a plus). Still, for a side-effecting staging tool with zero schema coverage and zero annotations, the missing treatment of the workspace parameter and of re-staging/overwrite behavior leaves a real 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 0%, so the description must compensate. It does explain semantics for 'urls' (GitHub vs other URLs) and 'uploads' (extracted), but the 'workspace' parameter appears nowhere in the description despite its ambiguous empty-string default, leaving one of three parameters undocumented.

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?

Names a specific verb ('Resolve'/'stage') and resource ('source material'), then enumerates the three input modes: GitHub link cloned, other URL read through the reader, uploads extracted. It never names a sibling such as list_staged, so the boundary between staging and browsing staged content is left implicit.

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 by the input-type breakdown — you use it when you have URLs or uploads to bring in — but there is no explicit when-to-use/when-not guidance, no mention of prerequisites (auth, network access), and no pointer to list_staged for reading what was staged.

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