Skip to main content
Glama

Upsert work package partner

upsert_work_package_partner
Idempotent

Who works in one work package, with what share, and who is responsible. Identify the partner by company_id or — for the many consortium members not recorded as companies — by the contract's short_name. tasks is the point of the record: "partner is involved in WP5" is worthless, "leads T5.5 and T5.6 and delivers D5.1 in month 27" is what someone can work from. person_months and share_percent are both optional; an agreed percentage wins over one computed from months.

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": {
      "work_package_id": "<work_package_id>"
    },
    "name": "upsert_work_package_partner"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
tasksNo
is_leadNo
company_idNo
contact_idNoThe person responsible for THIS package, often not the partner's main contact.
short_nameNoCON, CARTIF, HPA — required when company_id is absent.
budget_amountNo
person_monthsNo
share_percentNo
work_package_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

The description adds one genuinely valuable behavioral rule beyond the annotations: an agreed share_percent takes precedence over a percentage computed from person_months. The idempotent and non-destructive hints are already covered structurally. What is missing is upsert semantics — what matching key triggers an update, and whether omitted optional fields (notes, budget_amount, is_lead) are preserved or cleared.

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 sentences, front-loaded with the record's identity before the identity-resolution rule and then the effort rule. The 'worthless' versus 'leads T5.5 and T5.6' contrast is a small amount of editorializing, but it efficiently conveys why `tasks` matters.

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 10-parameter mutation tool with no output schema and low schema coverage, the description covers identity resolution and effort precedence but omits the core upsert contract (matching key, update-vs-insert behavior, treatment of unspecified fields) and the meaning of is_lead and budget_amount. It is adequate to identify the right tool but not fully sufficient to call it correctly on an update.

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 only 20% across 10 parameters, and the description compensates for the most important ones: the company_id-vs-short_name identity choice (including why short_name exists), the centrality of `tasks`, and the optionality and precedence of person_months versus share_percent. It says nothing about is_lead, budget_amount, or notes, leaving several parameters undocumented in both schema and prose.

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?

It frames the record precisely as 'who works in one work package, with what share, and who is responsible', which tells an agent the resource is a partner-to-work-package assignment. However, it never states the operation (create or update an existing assignment), and it does not distinguish this from siblings such as upsert_project_partner or upsert_work_package_task.

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?

There is no explicit when-to-use or when-not-to-use guidance, and no mention of the delete_work_package_partner sibling that would remove an assignment. The only routing signal is embedded parameter advice — pick company_id, or short_name for consortium members not recorded as companies — which implies usage but does not state it.

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