Create a Flarum resource
flarum_createCreate Flarum discussions, posts, or other resources via JSON:API by specifying the resource type and attributes, with optional relationships.
Instructions
Create any Flarum resource via JSON:API. Provide the resource type, its attributes, and optional relationships. Requires an API key whose user has permission. Example: type="discussions", attributes={ title, content }, relationships={ tags: { data: [{ type: "tags", id: "1" }] } }.
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": {
"type": "<type>",
"attributes": "<attributes>"
},
"name": "flarum_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Resource type, e.g. "discussions", "posts". | |
| attributes | Yes | Resource attributes. | |
| relationships | No | JSON:API relationships object. |