Skip to main content
Glama

upsert_project

Destructive

Create or update a project registry entry with metadata such as title, workspace path, repository, energy level, and parent project. Use it to persist local hub project configuration and nesting depth.

Instructions

Create or update a project registry entry and its explicit metadata.

    Use when setting title, workspace path, repository, energy, parent, or forge
    targeting. parent_slug nests under any project (unlimited depth; cycles rejected).
    This persists local Hub project configuration; it does not by itself create,
    rename, or delete a remote forge repository.
    

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": {
      "title": "<title>"
    },
    "name": "upsert_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNoProject identifier, normalized to a slug; null derives it from title. Reuse the existing slug to update.
titleYesRequired project display title; replaces the existing title when updating.
energyNoProject default energy: low, medium, high or unknown; defaults to unknown and replaces the existing default.unknown
repo_urlNoComplete HTTP(S) repository URL; null clears an existing URL. Never include credentials.
forge_repoNoForge repository name; null preserves existing configuration. Used with forge_owner for sync targeting.
descriptionNoOptional project description; null preserves an existing description.
forge_ownerNoForge repository owner or organization; null preserves existing configuration.
parent_slugNoExisting parent project slug; null preserves nesting, empty string clears it. Cycles and missing parents are rejected.
workspace_pathNoOptional client workspace folder path to add to the project mapping; existing paths are retained.
forge_wiki_pathNoOptional wiki checkout path used by forge sync; null preserves existing configuration.
forge_project_idNoOptional forge project-board identifier as a string; null preserves existing configuration.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv0.22.0
    • addedInput schema / properties / description / description
      Added value: +"Optional project description; null preserves an existing description."
    • addedInput schema / properties / energy / description
      Added value: +"Project default energy: low, medium, high or unknown; defaults to unknown and replaces the existing default."
    • addedInput schema / properties / forge_owner / description
      Added value: +"Forge repository owner or organization; null preserves existing configuration."
    • addedInput schema / properties / forge_project_id / description
      Added value: +"Optional forge project-board identifier as a string; null preserves existing configuration."
    • addedInput schema / properties / forge_repo / description
      Added value: +"Forge repository name; null preserves existing configuration. Used with forge_owner for sync targeting."
    • addedInput schema / properties / forge_wiki_path / description
      Added value: +"Optional wiki checkout path used by forge sync; null preserves existing configuration."
    • addedInput schema / properties / parent_slug / description
      Added value: +"Existing parent project slug; null preserves nesting, empty string clears it. Cycles and missing parents are rejected."
    • addedInput schema / properties / repo_url / description
      Added value: +"Complete HTTP(S) repository URL; null clears an existing URL. Never include credentials."
    • addedInput schema / properties / slug / description
      Added value: +"Project identifier, normalized to a slug; null derives it from title. Reuse the existing slug to update."
    • addedInput schema / properties / title / description
      Added value: +"Required project display title; replaces the existing title when updating."
    • addedInput schema / properties / workspace_path / description
      Added value: +"Optional client workspace folder path to add to the project mapping; existing paths are retained."
  2. Changed1 schema field changedv0.16.1
    • addedInput schema / properties / parent_slug
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Parent Slug"
      +}
  3. First observedv0.12.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, and openWorldHint=false, so the bar is lower; the description still adds real value by clarifying that this persists only local Hub configuration and has no remote forge side effect. It also discloses nesting behavior ('unlimited depth; cycles rejected') that goes beyond the schema. It omits any explicit warning that supplied fields replace existing values and that a bad parent can break nesting, despite destructiveHint=true.

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?

Four tight sentences, front-loaded with the action first, then the when-to-use, then the parent caveat, then the scope boundary. No filler, though the line breaks inside the string add no structural benefit.

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?

With an output schema present, the description needn't explain return values, and annotations already cover the safety profile. For an 11-parameter upsert, the description supplies the essential framing: what it writes, when to call it, nesting rules, and the fact that it is local-only.

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%, so every parameter including null-versus-preserve semantics is already documented, which sets the baseline at 3. The description adds only light context (grouping the settable fields, reiterating parent nesting depth), and adds nothing about workspace_path retention or forge_* sync targeting beyond what the schema says.

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 opens with a specific verb pair and resource: 'Create or update a project registry entry and its explicit metadata.' An agent can immediately tell this is the create/update counterpart to list_projects, rename_project, and delete_project. It does not name those siblings explicitly, which keeps it from a 5.

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?

'Use when setting title, workspace path, repository, energy, parent, or forge targeting' gives a concrete trigger condition tied to the fields. The exclusion about not creating/renaming/deleting a remote forge repository draws a useful boundary, but the description never routes the agent to rename_project or delete_project for those operations.

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