Structured capability schema v1

Listings expose an additive structuredCapabilities object with schemaVersion: 1 and a fields map keyed by stable field IDs. The machine-readable registry is /api/capability-schema. Existing free-text capabilities remain available.

{
  "schemaVersion": 1,
  "fields": {
    "common.creditCardRequired": {
      "status": "claimed",
      "value": false
    },
    "finance.borrowRates": {
      "status": "verified",
      "value": "partial",
      "sourceUrl": "https://provider.example/docs/stock-loan",
      "checkedAt": "2026-11-03T00:00:00.000Z"
    },
    "finance.shortInterest": {
      "status": "unknown"
    }
  }
}

Evidence and unknown values

Unknown and not_supported omit value. False and zero are explicit values and require a claimed, demo_tested or verified status. Unknown is never false or unsupported. Missing applicable fields are returned as unknown. Not supported records an explicit assertion of no support; it does not imply independent verification. A demo listing flag and a listing's Verified badge do not verify any field.

Claimed values are supplied by the provider or catalog editor. Only admins may record demo_tested or verified values, each with a source type, an http(s) sourceUrl or public sourceReference, and an ISO 8601 UTC checkedAt timestamp. New check dates cannot be in the future. Demo tested means a limited test of an example; verified means an admin checked the stated capability against evidence. Neither guarantees ongoing correctness. Submitter changes to tested/verified values must become claimed. Evidence dates show when a value was checked.

Field provenance and freshness v1

The designated high-value fields in v1 are all common commercial/authentication/limit attributes and finance coverage fields in this registry. Free-text descriptions and listing badges do not supply field evidence. Every full search and detail response includes a separate fieldProvenance object with schemaVersion: 1 and the same field IDs as structuredCapabilities. This is shared by HTTP JSON, MCP and A2A.

{
  "verificationStatus": "verified",
  "lastCheckedAt": "2026-11-03T00:00:00.000Z",
  "verifiedAt": "2026-11-03T00:00:00.000Z",
  "source": {
    "type": "provider_docs",
    "url": "https://provider.example/docs",
    "reference": "Stock-loan coverage table"
  },
  "verifier": {
    "kind": "admin",
    "reference": "admin_opaque-reference"
  },
  "freshness": {
    "state": "fresh",
    "expiresAt": "2027-02-01T00:00:00.000Z",
    "maxAgeDays": 90,
    "policyVersion": 1
  }
}

Sources may be provider_docs, provider_statement, demo_run, manual_review, other or unknown. Source references are public, so use a documentation section or shareable run reference and never credentials or private notes. The server attributes a new or changed tested/verified entry to the saving admin with a stable opaque verifier reference; personal names, emails and internal editor IDs are not exposed publicly.

lastCheckedAt reflects a valid non-future checkedAt supported by a source. verifiedAt is that date only for tested/verified entries; it is null for claims and unknown evidence. Missing or future timestamps, absent sources, or unknown fields produce verificationStatus unknown, null timestamps and freshness unknown. Existing entries with URL/date but no source type or verifier retain that missing metadata as unknown; no historical verifier is invented. checkedAt and sourceUrl remain available for existing v1 consumers.

Commercial/free-tier/card/rate-limit evidence expires after 30 days, authentication and finance coverage after 90 days, and all demo tests after 7 days. Exactly at expiresAt, freshness becomes stale. Freshness is computed when read and reports fresh, stale or unknown. Expiry preserves the recorded status and value; it does not silently delete evidence or change exact status filters. Agents requiring current verification should check both verificationStatus and freshness.state. Coverage freshness concerns whether a provider supports a dimension, not the age of each financial observation returned by that provider.

Admin source/value changes require a renewed check date in the editor. Every structured field change, including owner downgrades, removals and category changes, creates an audit snapshot with the old and new value/evidence, editor account ID and edit time in the same transaction as the listing update. No-op saves create no events. Admins can inspect the paginated history from the listing editor or Admin → Field verification history. Application routes expose no history update/delete action; deletion of a listing retains snapshots with its slug and clears the live product link. The initial rollout does not fabricate audit history for pre-existing values.

Field registry

Common attributes apply to every category. Finance coverage fields apply only to finance listings. Coverage values are full (provider claims the named dimension across its stated coverage) or partial (limited instruments, markets, history, or features); an explicit lack of coverage uses not_supported. Consult the evidence for those boundaries. Short interest, borrow rates and earnings calendars are separate capabilities.

