Skip to main content
Glama

Upsert project milestone

upsert_project_milestone
Idempotent

Create or change a milestone, deliverable or report on a project. Three dates, not one status: due_on, submitted_on and accepted_on — the gap between the last two is exactly the stretch where a funder is reviewing and no money moves, and a plain done/not-done cannot show it. code is the handle everyone uses (D5.2, RP1, M12) and is unique per project. Pass milestone_id to change one, or project_id 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_milestone"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNo
kindNo
notesNo
titleNo
due_onNo
statusNo
file_urlNo
period_idNoThe reporting period it belongs to, where that is settled.
tender_idNoCreate the milestone on a TENDER instead of a project — the payment plan of the bid, before any award. It is forced to plan_status "geplant" there and the database refuses anything else: a plan at a bid is not binding until the contract is. Use adopt_milestone_plan to carry it into the project on award.
amount_netNoInstalment amount, NET; currency comes from the project or tender. Contract research is paid per milestone, not per reporting period — BASt FE 04.0353 has six instalments between 34,909 and 69,818 EUR and the plan is scored as part of the bid. Leave empty when not yet calculated: the sum check then reports the total as a LOWER BOUND instead of pretending it is complete.
project_idNo
sort_orderNo
accepted_onNo
responsibleNo
milestone_idNo
submitted_onNo
work_packageNo
work_package_idNoThe work package it belongs to — see list_project_work_packages. The free-text work_package field stays for codes a foreign key cannot express ("WP5, WP6, WP8").
due_month_offsetNoRelative month from the bid ("Monat 2"), when no calendar date exists yet. Month 1 is the month the project STARTS and the milestone falls due at MONTH END: start 2026-11-01, month 2 -> 2026-12-31. adopt_milestone_plan converts these once the start is known.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly=false, idempotent=true and destructive=false, so the description need not restate the safety profile. It does add useful domain context about the submitted/accepted gap and the uniqueness of `code`, but for a 19-parameter upsert it never says whether omitted fields are left untouched or cleared, which is the single most important behavioral question an agent has before calling.

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?

Front-loaded with the action, then the date model, then the routing rule, which is a sensible order. The middle clause about funders reviewing and 'no money moves' is evocative but slightly editorial for a tool definition, though it does justify why three dates exist rather than one status.

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?

A mutation tool with 19 loosely constrained parameters, no required fields and no output schema needs more than this: nothing is said about partial-update semantics, which combinations are valid, or what the response contains. The create-vs-update rule and the date rationale cover the core use path but leave an agent under-informed for edge cases.

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?

With only 26% schema description coverage, the description must carry weight, and it does explain the semantics of code (per-project handle like D5.2), the milestone_id/project_id+title routing pair, and the three date fields. However the other parameters — kind, status, notes, file_url, sort_order, responsible, work_package — receive nothing, and some of the richest semantics (tender forced plan_status, lower-bound amount behaviour) live only in the schema, not the description.

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 opening sentence states a specific verb (create or change) plus the resource and its variants (milestone, deliverable, report on a project), which is far more informative than the name alone. What is missing is an explicit contrast with the closest sibling, delete_project_milestone or adopt_milestone_plan, though the 'upsert' framing makes the mutation boundary inferable.

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?

The final sentence gives concrete routing guidance: pass milestone_id to change an existing record, or project_id plus title to create one. That is real when-to-use-a-mode guidance, but there are no exclusions, prerequisites (permissions, project existence), or direction toward adopt_milestone_plan when converting a bid plan.

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