Skip to content

Room types

One row per room or unit type on a hotel or rental page, in the page's own words, and one question answered from its photos.

$0.064 per call · one payment for the whole workflow
POST /api/skill/room-types
Sample output + API docs →

3 tools run server-side in one request: one payment, one response, and a partial-success envelope if a step fails. Paid in USDC over x402 or MPP; this pack has no proof-of-work tier.

When to use this pack

Finding which rooms have a dishwasher, a washer or free parking. What the page does not state reads "not listed".

Tools in this pack

Each is also callable on its own.

ToolRoute
Page images (galleries included)POST /api/page-images
HTML meta (from string)POST /api/html-meta
Image understanding (ask about a photo)POST /api/image-describe

Bought one at a time, these 3 tools cost $0.021 together; the pack is that sum less a 10% bundle discount, rounded up to the $0.001 settlement floor, which is $0.064.

Workflow

  1. Read the page's text and every photo, galleries included, with page-images.
  2. Write one row per room type, each naming its source page.
  3. List the room types the page's own structured data publishes, with html-meta.
  4. Ask up to 6 of the photos your question with image-describe (model-backed).

Arguments

NameRequiredDescriptionExample
urlyesPage with the room or unit types, or one type's own pagehttps://agent402.tools/fixtures/sample-rooms.html
questionnoOptional: one question to ask of the page's photos (up to 6); name the place, as in "Is there a dishwasher in this kitchen?"Is there a refrigerator?

What one call returns

A JSON object with pack, rows, structuredRooms, untrustedContent, args, steps, summary, aiGenerated; steps holds each tool's own result or error. Full example on the API page.

Call it directly

Any x402 client pays the 402 and gets the whole workflow back. With the agent402-client SDK (npm i agent402-client):

import { Agent402 } from "agent402-client";
// payFetch: an x402-wrapped fetch your wallet signs (@x402/fetch).
// Tools on the free tier need no options: new Agent402() pays them by proof-of-work.
// or pay by card: new Agent402({ creditsKey }) with a key from /credits
const client = new Agent402({ fetch: payFetch });
const result = await client.call("skill-room-types", {"url":"https://agent402.tools/fixtures/sample-rooms.html","question":"Is there a refrigerator?"});

Run it in Claude

claude mcp add agent402 -s user -- npx -y agent402-mcp@0.21.0

Then paste this prompt:

List the room types on https://agent402.tools/fixtures/sample-rooms.html with Agent402's room-types skill pack, and ask its photos: Is there a refrigerator? Show a table with each type's sleeps, beds, kitchen and parking, keep "not listed" where the page says nothing, and name the source page.

← All skill packs