FieldType / allowed valuesMeaning
common.freeTierbooleanAn ongoing free tier is offered (not a temporary trial).
common.creditCardRequiredbooleanA credit card is required to start using the service, including any free tier.
common.freeTierLimitKindenum: metered, unlimitedWhether the free tier has a metered allowance or is explicitly unlimited.
common.freeTierLimitnumberAllowance for the free tier. Specify its unit and period separately; zero is an explicit zero allowance, never unknown.
common.freeTierUnitenum: requests, tokens, credits, tasks, recordsUnit of the free-tier allowance.
common.freeTierPeriodenum: minute, hour, day, month, lifetimeReset period for the free-tier allowance.
common.authenticationMethodsenum_set: none, api_key, bearer, oauth2, http_basic, customSupported authentication methods. 'none' explicitly means anonymous access is supported.
common.rateLimitKindenum: metered, unlimitedWhether the standard-plan rate limit is metered or explicitly unlimited.
common.rateLimitnumberPublished standard-plan allowance. Specify unit and period separately; per-account exceptions may apply.
common.rateLimitUnitenum: requests, tokens, credits, tasks, recordsUnit of the published rate limit.
common.rateLimitPeriodenum: second, minute, hour, day, monthReset period for the published rate limit.
finance.shortInterestenum: full, partialReported short-interest positions/ratios; not inferred from prices or borrow rates.
finance.borrowRatesenum: full, partialStock-loan fees or borrowing rates; not short-interest ratios or margin interest.
finance.earningsCalendarenum: full, partialScheduled earnings release dates/events.
finance.priceHistoryenum: full, partialHistorical instrument prices / OHLCV.
finance.financialStatementsenum: full, partialCompany income statements, balance sheets or cash-flow statements.
finance.optionsChainenum: full, partialContract-level options chains and quotes.
finance.dividendsenum: full, partialDividend declarations, dates or cash amounts.
finance.insiderTransactionsenum: full, partialReported insider purchases and sales.
finance.institutionalOwnershipenum: full, partialReported institutional holdings / ownership.

Limits are non-negative safe integers. Always pair numeric free-tier or rate-limit comparisons with their unit and period; 100 requests/day differs from 100 tokens/month. Missing limits are unknown, not zero or unlimited. An explicitly unlimited allowance uses the corresponding LimitKind field with value unlimited and omits the numeric value. v1 models one published standard-plan rate limit and one free-tier allowance; multi-plan allowances remain unknown when they cannot be represented exactly.

Exact filters

HTTP and website search accept capabilityFilters as a JSON array in the query string (URL encode it). MCP search_products and A2A search data parts accept capabilityFilters directly. Legacy fields arrays of condition objects remain supported; fields arrays of strings select response projection. Up to 20 conditions combine with AND, alongside existing category, text, pricing and interface filters. Filtering happens before relevance ranking, counts, pagination and sponsored selection.

curl -G 'https://agentmarket.trade/api/search' --data-urlencode 'category=finance' --data-urlencode 'capabilityFilters=[{"field":"finance.borrowRates","op":"eq","value":"partial"},{"field":"finance.borrowRates","op":"status","value":"verified"},{"field":"common.creditCardRequired","op":"eq","value":false}]'

Boolean and enum fields support eq/ne. Numeric fields support eq/ne/gt/gte/lt/lte. Enum sets support has. Every field supports status with an evidence status as value. Comparison values must use their JSON types (false rather than "false", 100 rather than "100"). Missing, unknown and unsupported fields never match value predicates, including ne; use status=unknown or status=not_supported explicitly. Invalid fields, operators, types, or schema versions are rejected rather than ignored. A finance filter against another category finds no populated finance values; do not use it to infer no support.

Rollout and evolution rules

Existing listings default to an empty v1 map and remain valid. Older edit clients that omit structuredCapabilities preserve existing metadata. Changing category drops fields that no longer apply. There is no automatic inference from free text, pricing, badges or trial output. Owners enrich fields in the listing editor; admins use the same editor and may attach evidence.

Within v1, new optional fields or enum values may be added; consumers must tolerate unfamiliar response fields and enum values. Existing IDs, units, meanings, value types, operators and evidence semantics do not change. Renaming, removal or semantic/type/unit changes require a new schema version, an explicit data migration, and a documented compatibility window. Writers must send a supported schema version and known field IDs; unsupported versions are rejected. Preserve v1 read compatibility until a successor migration and deprecation notice exist.