Skip to content

Commit 81fd957

Browse files
committed
Specify that task methods themselves should not have related-task metadata
1 parent a0b93c8 commit 81fd957

File tree

1 file changed

+4
-18
lines changed
  • docs/specification/draft/basic/utilities

1 file changed

+4
-18
lines changed

docs/specification/draft/basic/utilities/tasks.mdx

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,7 @@ To retrieve the state of a task, requestors send a `tasks/get` request:
127127
"id": 3,
128128
"method": "tasks/get",
129129
"params": {
130-
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840",
131-
"_meta": {
132-
"modelcontextprotocol.io/related-task": {
133-
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840"
134-
}
135-
}
130+
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840"
136131
}
137132
}
138133
```
@@ -169,12 +164,7 @@ To retrieve the result of a completed task, requestors send a `tasks/result` req
169164
"id": 4,
170165
"method": "tasks/result",
171166
"params": {
172-
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840",
173-
"_meta": {
174-
"modelcontextprotocol.io/related-task": {
175-
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840"
176-
}
177-
}
167+
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840"
178168
}
179169
}
180170
```
@@ -282,12 +272,7 @@ To explicitly delete a task and its associated results, requestors send a `tasks
282272
"id": 6,
283273
"method": "tasks/delete",
284274
"params": {
285-
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840",
286-
"_meta": {
287-
"modelcontextprotocol.io/related-task": {
288-
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840"
289-
}
290-
}
275+
"taskId": "786512e2-9e0d-44bd-8f29-789f320fe840"
291276
}
292277
}
293278
```
@@ -384,6 +369,7 @@ stateDiagram-v2
384369

385370
1. All requests, notifications, and responses related to a task **MUST** include the `modelcontextprotocol.io/related-task` key in their `_meta`, with the value set to an object with a `taskId` matching the associated task ID.
386371
1. For example, an elicitation that a task-augmented tool call depends on **MUST** share the same related task ID with that tool call's task.
372+
1. For the `tasks/get`, `tasks/list`, `tasks/result`, and `tasks/delete` operations, the `taskId` parameter in the request **MUST** be used as the source of truth for identifying the target task. Requestors **SHOULD NOT** include `modelcontextprotocol.io/related-task` metadata in these requests, and receivers **MUST** ignore such metadata if present in favor of the RPC method parameter.
387373

388374
### Task Cancellation
389375

0 commit comments

Comments
 (0)