Skip to content

Commit 47cce53

Browse files
committed
fix(console): the downloaded SKILL.md mirrors the server's delete_records bullet
#31015's drift pin compares the console's renderObjectStackSkill with the MCP server's renderSkillMarkdown byte for byte; the server's SKILL.md now teaches delete_records, so the console copy carries the same bullet and the tool-name pin lists it. The server-side bullet is reflowed to the file's line width; its words are unchanged. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibx1NhZMrqCvW7FBxg5
1 parent 17a0290 commit 47cce53

4 files changed

Lines changed: 23 additions & 7 deletions

File tree

‎.changeset/30891-mcp-delete-records.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
'@objectstack/mcp': patch
33
'@objectstack/spec': patch
4+
'@object-ui/console': patch
45
---
56

67
feat(mcp): `delete_records` deletes many records of one object in one confirmed call, by a filter or an id list (#30891)
@@ -18,4 +19,6 @@ An agent that had to clear a set of records called `delete_record` once per row,
1819

1920
What a preview cannot say: which records a delete rule will refuse. The engine has no delete dry run, so the rules are judged when the confirmed call runs, and the preview says so.
2021

22+
`@object-ui/console`: the Integrations page's "Download skill" SKILL.md is a byte-for-byte mirror of the server's (#31015's drift pin), so it carries the same `delete_records` bullet.
23+
2124
`@objectstack/spec` changes only doc comments: `AIActionConfirmation` names `delete_records` as the third door of the confirmation member, and the error-code ledger's `ACTION_CONFIRMATION_REQUIRED` rows name both delete tools.

‎packages/mcp/src/skill-md.ts‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,13 @@ create/update payload.
294294
Without \`confirm: true\` it deletes nothing and is REFUSED
295295
(\`ACTION_CONFIRMATION_REQUIRED\`) with a \`preview\`: how many records match
296296
and sample ids. Show that to your human, then retry with \`confirm: true\`.
297-
A confirmed call deletes up to ${DELETE_RECORDS_MAX_PER_CALL} records, each under your permissions and the
298-
object's delete rules (no one bypasses them); refused records stay and come
299-
back grouped by reason with their ids, and \`remaining\` says how many still
300-
match. Call again to continue. The answer's \`cap\` is the call's real cap
301-
(lower on a deployment with a smaller read page). A fault (not a rule's refusal) stops the call
302-
and names the record it stopped at. Over OAuth it needs both \`data:read\` and
303-
\`data:write\`.
297+
A confirmed call deletes up to ${DELETE_RECORDS_MAX_PER_CALL} records (fewer on a deployment with
298+
a smaller read page; the answer's \`cap\` says), each under your permissions
299+
and the object's delete rules (no one bypasses them); refused records stay
300+
and come back grouped by reason with their ids, and \`remaining\` says how
301+
many still match. Call again to continue. A fault (not a rule's refusal)
302+
stops the call and names the record it stopped at. Over OAuth it needs both
303+
\`data:read\` and \`data:write\`.
304304
- **list_actions()** — list the business actions available to you (only those
305305
the app author exposed to AI and you are permitted to run), with each
306306
action's declared parameters, whether it operates on a record, and whether

‎ui/apps/console/src/pages/developer/objectstack-skill.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ describe('renderObjectStackSkill', () => {
6666
'create_record',
6767
'update_record',
6868
'delete_record',
69+
'delete_records',
6970
'list_actions',
7071
'run_action',
7172
'resume_run',

‎ui/apps/console/src/pages/developer/objectstack-skill.ts‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,18 @@ create/update payload.
144144
permanently. The server REFUSES a call without \`confirm: true\`
145145
(\`ACTION_CONFIRMATION_REQUIRED\`) and nothing is deleted. Ask your human
146146
first; the flag asserts an approval, it does not obtain one.
147+
- **delete_records({ objectName, where | recordIds, confirm })** — delete many
148+
records of one object in one call, instead of one \`delete_record\` per row.
149+
Without \`confirm: true\` it deletes nothing and is REFUSED
150+
(\`ACTION_CONFIRMATION_REQUIRED\`) with a \`preview\`: how many records match
151+
and sample ids. Show that to your human, then retry with \`confirm: true\`.
152+
A confirmed call deletes up to 200 records (fewer on a deployment with
153+
a smaller read page; the answer's \`cap\` says), each under your permissions
154+
and the object's delete rules (no one bypasses them); refused records stay
155+
and come back grouped by reason with their ids, and \`remaining\` says how
156+
many still match. Call again to continue. A fault (not a rule's refusal)
157+
stops the call and names the record it stopped at. Over OAuth it needs both
158+
\`data:read\` and \`data:write\`.
147159
- **list_actions()** — list the business actions available to you (only those
148160
the app author exposed to AI and you are permitted to run), with each
149161
action's declared parameters, whether it operates on a record, and whether

0 commit comments

Comments
 (0)