Standalone cargo workspace at apps/toolgate (working name; product name Switchyard pending owner confirmation). Clean-room implementation from gtm/TOOLGATE-SPEC-2026-09-29.md. - switchyard-core: tool/capability/provider manifests, micro-USD prices (quote = hold bound, settle = exact capture, failures never billed), the Adapter trait and error classes, the HTTP transport seam, the API error envelope, canonical JSON, request hashes and the audit hash chain. - switchyard-catalog: YAML loader with integrity checks (references, JSON Schema 2020-12 compile, examples validate), JSON Pointer validation errors, output mapping language, minijinja templates and BM25 search by task with free-first and reliability boosts. - catalog/: 24 capabilities, 27 tools (11 own-product, 16 free/public), provider etiquette limits, and the lead-to-video SKILL.md bundle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
44 lines
1.5 KiB
YAML
44 lines
1.5 KiB
YAML
- id: geo.geocode
|
|
title: Geocode an address or place
|
|
description: Turn an address or place name into coordinates (latitude, longitude) with a display name.
|
|
tags: [geocode, address, place, map, coordinates, location, osm]
|
|
input_schema:
|
|
type: object
|
|
properties:
|
|
q: { type: string, minLength: 2, maxLength: 300, description: Free-form address or place }
|
|
limit: { type: integer, minimum: 1, maximum: 10, default: 5 }
|
|
country: { type: string, pattern: "^[a-zA-Z]{2}$", description: ISO country code filter }
|
|
required: [q]
|
|
additionalProperties: false
|
|
output_schema:
|
|
type: object
|
|
properties:
|
|
results:
|
|
type: array
|
|
items:
|
|
type: object
|
|
properties:
|
|
name: { type: [string, "null"] }
|
|
lat: { type: [number, string, "null"] }
|
|
lon: { type: [number, string, "null"] }
|
|
required: [results]
|
|
|
|
- id: weather.forecast
|
|
title: Weather forecast
|
|
description: Hourly weather forecast (temperature and precipitation) for coordinates.
|
|
tags: [weather, forecast, temperature, rain, precipitation, climate]
|
|
input_schema:
|
|
type: object
|
|
properties:
|
|
lat: { type: number, minimum: -90, maximum: 90 }
|
|
lon: { type: number, minimum: -180, maximum: 180 }
|
|
days: { type: integer, minimum: 1, maximum: 16, default: 3 }
|
|
required: [lat, lon]
|
|
additionalProperties: false
|
|
output_schema:
|
|
type: object
|
|
properties:
|
|
timezone: { type: [string, "null"] }
|
|
hourly: { type: [object, "null"] }
|
|
units: { type: [object, "null"] }
|