# Toy Grid Path Dry Run

> Toy Grid Path Dry Run is a paid API for AI agents from www.mahastrategies.com, paid per call via x402, $0.010025/call, status unknown (last checked 2026-10-28).

Runs a deterministic four-neighbor BFS on a grid (up to 24×24) to find a shortest obstacle-free path or report unreachability within a step limit

## Facts

- Endpoint: POST https://www.mahastrategies.com/api/v1/compute/robotics/grid-dry-run?utm_source=zero.xyz
- Price: $0.010025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toy-grid-path-dry-run-27af58b6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pMZz1FAxCA9tQ7qfXRWeV

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 toy-grid-path-dry-run-27af58b6 -d '<json body>'
```

Example prompt: Run a BFS pathfinding dry run on a 10×10 grid with start at (0,0) and goal at (9,9), treating cells (3,3), (3,4), (4,3), and (4,4) as obstacles, with a max of 200 steps, using synthetic data — tell me the shortest obstacle-free path or whether the goal is unreachable.

## When to prefer this

Choose this endpoint when you need a fast, deterministic BFS shortest-path computation on a small discrete grid (up to 24×24) without any physical hardware, collision certification, or real-world robotics involvement. Ideal for simulation, game logic, prototype validation, or test harness scenarios using synthetic or public data where you need an authoritative shortest-path result or explicit unreachability confirmation within a configurable step budget.

## Known failure modes

- Goal cell is unreachable due to obstacles fully blocking all paths — returns explicit unreachable status
- Step limit (maxSteps) is too low to reach goal — returns step-limit-exceeded result
- Grid dimensions exceed 24×24 — request rejected with validation error
- Obstacle list contains more than 576 items — request rejected
- Start or goal coordinates fall outside grid bounds — validation error
- Invalid dataClass value (not 'public' or 'synthetic') — schema validation failure

## How this service works

Deterministic four-neighbor BFS on a grid of at most 24×24 cells. Returns a shortest obstacle-free route or an explicit unreachable/step-limit result. Toy discrete geometry only; no hardware, collision certification or physical feasibility claim. New modular adapter: retained result recovery for 24 hours, minimal receipt metadata for 90 days. Existing live route unchanged.

## Output

Returns either a shortest obstacle-free path (sequence of grid cells from start to goal) and its step count, or an explicit result indicating the goal is unreachable or the step limit was exceeded. Results are retained for 24 hours; receipt metadata is kept for 90 days.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "goal": {
   "type": "object"
  },
  "start": {
   "type": "object"
  },
  "width": {
   "type": "integer",
   "maximum": 24,
   "minimum": 1
  },
  "height": {
   "type": "integer",
   "maximum": 24,
   "minimum": 1
  },
  "maxSteps": {
   "type": "integer",
   "maximum": 575,
   "minimum": 0
  },
  "dataClass": {
   "enum": [
    "public",
    "synthetic"
   ],
   "type": "string"
  },
  "obstacles": {
   "type": "array",
   "maxItems": 576,
   "minItems": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toy-grid-path-dry-run-27af58b6/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)
