Skip to main content
Glama

Take the code

export_code
Read-only

How to take a workspace's code out of CodeGene when CodeGene keeps it (a workspace with no GitHub): links that download the whole codebase as a zip or tar.gz (send them to the person: they open in their signed-in browser, you get no bytes), and how to clone it or copy it to their own GitHub with create_code_token. A workspace whose code is already in its own GitHub says so. Only owners and admins can take the code.

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": "export_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the readOnly/destructive annotations by disclosing the key operational quirk: the links must be sent to a human, open in their signed-in browser, and the agent 'gets no bytes' — a critical expectation-setter. It also adds an authorization constraint (only owners and admins) that the annotations do not express.

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 qualifying condition is front-loaded and every clause carries information, but the single long sentence with nested parentheticals is dense and takes a second pass to parse. Slightly tighter phrasing would earn a 5.

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?

With no output schema, the description usefully conveys that the result is downloadable links plus a no-bytes caveat, and it covers permissions. It stops short of stating the exact response shape (e.g. whether it returns URLs, archive formats available, or expiry), which matters for a tool whose whole product is a link.

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 single optional workspace_id already documents 'Workspace id from whoami; omit when there is one'. The description adds no further parameter meaning, so this sits at the baseline where the schema does the work.

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?

States a specific verb and resource ('take a workspace's code out of CodeGene') plus the exact qualifying condition ('when CodeGene keeps it — a workspace with no GitHub'). It also distinguishes the case where the tool does not apply ('A workspace whose code is already in its own GitHub says so'), so an agent can tell this apart from code-token tools without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit about when to use it (self-hosted code with no GitHub), when not to (code already in the customer's GitHub), and which sibling handles the other path ('clone it or copy it to their own GitHub with create_code_token'). The owner/admin precondition is stated too.

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