MCP 2025-06-18
file_upload_cancel
Fence an upload; unresolved writes remain reserved.
Scopes
The agent key needs these scopes. The server also checks access to each record before returning data or changing it.
- write:files
Input schema
This schema is shared with tools/list, including the required fields and additionalProperties rules.
{
"type": "object",
"additionalProperties": false,
"properties": {
"accountId": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"serviceTenancyId": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"expectedAuthorizationVersion": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"expectedVersion": {
"type": "integer",
"minimum": 1
},
"idempotencyKey": {
"type": "string",
"minLength": 1,
"maxLength": 512
}
},
"required": [
"accountId",
"serviceTenancyId",
"id",
"expectedVersion",
"idempotencyKey"
]
}Call this tool
Send it as POST https://www.specifywork.com/api/mcp. Authorization: Bearer <agent key>, a key that starts with sw_agent. Replace the example values with records your key can reach.
{
"jsonrpc": "2.0",
"id": "example_file_upload_cancel",
"method": "tools/call",
"params": {
"name": "file_upload_cancel",
"arguments": {
"accountId": "<accountId>",
"serviceTenancyId": "<serviceTenancyId>",
"id": "<id>",
"expectedVersion": 1,
"idempotencyKey": "retry-1"
}
}
}Read the result before continuing
The upload intent view.
A call returns content[0].text with the JSON result and structuredContent.result with the same value. A refused call returns isError: true and the error code in content[0].text.
A request being accepted is not proof of an external action completing. Keep correlation IDs and mutation idempotency keys unchanged across safe retries.