Craft a Postly Query
postly_craft_queryTurns a user-written Postly question into a safe, explicit plan of existing MCP tools and identifies any missing context. Use this first for free-form requests; then call the planned tools. It never runs raw database or SQL queries.
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": {
"query": "<query>"
},
"name": "postly_craft_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The user's own natural-language question or requested outcome. | |
| post_id | No | Optional known Postly post ID. | |
| platform | No | Optional analytics platform. | |
| channel_id | No | Optional analytics channel/source ID. | |
| workspace_id | No | Optional known Postly workspace ID. | |
| relative_range | No | Optional date phrase such as today, this_week, or last_30_days. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| intent | No | ||
| tool_plan | No | ||
| missing_context | No | ||
| safety_boundary | No |