# Maha Strategies Tool Argument Validator

> Maha Strategies Tool Argument Validator is a paid API for AI agents from www.mahastrategies.com, paid per call via x402, $0.0045/call, status unknown (last checked 2026-10-29).

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.

## Facts

- Endpoint: POST https://www.mahastrategies.com/api/v1/micro/tool-argument-validation?utm_source=zero.xyz
- Price: $0.0045/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/maha-strategies-tool-argument-validator-ab9ea1be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MfHXOe7Cg-TTvxdjC-JiM

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability maha-strategies-tool-argument-validator-ab9ea1be -d '<json body>'
```

Example prompt: 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'.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/maha-strategies-tool-argument-validator-ab9ea1be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.mahastrategies.com](https://www.zero.xyz/host/www.mahastrategies.com/llms.txt)
