{"uid":"cap_MfHXOe7Cg-TTvxdjC-JiM","slug":"maha-strategies-tool-argument-validator-ab9ea1be","name":"Maha Strategies Tool Argument Validator","description":"Check up to 32 JSON argument values against a closed, declared scalar tool contract: types, required fields, code-point length and exact safe-integer bounds. Rounded fractions/underflow are not integers. Returns unknown fields and mismatches. No remote references, arbitrary patterns, tool execution or MCP conformance certification.","url":"https://www.mahastrategies.com/api/v1/micro/tool-argument-validation?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["dataClass","fields","arguments"],"properties":{"fields":{"type":"array","maxItems":32,"minItems":1},"arguments":{"type":"array","maxItems":32,"minItems":0},"dataClass":{"enum":["public","synthetic"],"type":"string"}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["version","offerId","amountBaseUnits","inputDigest","result","boundaries","receiptDigest"],"properties":{"result":{"type":"object"},"offerId":{"enum":["tool-argument-validation"],"type":"string"},"version":{"enum":["maha-microproducts/0.1"],"type":"string"},"boundaries":{"type":"array","maxItems":128,"minItems":0},"inputDigest":{"type":"string","maxLength":71},"receiptDigest":{"type":"string","maxLength":71},"amountBaseUnits":{"enum":["4500"],"type":"string"}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0045","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0045/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0045","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0045","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_V6AyeHFp6-CRndqBnhxTq","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0045","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates up to 32 JSON argument values against a declared scalar tool contract, checking types, required fields, string length, and safe-integer bounds, returning mismatches and unknown fields.","exampleAgentPrompt":"Before calling the search tool, validate these 12 arguments against our declared field contract — check types, required fields, string lengths, and integer bounds, and tell me about any mismatches or unknown fields. Use dataClass 'public'.","exampleUseCases":[{"title":"Pre-flight agent tool call check","prompt":"I'm about to invoke a tool with these 8 JSON arguments. Can you validate them against the declared field contract — check types, required fields, and that integers are real safe integers, not rounded fractions? Use dataClass 'synthetic'."},{"title":"Catch unknown fields in function payload","prompt":"Run a validation on this tool payload with 15 fields — I want to know if any argument names aren't in our declared contract or if any required fields are missing. DataClass is 'public'."},{"title":"Enforce string length and integer bounds","prompt":"Validate these 20 tool arguments for me: flag any strings that exceed their declared max length and any integers that fall outside the declared safe-integer bounds. Use dataClass 'public' and send back the full mismatch report."}],"resultDescription":"Returns a structured result containing any type mismatches, missing required fields, unknown fields, and boundary violations (code-point length overflows or integer out-of-range), along with a version identifier, offer ID, input digest, receipt digest, and a boundaries array listing up to 128 constraint check results.","failureModes":["More than 32 fields or arguments supplied — rejected at schema level","Empty fields array (minItems 1) causes validation failure","Non-integer values like rounded decimals flagged as integer mismatches","Arguments referencing remote schema references not supported — will not resolve","Invalid dataClass enum value causes request rejection","Malformed JSON body results in a 4xx error response"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, offline-style contract check on scalar tool arguments before executing a tool call — especially when you want to catch type errors, missing required fields, unsafe integers, or overly long strings without invoking the tool itself. Prefer it over full JSON Schema validators when you need a closed, declared-fields-only contract (no arbitrary patterns, no remote references) and an auditable receipt digest for the validation event.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T07:18:38.877Z","isFirstParty":false,"canonicalSlug":"maha-strategies-tool-argument-validator-ab9ea1be"}