get_cost_type
Retrieves a cost type by its ID from OpenProject's read-only API, providing cost type details when no collection endpoint exists.
Instructions
Get a cost type by id.
Cost types are entirely read-only in OpenProject's API (Community Edition) -- there is no create/update/delete endpoint, and no collection GET either (no list_cost_types tool exists because the endpoint does not exist upstream).
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": {
"cost_type_id": "<cost_type_id>"
},
"name": "get_cost_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost_type_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| unit | Yes | ||
| is_default | Yes | ||
| unit_plural | Yes |