Skip to content

Numbers sent as strings are read as numbers (sc-8845) - #40

Merged
ndbroadbent merged 1 commit into
mainfrom
sc-8845
Dec 2, 2026
Merged

ndbroadbent merged 1 commit into
mainfrom
sc-8845

Conversation

@ndbroadbent

Copy link
Copy Markdown
Member

Numbers sent as strings are read as numbers (sc-8845): over MCP, every tool's integer and number arguments (and arrays of them) accept a string holding a number, read from the tool's schema before the call, public and admin tools alike; the REST API's numeric fields (pr_number, shard_total, shard, a snapshot's size and threshold) do the same. An agent with an older copy of a tool's schema no longer gets 'expected u32' and a retry; a string that isn't a number still gets the error naming the argument. Docs: API reference

Story: https://app.shortcut.com/docspring/story/8845.

…y tool's integer and number arguments (and arrays of them) accept a string holding a number, read from the tool's schema before the call, public and admin tools alike; the REST API's numeric fields (pr_number, shard_total, shard, a snapshot's size and threshold) do the same. An agent with an older copy of a tool's schema no longer gets 'expected u32' and a retry; a string that isn't a number still gets the error naming the argument. Docs: API reference
@visualci-com

visualci-com Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #163 · 2 added, 302 unchanged · approved by visualci coordinator agent (MCP) for Nathan Broadbent

The new test's two snapshots: list_builds with limit "2" (accepted) and "lots" (refused with the argument help), as sc-8845 intends.

This PR vs base: 2 added since #162, across 1 build

Snapshot Before After
json/mcp/numbers_sent_as_strings_are_read_as_numbers/list_builds (added) text text, see the build
json/mcp/numbers_sent_as_strings_are_read_as_numbers/list_builds-2 (added) text text, see the build

Updated as builds change. Agents can review with VisualCI's MCP tools.

@ndbroadbent
ndbroadbent merged commit 0dff706 into main Dec 2, 2026
10 checks passed
@ndbroadbent
ndbroadbent deleted the sc-8845 branch December 2, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant