Skip to content

Review suggestions for [TAN-7898] Generic MCP update tool#14121

Open
adessy wants to merge 8 commits into
TAN-7898-generic-update-tool-mcpfrom
TAN-7898-generic-update-tool-mcp-suggestions
Open

Review suggestions for [TAN-7898] Generic MCP update tool#14121
adessy wants to merge 8 commits into
TAN-7898-generic-update-tool-mcpfrom
TAN-7898-generic-update-tool-mcp-suggestions

Conversation

@adessy

@adessy adessy commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Review suggestions for #14069

Changelog

For translators

adessy added 8 commits June 18, 2026 09:58
…::Runner`

Adds `:ordering` to the `attrs` allowlist for reorderable types and drops the `:reorder` config key, the `attributes.delete(:ordering)&.to_i` extraction, the dedicated `rejected << :ordering` branch, and the separate `record.insert_at` call.

`acts_as_list` 1.2.6 reshuffles siblings on direct assignment to the position column, so `record.update!(ordering: N)` is equivalent to `record.insert_at(N)`.
…to the gem

Adds `type: 'object'`, `minProperties: 1`, and a `propertyNames` enum on `attributes` so the `mcp` gem rejects unknown keys, empty hashes, and non-objects before `Runner#run` is invoked. Drops the redundant guards.

Description now lists the allowed `attributes` keys per type explicitly, since per-type enforcement isn't possible at the schema layer: top-level `oneOf`/`allOf`/`anyOf` in `input_schema` are rejected by the tool-use API.
Memoizes `record` so `#run` stops re-fetching it on every reference, drops the
self-referential pointer in the `attributes` schema description, and refreshes
the file-top and `RESOURCES` comments.
Constrains `location_point_geojson` to actual Point shape (`type` const `'Point'`, 2-element `coordinates`, no extras). Allows `null` on `maximum_attendees` with a `minimum: 1` floor. Reorders `address_1` next to `address_2_multiloc`.
…ld descriptions

`using_url` was declared `boolean` but the column is a `:string` URL. Rewrites both `online_link` and `using_url` descriptions to make the distinction explicit (event location vs. Attend-button target).
@notion-workspace

Copy link
Copy Markdown

@adessy adessy changed the title [TAN-7898] Use direct class refs in UpdateResource::RESOURCES Review suggestions for [TAN-7898] Add generic MCP update tool for simple resources #14121 Jun 19, 2026
@adessy adessy changed the title Review suggestions for [TAN-7898] Add generic MCP update tool for simple resources #14121 Review suggestions for #14069 Jun 19, 2026
@adessy adessy changed the title Review suggestions for #14069 Review suggestions for #14069 [TAN-7898] Generic MCP update tool Jun 19, 2026
@adessy adessy changed the title Review suggestions for #14069 [TAN-7898] Generic MCP update tool Review suggestions for [TAN-7898] Generic MCP update tool Jun 19, 2026
@adessy adessy requested a review from amanda-anderson June 19, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant