dwelldelta-mcp 0.16.0 → 0.16.1

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.
Files changed (3) hide show
  1. package/README.md +59 -0
  2. package/package.json +1 -1
  3. package/tools.mjs +1 -1
package/README.md CHANGED
@@ -336,6 +336,65 @@ published data file. The structured result says the same, in new fields; every f
336
336
  in `refusals`.
337
337
  - `rent_check` and `market_indicators` say `sample_size: null` and why: an index and these indicators have no count.
338
338
 
339
+ ## Tool annotations and why
340
+
341
+ Every tool sets all four MCP hints explicitly. Here is each value, and the reason for it in what the code does. The
342
+ hosted server (https://mcp.dwelldelta.com.au/mcp), which DwellDelta's Claude directory listing and ChatGPT plugin use,
343
+ registers the seven read-only tools and nothing else; `contribute_rent` is registered only by this package's stdio
344
+ server.
345
+
346
+ | Tool | Served by | readOnlyHint | destructiveHint | idempotentHint | openWorldHint |
347
+ |---|---|---|---|---|---|
348
+ | `rent_check` | npm and hosted | true | false | true | false |
349
+ | `market_indicators` | npm and hosted | true | false | true | false |
350
+ | `data_sources` | npm and hosted | true | false | true | false |
351
+ | `vic_rents` | npm and hosted | true | false | true | false |
352
+ | `area_rents` | npm and hosted | true | false | true | false |
353
+ | `nsw_sale_prices` | npm and hosted | true | false | true | false |
354
+ | `property_rents` | npm and hosted | true | false | true | false |
355
+ | `contribute_rent` | npm only | false | false | false | true |
356
+
357
+ The seven read-only tools share one set of hints (`readOnly` in `register-tools.mjs`):
358
+
359
+ - `readOnlyHint: true` - each tool looks up or computes an answer from DwellDelta's own data files and returns it; it
360
+ creates, updates, deletes and sends nothing. The files are the copies this package ships, DwellDelta's published
361
+ copies at fixed addresses on tools.dwelldelta.com.au (read when the server loads, refreshed by the hosted server no
362
+ more than once an hour, and held to the rules of form above), or, on your own machine, a copy you name with a
363
+ `DWELLDELTA_` variable, or a `dwelldelta-data/market` folder two levels above the package where one exists
364
+ (DwellDelta's own working copy of these files). No argument chooses what is read or fetched. Nothing is kept from
365
+ a call but the hosted server's one log line, below.
366
+ - `destructiveHint: false` - nothing is written, so nothing can be deleted or overwritten.
367
+ - `idempotentHint: true` - the same arguments give the same figures until DwellDelta publishes a newer period, and a
368
+ call changes nothing outside the server's own request log; only `retrieved_at`, and a staleness flag once its due
369
+ date passes, move with the clock.
370
+ - `openWorldHint: false` - each tool answers from a bounded catalog, DwellDelta's own data files at fixed addresses:
371
+ no web search, no address taken from the arguments, no other party. OpenAI's app submission guidelines: "A tool
372
+ confined to a bounded private account, workspace, or catalog may use `false`, even when externally hosted.
373
+ Connectivity alone does not determine this value." (<https://developers.openai.com/apps-sdk/app-submission-guidelines>)
374
+
375
+ What the hosted server logs, one line per request, in fixed words: `http` and `rpc` (the kind of request: its HTTP
376
+ method and its MCP method), `path` (the part of the server asked for: "mcp", "challenge" or "other"), `origin`
377
+ (whether a browser origin was absent, allowed or refused: "none", "allowed" or "refused" - never the origin itself),
378
+ `tool` (which tool was called), `status` (the status code), `ok` (whether it succeeded), `ms` (how long it took),
379
+ `via` (on a request refused before it reaches the server, how it was refused) and `feeds` (only when a data file the
380
+ server fetched from tools.dwelldelta.com.au has failed its checks of the file's text, so that the file was not used or
381
+ some of its rows were left out: that file and each check it failed - nothing from the file and nothing about the
382
+ request). Amazon Web Services adds the time each line was written and its request number for it, and lines of its own
383
+ with a request number, the time taken and the memory used. No line holds the tool's arguments, the answer or any
384
+ header's value. The [Privacy Notice](https://tools.dwelldelta.com.au/privacy/#hosted-mcp) has the detail.
385
+
386
+ `contribute_rent` (`server.mjs`):
387
+
388
+ - `readOnlyHint: false` - its second call, with the consent token and `user_agreed: true`, sends the user's rent to
389
+ DwellDelta's contribution endpoint, which stores it. (The first call stores and sends nothing.)
390
+ - `destructiveHint: false` - the write is additive: one new record. The tool never changes or deletes a stored record
391
+ and has no way to; a contributor has theirs deleted by emailing their deletion code.
392
+ - `idempotentHint: false` - every first call issues a new token, and each token can add the rent once, so the same
393
+ rent can be added again as a second record. (A repeat of a second call is refused: its token is used.)
394
+ - `openWorldHint: true` - it is the one tool that sends anything the user gives it off their machine: the rent goes to
395
+ one fixed address, DwellDelta's own contribution service (an AWS Lambda function in Sydney). It is marked as
396
+ reaching outside, the cautious setting.
397
+
339
398
  ## Licence
340
399
 
341
400
  The code is MIT (see LICENSE). The data is not: each figure keeps its source's licence and attribution, which every
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dwelldelta-mcp",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "Australian rents by area for six states, New Zealand rents by council and region and interim ABS cover for the ACT and NT, asked by place with no state, a rent placed against its local median, NSW median sale prices, an ABS rents index check, and sourced property and lending indicators, for AI agents.",
5
5
  "mcpName": "au.com.dwelldelta/dwelldelta",
6
6
  "license": "MIT",
package/tools.mjs CHANGED
@@ -119,7 +119,7 @@ export async function loadSnapshot({ env = process.env, fetchImpl = globalThis.f
119
119
  }
120
120
 
121
121
  export const FOOTER = "Information, not advice. From DwellDelta (dwelldelta.com.au), built on public data.";
122
- export const SERVER_VERSION = "0.16.0";
122
+ export const SERVER_VERSION = "0.16.1";
123
123
  // The indicators snapshot is rebuilt every Monday. Older than this and the answer says so, in words and in the
124
124
  // structured result, rather than serving a stale figure as current.
125
125
  export const STALE_DAYS = 10;