Skip to main content
Glama

Get an address to add files to a project

add_project_source

An upload address for a project's reference files: a brief, a spec, a plan, mockups or notes the owner wants CodeGene to keep and build from (each up to maxBytes). PUT each file to uploadUrl with ?name= before expiresAt (the curl field); add &note= to say why, &type= when the extension does not say the type, &source= to add a new version of a file already kept. Each file is kept for as long as the project exists, as given by the person through you; every replacement is a new version and nothing is overwritten. Its words go into the project's knowledge (the answer's knowledgeId, for read_knowledge), so later changes use them. The same bytes again add nothing. Treat uploadUrl like a password until it expires.

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": {
      "project_id": "<project_id>"
    },
    "name": "add_project_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYesThe project's id (prj_...) from list_projects.
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Well beyond the annotations, it discloses retention (kept for as long as the project exists), versioning ("every replacement is a new version and nothing is overwritten"), idempotency ("the same bytes again add nothing"), expiry, secret-handling of the URL, and that content feeds the project's knowledge. For a non-destructive write tool this is unusually rich behavioral context.

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 key fact (an upload address) is front-loaded and nearly every clause carries information the agent needs. It is, however, a single dense paragraph with stacked parentheticals and ampersand-switches, which makes the multi-step workflow harder to parse than a short ordered sequence would.

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

Completeness5/5

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

This is an unusual two-step tool, and the description covers the full round trip: what to do with uploadUrl, how to name files, when the URL expires, how versioning and retention work, and how the content links to read_knowledge via knowledgeId. Nothing an agent needs in order to call it correctly appears to be missing, and no output schema exists to lean on.

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 coverage is 100% for the two input parameters, so project_id and workspace_id are already documented by the schema and the description adds nothing to them. The explanation of the URL query fields (name, note, type, source) is genuinely useful but describes the upload URL, not the tool's inputs, so it does not lift this dimension above baseline.

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 states precisely what the tool returns: "An upload address for a project's reference files," and enumerates the kinds of files involved (brief, spec, plan, mockups, notes). It implicitly separates itself from download_project_source and upload_task_files by scoping to project reference files, but it never names a sibling to sharpen that boundary.

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 gives clear operational context: use this when the owner wants CodeGene to keep and build from files, PUT each file to the returned URL before expiry, and use &source=<sourceId> when updating an existing file rather than adding a new one. What is missing is an explicit exclusion, e.g. which sibling to use for task attachments or for reading files back.

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.

Resources