Skip to main content
Glama

Create or update a project

project_upsert

Create a project, or update one you own. One owner may own many isolated projects; a project archive holds desensitised fields only (type, stage, capability ids, tag preferences, confirmed used-tool ids, explicitly rejected tool ids) — never send a project name, code, raw chat, path or free text (dropped and reported as dropped_fields). Needs the followup consent scope (consent_update first). Omit project_id to create (returns project_id + a project_token shown once); pass expected_version to guard concurrent updates (version_conflict on mismatch); rotate_token:true (owner credential only) invalidates all old project tokens and returns a new one.

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

Input Schema

NameRequiredDescriptionDefault
typeNo
stageNo
project_idNo
preferencesNo
capabilitiesNo
rotate_tokenNo
tools_in_useNo
rejected_toolsNo
expected_versionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations cover only safety basics; the description adds substantial behavior: the archive accepts desensitised fields only, disallowed fields are dropped and reported as dropped_fields, the project_token is shown once, version_conflict on mismatch, and rotation invalidates all old tokens. It does not state what an update does to omitted fields (merge vs replace) or what the success/error envelope looks like, which keeps it at 4.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the create/update distinction and the token return, which is good, but the single dense run of semicolon-clauses packs four distinct behaviors into one sentence and reduces scannability. Every clause earns its place, yet the structure could be broken into shorter statements.

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?

Strong coverage of the risky parts (field whitelist, token rotation, optimistic concurrency, prerequisite consent), but with 9 parameters, a nested preferences object, and no output schema, the field semantics for preferences/capabilities and the update merge behavior remain unexplained. An agent can call it but may misfill the nested object.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 carry the load, and it does explain project_id, expected_version, rotate_token, plus the allowed field set (type, stage, capability ids, tag preferences, used-tool ids, rejected tool ids). But the mapping of preferences, capabilities, tools_in_use and rejected_tools to those allowed fields is left implicit, and no value formats are given.

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?

"Create a project, or update one you own" gives a specific verb pair and resource, and the omit-project_id rule explicitly separates the two modes. It does not name a sibling alternative (e.g. project_bind, project_export) for differentiation, so it stops short of 5.

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 when-to-use branching: omit project_id to create, pass it to update, pass expected_version to guard concurrent updates, rotate_token:true only as owner credential. It also states the prerequisite (consent_update for the followup consent scope), which is the kind of gating an agent cannot infer.

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