MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / strictInputSchema

Function strictInputSchema

mcp/src/tools/util.ts:14–16  ·  view source on GitHub ↗
(shape: S)

Source from the content-addressed store, hash-verified

12// `page_size` succeeds with the bogus arg ignored — which the e2e
13// contract sweep caught as a foot-gun. Apply to every registerTool call.
14export function strictInputSchema<S extends ZodRawShape>(shape: S) {
15 return z.object(shape).strict();
16}
17
18// paginationInput is the ONE pagination shape for every cursor-paginated list
19// tool (§6a #3): `cursor` + `limit` in, and the tool returns `{ <items>,

Callers 6

registerDomainToolsFunction · 0.85
registerAgentToolsFunction · 0.85
registerEventToolsFunction · 0.85
registerReviewToolsFunction · 0.85
registerWebhookToolsFunction · 0.85
registerMessageToolsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected