gov-data-mcp 1.2.5 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -169,7 +169,27 @@ npx awal x402 pay 'https://agi.apify.com/protocols/x402/prepaid-tokens?amount=5&
169
169
  # → returns a bearer token; export it as APIFY_TOKEN and start this server as usual
170
170
  ```
171
171
 
172
- The prepaid balance is an absolute spending cap and expires after 14 days. Every tool here charges only per result — none pass platform usage through, none require full permissions, and none run in Standby mode, which are the three things that make an Actor ineligible. Prices are in the catalog (`usdPer1000Results` on every search hit), so an agent can see the cost before spending.
172
+ The prepaid balance is an absolute spending cap and expires after 14 days. Every tool here charges per result or per generated report. None pass platform usage through, none require full permissions, and none run in Standby mode, which are the three things that make an Actor ineligible. Prices are in the catalog (`usdPerUnit` and `priceUnit` on every search hit, plus `usdPer1000Results` for per-row tools), so an agent can see the cost before spending.
173
+
174
+ ## Calling the tools well (guide for agents)
175
+
176
+ The most common way to waste a call is to guess the input: no state, no coordinates, a misspelled field. These tools then refuse the question, or match nothing, and the caller still pays a fractional actor-start fee. The server helps an agent avoid that in four ways:
177
+
178
+ 1. **An agent guide in the handshake.** The MCP `initialize` response carries `instructions`. They cover the search → describe → run workflow, scoping every call, real codes and ISO dates, starting small, and how to read failures, zero rows and `null`.
179
+ 2. **Verified example inputs.** `describe-gov-data-tool` (free) returns:
180
+ - `must_supply`: the fields you have to provide.
181
+ - `example_input`: the actor's prefill, which Apify's own QA runs every few days and which returns rows.
182
+ - Up to two `examples`: inputs from the actor's published, run-verified demo tasks, each with a human title.
183
+
184
+ Start from one of them and change only the values you need.
185
+ 3. **A free local check before any metered run.** A missing required field, an input name the tool doesn't have, or a value outside a closed vocabulary is reported with `run_status: NOT_RUN_INPUT_INVALID` and the example to copy. Nothing runs and nothing is charged.
186
+ 4. **A next step on every unhelpful result.** A failed run returns the actor's own reason in `note`, plus `next_step`, `must_supply` and `example_input`. A zero-row success says to check spelling, state code, radius and date window before concluding that nothing exists.
187
+
188
+ Example of a well-scoped first call:
189
+
190
+ ```json
191
+ {"tool": "medicaid-exclusion-screener", "input": {"mode": "screen", "targets": [{"npi": "1972902351"}, {"name": "Jane Doe", "dob": "1970-01-01"}]}}
192
+ ```
173
193
 
174
194
  ## On honest answers
175
195
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gov-data-mcp",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "mcpName": "io.github.malonestar/gov-data-mcp",
5
5
  "description": "MCP server exposing published US government open-data tools (EPA, FEMA, USGS, NOAA, FAA, USACE, FDIC, HUD, state licensing boards) as agent-callable tools, backed by Apify Actors.",
6
6
  "type": "module",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "scripts": {
20
20
  "start": "node src/index.js",
21
- "test": "node --test test/tools.test.js test/apify.test.js test/catalog.test.js test/agent-surface.test.js test/presets.test.js",
21
+ "test": "node --test test/tools.test.js test/apify.test.js test/catalog.test.js test/agent-surface.test.js test/presets.test.js test/guidance.test.js",
22
22
  "catalog": "node tools/gen-catalog.cjs",
23
23
  "check:catalog": "node tools/check-catalog-live.cjs",
24
24
  "readme": "node tools/gen-readme-coverage.cjs"