Xenodia Docs
Capability Marketplace

Provider Guide

What a provider must prepare before a capability can be listed and safely invoked through Xenodia.

A capability must be more than a title and URL. It needs a machine-readable contract that an agent can inspect without private context, plus enough operational metadata for billing, logging, review, and support.

Publication Model

Capability publication is review-gated:

  1. Define the capability contract.
  2. Define each operation and input shape.
  3. Provide agent-readable usage instructions.
  4. Set pricing and funding modes.
  5. Pass runtime readiness and health checks.
  6. Publish a frozen version snapshot.
  7. Make the capability consumer-visible.

The public catalog should only list capabilities that are runtime-ready, versioned, and safe for agents to call.

Required Descriptor Fields

FieldRequirement
slugStable lowercase identifier. Do not rename after publication.
nameHuman-readable capability name.
typeCapability type, usually api for the current runtime.
categoryHigh-level grouping such as intelligence, data, or automation.
short_descriptionOne-sentence value proposition.
provider_namePublic provider display name.
default_versionPublished runtime contract version such as v1.
funding_modesAllowed billing relationships.
invoke_pathDefault operation route.
operationsComplete operation contracts.
agent_doc_whatWhen an agent should use the capability.
agent_doc_howSafe operation sequence and constraints.
trust_signalsEvidence, freshness, health, idempotency, or audit signals.

Operation Contract

Each operation should include:

FieldRequirement
slugStable operation identifier.
nameHuman-readable operation name.
methodPublic method, usually GET or POST.
pathPublic Xenodia route for the operation.
summaryOne-sentence operation purpose.
read_onlyWhether the operation only reads external state.
flow_stepRecommended order when the capability has a staged flow.
pricingBilling kind, mode, currency, and unit price in micro USDC.
input_fieldsRequired and optional inputs.
request_exampleMinimal valid example.
output_highlightsResponse fields an agent should inspect.
agent_doc_howOperation-specific usage instructions.
idempotency_key_requiredRequired for paid, async, or policy-sensitive operations.
supports_sync / supports_asyncSupported execution modes.

Agent Docs Standard

Write agent_doc_what as a decision rule:

Use this capability when an agent needs ...

Write agent_doc_how as an execution rule:

Call Status first, then List Monitors, then Query only when coverage and freshness are acceptable.

Good agent docs are short, imperative, and operational. They should not rely on marketing language or provider-only context.

Versioning

Published capability versions are contract snapshots. Breaking changes require a new version. A breaking change includes:

  • Removing or renaming an operation.
  • Changing required input fields.
  • Changing output meaning in a way that breaks agent interpretation.
  • Changing sync versus async support.
  • Changing the default operation.

Non-breaking catalog edits, such as better descriptions, tags, and agent docs, may evolve without changing the runtime snapshot.

Pricing Rules

Prices are expressed in unit_price_micro_usdc, where 1000000 equals 1 USDC. For multi-operation capabilities, set price per operation. Helper reads can be free, while the main operation can be paid.

Agents must be able to read price before calling. Do not hide required paid steps in prose.

Listing Checklist

Before requesting publication, confirm:

  • The capability has a stable slug and version.
  • Every operation has a route, input fields, example, and price.
  • Paid operations require idempotency.
  • Helper operations are marked read-only when appropriate.
  • Agent docs explain when and how to call.
  • Availability and health failures do not lock funds.
  • The response includes enough data for audit and user explanation.
  • Logs can identify capability slug, operation, version, actor, payer, and request ID.

本页内容