noark5_create_secondary_entity
Add secondary entities like authors, keywords, or notes to a Noark 5 parent record via URL, entity type, field name, and value. Use for multi-valued fields instead of updating the parent.
Instructions
Create a secondary [0..]/[1..] entity under a parent (e.g., forfatter, noekkelord).
In N5TG, fields with [0..] or [1..] cardinality are modelled as separate entities. Use this instead of noark5_update_entity to add them.
Common types and their field names: - forfatter: {'forfatter': 'Author Name'} - noekkelord: {'noekkelord': 'keyword'} - merknad: {'tekst': 'note text'} - kryssreferanse: {'kryssreferanse': 'reference'}
Args: parent_url: The self-href URL of the parent entity (e.g., dokumentbeskrivelse). entity_type: The type ('forfatter', 'noekkelord', 'merknad', etc.). field_name: The field name within the secondary entity. field_value: The value for that field.
Returns details of the created secondary entity.
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": {
"parent_url": "<parent_url>",
"entity_type": "<entity_type>",
"field_name": "<field_name>",
"field_value": "<field_value>"
},
"name": "noark5_create_secondary_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field_name | Yes | ||
| parent_url | Yes | ||
| entity_type | Yes | ||
| field_value | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |