Skip to main content
Glama

Upsert project work package

upsert_project_work_package
Idempotent

Create or change one work package of a project. objectives and description are kept apart on purpose: what the package is meant to achieve, versus what is concretely to be done — a contract usually states both and they are not the same sentence. Months are project months (M4–M20), as contracts write them; the calendar date follows from the project's start. Pass work_package_id to change one, or project_id/code plus title to create.

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

Input Schema

NameRequiredDescriptionDefault
codeNoWP1, WP10, AP3 — unique per project.
notesNo
titleNo
ends_monthNo
objectivesNo
project_idNo
sort_orderNo
descriptionNo
starts_monthNo
budget_amountNo
lead_company_idNo
lead_contact_idNo
lead_short_nameNoThe contract's abbreviation when the company is not recorded yet: CARTIF, HPA.
work_package_idNo
total_person_monthsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=true, destructive=false, so the safety profile is covered. The description adds non-obvious behavior the annotations cannot carry: months are project months (M4–M20) anchored to the project start, and the create/update keying. It does not say whether an update is a partial patch or a full replace of unspecified fields, which matters for a 15-parameter upsert.

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?

Well front-loaded: purpose first, then the two interpretive hints, then the create/update rule in the final, most actionable sentence. The "a contract usually states both and they are not the same sentence" clause is explanatory flavor rather than operational, a minor cost in a two-hundred-word description.

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?

For a 15-parameter, zero-required upsert with no output schema and a thin schema, the description is adequate but leaves real operational gaps. An agent still cannot tell which fields are needed to create vs update, whether omitted fields are cleared, or how the three lead-identity parameters resolve against each other.

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 only 13%, so the description must compensate and it does so only partially. It gives real meaning to objectives vs description (intent vs concrete action), starts_month/ends_month (project-month numbering) and the ID/title parameters. It says nothing about the budget, effort (total_person_months), sort_order, notes, or the lead_company_id vs lead_contact_id vs lead_short_name precedence — well over half the parameters remain opaque.

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?

Opens with a specific verb+resource: "Create or change one work package of a project." It even disambiguates its own two modes (create via project_id/code+title, update via work_package_id). It never names the closest siblings (upsert_work_package_partner, upsert_work_package_task), so an agent must infer that this tool covers the package itself and not its partners or tasks.

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?

Explicit routing rule for the create-vs-update decision: "Pass work_package_id to change one, or project_id/code plus title to create." That is a genuine when-to-use statement with a discriminating condition. It stops short of when-not-to-use guidance relative to the sub-entity upsert tools (partner/task) that also hang off a work package.

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