Revise a suggested Request
revise_query_suggestionRevise a pending query suggestion in place. Its id, its approval_url and its place in review all stay the same, so an approval link already handed to a person still points at the query you just fixed. Use it instead of rejecting a suggestion and suggesting a replacement: a replacement gets a new id, leaves a rejected twin behind under the same name, and opens a second setup journal entry. Only a pending suggestion can be revised. An approved query is changed with update_approved_query (direct) or suggest_query_update (for review); a rejected one is not revived by editing it. The revision is recorded on the suggestion with the context you give, so a reviewer can see it was changed and why.
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": {
"suggestion_id": "<suggestion_id>",
"context": "<context>"
},
"name": "revise_query_suggestion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | No | Updated statement, for a suggestion whose text is a statement. | |
| name | No | Updated name | |
| tags | No | Updated tags for organizing queries | |
| module | No | An operation request's published module. Supplied together with operation and artifact_hash, and only for request_kind "operation". | |
| context | Yes | Why this suggestion is being revised. Recorded on the suggestion and in its lifecycle evidence. | |
| operation | No | The operation inside the module that this query's text is. Supplied together with module and artifact_hash, and only for request_kind "operation". | |
| parameters | No | Updated parameter definitions. For request_kind "operation", a supplied list must include every parameter the operation requires and no parameter it does not declare. Omit to retain the Request's parameters. | |
| description | No | Updated description | |
| request_kind | No | What this query's text is: "statement" (the default) for a statement in the datasource's dialect, or "operation" for an operation of a module published to the Request Service. A statement request carries `sql` and nothing else; an operation request carries `module`, `operation` and `artifact_hash` and no statement. | |
| artifact_hash | No | The lowercase hex SHA-256 of the module version this query is frozen against, from the published artifact. Supplied together with module and operation, and only for request_kind "operation". | |
| suggestion_id | Yes | UUID of the pending suggestion to revise in place | |
| schema_bindings | No | Bind existing output names and parameter names to schema columns in this datasource. Each value is namespace.entity:path. The term is resolved from that column's glossary binding, authored separately under schema-governance authority; this is the only way to attach a term to a Request, and an inline term never counts. Replaces all bindings; {} clears them. An address must name a column this datasource has — for an operation Request, one of the paths its publish declared — or this call refuses it. At approval every output that reaches sensitive data, and every output and parameter of a request tagged composable, must be bound here; a statement whose output lineage cannot be resolved counts every output as possibly sensitive, and so does a set operation that matches its arms by name or carries an outer mode, even when it resolves. | |
| max_affected_rows | No | Positive write cap for a modifying SQL statement or declared operation; an operation cap must be between 1 and its declared max_affected. Omit to retain its cap; omit for reads | |
| output_column_descriptions | No | Updated output column descriptions |