Skip to main content
Glama

Upsert work package task

upsert_work_package_task
Idempotent

Create or update one sub-task. code is what the work and milestone plan calls it (AP3.2, T5.5) and must be unique within its work package. person_months is the contracted target that booked time is measured against — in person-months, because that is how the contract is written.

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_work_package_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNo
notesNo
titleNo
task_idNo
ends_monthNo
sort_orderNo
descriptionNo
starts_monthNo
person_monthsNo
lead_short_nameNo
work_package_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

The annotations already declare idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description usefully adds a real constraint: code must be unique within its work package, plus what person_months measures against. It does not explain which field drives the upsert match (task_id vs code) or what happens on conflict, which is the key behavioral question for this tool.

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?

Three tight sentences, front-loaded with the verb and resource, then the two non-obvious fields. Every sentence carries information; the person-months rationale is slightly discursive but earns its place by explaining the unit choice.

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

Completeness2/5

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

For an 11-parameter mutation tool with no output schema and no description of return values, the definition is thin. The most consequential gap is upsert matching semantics: an agent cannot tell whether task_id, code, or both determine whether a record is created or updated.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 11 parameters, so the description must carry the meaning, and it explains only two of them. The code and person_months explanations are genuinely valuable (uniqueness rule, person-month rationale), but task_id, starts_month/ends_month, sort_order, lead_short_name and work_package_id are left entirely undocumented.

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 and resource: "Create or update one sub-task." It also pins down the domain of the operation (sub-tasks under a work package). It does not distinguish this from siblings like create_task/update_task or list_work_package_tasks, so the sibling differentiation is missing.

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

Usage Guidelines3/5

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

"Create or update" implies that this covers both the insert and the modify case, which implicitly tells an agent when to reach for it. There is no explicit when-to-use versus create_task/update_task, no statement of prerequisites (for example, whether work_package_id must already exist), and no exclusions.

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