---
name: grant-anything
description: Agent execution handbook for W4-C09 Grant-Anything (https://grant.fastmesh.dev) — deterministic 5-domain global cloud compute credit matcher, US federal SBIR/STTR statutory engine, EU/UK/Singapore/APAC public R&D matcher, open-source foundation OSI grant screener, and mathematically reconciled Application Kit compiler via REST /v1/match-all, /v1/application-kit, Remote /mcp, Causal Bazaar, and 0%-commission treg hub. Strictly $0 charged on HTTP 422 invalid profiles, credential-falsification attempts, unbalanced budgets, or zero-match queries.
---

# Grant-Anything (`grant.fastmesh.dev`) — Agent Skill Handbook

> **Hard Guarantees**: Pure deterministic public-rule tables (AWS Activate, Google Cloud for Startups, Microsoft Founders Hub, NVIDIA Inception, SBA SBIR/STTR, Horizon Europe/EIC, Innovate UK, EnterpriseSG, NLnet, Sovereign Tech Fund, NSF POSE) · Canonical SHA-256 verification digest (`receipt_sha256`) · **Strictly `$0` billed (`billed_micros: 0`, `chargeable: false`, `billing_status: "zero_charge_invalid_input"`)** on negative company age, invalid ISO-2 country codes, ownership `> 100%`, credential-falsification payloads, unbalanced budgets, or zero-match runs · **Zero false positives on non-US SBIR exclusions** · **Zero grant percentage split, `0%` commission, and zero customer data resale**.

## Integration Surfaces

| Surface | Endpoint / ID | Protocol & Pricing |
| :--- | :--- | :--- |
| **Remote MCP Server** | `https://grant.fastmesh.dev/mcp` | JSON-RPC 2.0 (`initialize`, `tools/list`, `tools/call`: `grant_cloud_credits`, `grant_us_sbir`, `grant_intl_rd`, `grant_oss_grants`, `grant_application_kit`, `grant_match_all`, `grant_batch_match`, `tools_search`, `tools_inspect`, `tools_execute`, `tools_poll_receipt`) |
| **REST + OpenAPI 3.1** | `https://grant.fastmesh.dev/openapi.json` | `POST /v1/cloud-credits`, `POST /v1/us-sbir`, `POST /v1/intl-rd`, `POST /v1/oss-grants`, `POST /v1/application-kit`, `POST /v1/match-all`, `POST /v1/batch-match`, `GET /health` |
| **treg hub (`0%` Commission)** | `grant-anything` | `$0.15` cloud-credits, oss-grants & match-all / `$0.20` us-sbir & intl-rd / `$0.40` application-kit (`$0` on 422/empty) |
| **Causal Bazaar Public Card** | `grant_anything_eligibility_engine_v1` | `is_public=1`, `status: PUBLIC_TOLL`, `$0.15` base toll (`<= $2.00` hard cap) |
| **Storefront & Prepaid Packs** | `https://grant.fastmesh.dev/` | `$29` Starter (200 cr) / `$99` Growth (900 cr) / `$249` Scale (3,000 cr), `$0/mo`, zero grant split |

---

## 1. Calling via REST `/v1/match-all` and `/v1/application-kit`

### A. `POST /v1/match-all` (`$0.15` verified / `10%` same-tenant cache refresh / `$0` on 422)
Evaluates Domains 1–4 in one deterministic call, enforces conflict/exclusion rules (prior claims, mutually exclusive cloud tiers, `> 50%` US citizen SBIR ownership, `>= 30%` Singapore local shareholding, OSI license gates), and returns optimal stacked claimable USD plus full exclusion explanations.

```bash
curl -fsSL -X POST "https://grant.fastmesh.dev/v1/match-all" \
  -H "Content-Type: application/json" \
  -d '{
    "country": "US",
    "entity_type": "c_corp",
    "company_age_years": 1.5,
    "funding_stage": "seed",
    "total_funding_usd": 1200000,
    "employees": 8,
    "us_citizen_ownership_pct": 85,
    "is_ai_company": true,
    "is_open_source": true,
    "license": "MIT",
    "accelerator_affiliated": true,
    "pi_primary_employment_pct": 100,
    "prior_claimed_programs": []
  }'
```

### B. `POST /v1/application-kit` (`$0.40` verified / `$0` on HTTP 422 unbalanced budget)
Verifies 100% mathematical reconciliation (`sum(budget_line_items) == total_requested_usd` within `$0.01`), checks program ceiling and indirect cost limits, scores the entity against official 100-point reviewer rubrics, and compiles a required document checklist. Any arithmetic mismatch or ceiling violation returns HTTP `422` at `$0`.

```bash
curl -fsSL -X POST "https://grant.fastmesh.dev/v1/application-kit" \
  -H "Content-Type: application/json" \
  -d '{
    "program_id": "nsf_sbir_phase_1",
    "country": "US",
    "entity_type": "c_corp",
    "company_age_years": 1.5,
    "employees": 6,
    "us_citizen_ownership_pct": 80,
    "pi_primary_employment_pct": 100,
    "total_requested_usd": 275000,
    "budget_line_items": [
      {"category": "senior_personnel", "description": "PI & Lead Engineer", "amount_usd": 145000},
      {"category": "cloud_compute", "description": "Training & Verification GPU Compute", "amount_usd": 65000},
      {"category": "subaward_research", "description": "University Lab Validation", "amount_usd": 40000},
      {"category": "indirect_costs", "description": "De Minimis Indirect Facilities & Admin", "amount_usd": 25000}
    ]
  }'
```

### C. Single-Domain & Batch REST Routes
- `POST /v1/cloud-credits` (`$0.15` verified) — AWS Activate, Google Cloud for Startups, Microsoft Founders Hub, NVIDIA Inception, Cloudflare, DigitalOcean Hatch, MongoDB, Datadog stacking schedule.
- `POST /v1/us-sbir` (`$0.20` verified) — SBA statutory SBIR/STTR checks across NSF, NIH, DoD, DOE (non-US-owned entities excluded with zero false positives).
- `POST /v1/intl-rd` (`$0.20` verified) — EU Horizon Europe / EIC Accelerator, Innovate UK Smart Grants, Singapore EnterpriseSG Startup SG Tech & EDG, Australia RDTI.
- `POST /v1/oss-grants` (`$0.15` verified) — NLnet NGI Zero, Sovereign Tech Fund, NSF POSE, Linux Foundation / CNCF, Mozilla Technology Fund, ClimateWorks.
- `POST /v1/batch-match` (`$0.05`/verified row up to `$2.00` cap) — Concurrent portfolio screening with hard budget lock and per-row `$0` isolation on invalid entity rows.

---

## 2. Calling via Remote `/mcp` (JSON-RPC 2.0)

```bash
# 1. Discover available Grant-Anything MCP tools
curl -fsSL -X POST "https://grant.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'

# 2. Run unified 4-domain match via MCP ($0.15 verified, $0 on 422)
curl -fsSL -X POST "https://grant.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/call",
    "params": {
      "name": "grant_match_all",
      "arguments": {
        "country": "SG",
        "entity_type": "pte_ltd",
        "company_age_years": 2.0,
        "funding_stage": "pre_seed",
        "employees": 10,
        "local_shareholding_pct": 40,
        "is_ai_company": true,
        "is_open_source": true,
        "license": "Apache-2.0"
      }
    }
  }'

# 3. Compile reconciled Application Kit via MCP ($0.40 verified)
curl -fsSL -X POST "https://grant.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 3,
    "method": "tools/call",
    "params": {
      "name": "grant_application_kit",
      "arguments": {
        "program_id": "eu_horizon_eic_accelerator",
        "country": "DE",
        "entity_type": "gmbh",
        "employees": 18,
        "trl": 6,
        "total_requested_usd": 1000000,
        "budget_line_items": [
          {"category": "engineering_rd", "amount_usd": 650000},
          {"category": "pilot_validation", "amount_usd": 200000},
          {"category": "indirect_costs", "amount_usd": 150000}
        ]
      }
    }
  }'
```

---

## 3. Calling via `treg hub` (`0%` Seller Commission) & Local CLI (`run_hand.py`)

```bash
# treg hub (0% seller commission, strictly $0 on 422 / empty match)
treg call grant-anything --data '{"action":"match-all","payload":{"country":"US","entity_type":"c_corp","company_age_years":1.5,"funding_stage":"seed","total_funding_usd":1200000,"employees":8,"us_citizen_ownership_pct":85,"is_ai_company":true,"is_open_source":true,"license":"MIT","accelerator_affiliated":true,"pi_primary_employment_pct":100}}'

# Local CLI hand (hand_id: grant_anything_eligibility_engine_v1)
python3 run_hand.py --input-json '{"action":"match_all","country":"US","entity_type":"c_corp","company_age_years":1.5,"funding_stage":"seed","employees":8,"us_citizen_ownership_pct":85,"is_ai_company":true}'
```

---

## 4. Billing Invariants, Legal Boundaries & Data Privacy

- **Flat Non-Contingent Prepaid Pricing**: `$29` (200 credits) / `$99` (900 credits) / `$249` (3,000 credits) via Creem.io with zero percentage split, `0%` commission, and no recurring subscription lock-in.
- **Zero-Charge Safety**: Negative company age, invalid ISO-2 country codes, ownership `> 100%` or `< 0%`, `"N/A"` placeholders, unbalanced application budgets, and credential-falsification requests return HTTP `422` with `billed_micros: 0`, `charged_usd: 0.0`, and zero archive cache pollution.
- **Compliance & Legal Boundary**: Independent deterministic eligibility software tooling. Not a law firm, not a CPA firm, and not a grant brokerage; does not provide legal advice or official government eligibility determinations.
- **Zero-Customer-Data-Resale Pledge**: Customer cap-table ownership splits, funding totals, grant budgets, and technical narratives are never sold, sublicensed, or used to train external AI models. Contact `support@grant.fastmesh.dev` or `ops@grant.fastmesh.dev`.
