Skip to content

Capability profiles

bnw.capability-profile/1 is the first portable application-layer descriptor for a BNW capability. It is a UTF-8 JSON blob addressed by its BLAKE3 content ID and referenced by a signed CapabilityManifest.

The BNW networking core treats descriptor bytes as opaque. The bnw-profile crate and CLI provide strict parsing and validation for applications that choose this profile. Endpoint location and current availability remain in expiring provider offers; authorization remains in delegation and provider-local policy.

{
"profile": "bnw.capability-profile/1",
"name": "Finance lookup",
"description": "Looks up one public market symbol.",
"operation": {
"name": "tools/call",
"input": {
"media_types": ["application/json"],
"schema": null,
"max_bytes": 1048576,
"privacy": "participant-encrypted"
},
"output": {
"media_types": ["application/json"],
"schema": null,
"max_bytes": 1048576,
"privacy": "participant-encrypted"
}
}
}

schema, when present, is the hexadecimal content ID of an immutable application schema. It does not make that schema authoritative. Implementations must independently retrieve and validate the referenced bytes. A BNW node asks peers for the input and output schema blobs along with the descriptor, like any other content-addressed blob. It serves the schemas of capabilities it publishes or follows, so they stay available while the publisher is offline. From an input’s JSON Schema it derives a local, unsigned starter document (input_template in catalog-inspect) with the schema’s required properties, so clients can offer a correctly shaped request. Neither the schema nor the template is enforced on the requester side; the provider checks every input.

  • The profile identifier is exactly bnw.capability-profile/1, /2, or /3.
  • One capability describes exactly one operation in v1. The signed invocation therefore cannot be reinterpreted as a different operation.
  • Operation names use the same lowercase machine-safe alphabet as invocation progress stages.
  • Each input and output accepts 1–16 explicit media types and at most 1 GiB.
  • Privacy is public, participant-encrypted, or either.
  • Unknown JSON fields are rejected so misspelled security-relevant fields do not silently disappear.
  • The descriptor carries no secret, credential, price, load, or current-availability data. Only v3 names an address: the public origin of the service a tool calls (see below). A private address, a program’s path, a query string, or user info is never published.

Participant-encrypted payloads are existing BNW encrypted-blob manifests whose recipient set is exactly the invocation requester and provider. The manifest and ciphertext synchronize through their inbox scopes; filenames, media types, plaintext hashes, and sizes remain inside the sealed access record.

bnw.capability-profile/2 has the same shape as v1 plus two fields that help people find tools among many:

{
"profile": "bnw.capability-profile/2",
"name": "Create invoice",
"operation": { "…": "as in v1" },
"categories": ["finance"],
"tags": ["billing", "server-acme-books"]
}
  • categories holds 1–3 labels, tags 0–8. Each label is 1–32 bytes of lowercase ASCII letters, digits, and inner hyphens. Both lists are sorted and distinct, so a descriptor has one canonical form.
  • Publishers choose categories from a fixed list (bnw_profile::TOOL_CATEGORIES): ai, business, code, communication, data, design, devops, documents, education, files, finance, health, location, media, other, productivity, research, security, shopping, system, web. A descriptor may name a category outside the list; readers file it under other, so the list can grow without a new version.
  • Tools shared from one MCP server also get a server-<name> tag, when there is room, so they can be found together.
  • v1 descriptors must not carry either field. A publisher that chooses no categories publishes v1, byte for byte as before.
  • Labels are the publisher’s claims, like the name and description: hints for search, not verified facts. Nodes infer categories for v1 tools from their kind and wording, and users can override categories or add tags locally without changing the descriptor.

Nodes that predate v2 cannot parse it: they store and relay the descriptor, but list the tool by kind only and do not offer it to agents. Choosing categories is therefore an explicit publisher decision. A published descriptor cannot be changed in place, so relabeling a tool means publishing a replacement capability, which existing grants do not cover; republishing a tool (for example with its input schema) keeps its labels.

bnw.capability-profile/3 has the shape of v2 plus a required service, and its categories and tags become optional (tags still need a category):

{
"profile": "bnw.capability-profile/3",
"name": "Forecast",
"operation": { "…": "as in v1" },
"service": {
"kind": "mcp",
"name": "Open Weather",
"description": "Forecasts for anywhere.",
"version": "1.2.0",
"origin": "https://mcp.weather.example.org/mcp",
"operation": "forecast"
}
}
  • The publisher’s node fills it in from what it connected to, never from what the user types: an MCP server’s serverInfo (title or name, version, description) from the initialize handshake, or an OpenAPI document’s info (title, version, description). Without a server name, the host stands in.
  • kind is mcp or rest. operation is the MCP tool’s name, or the REST operation as METHOD /path/template (not its operationId, which differs between copies of a document).
  • origin is the canonical public URL the tool calls: lowercase scheme and host, no default port, user info, query, fragment, or trailing slash. It is absent for an MCP server run as a program on the publisher’s computer, and for a server on a loopback, private, link-local, or .local address.
  • account_bound is true when results depend on whose credential is used: always for OAuth, never without a credential, and for a static key (a token, API key, password, or a program’s environment) as the publisher answers when sharing.
  • Names stay ≤64 bytes, descriptions ≤280, versions ≤32, origins ≤256.

Pools. A tool’s pool key is the BLAKE3 hash of kind, origin, and operation; it exists only with an origin and without account_bound. A node may provide another publisher’s tool (join it) only when that tool’s pool key equals the one its own connection would publish and the input schema is the same. The joiner computes its key from its own connection and calls its own endpoint, so a descriptor that claims another origin can pool only what really is the same tool. Tools whose service differs, that run on someone’s computer, or that sign in to an account are never pooled; the same tool taking another input is another version, and is published on its own.

Display. The service’s name, version, and origin are the publisher’s claims, like its name and description: hints for people and agents choosing between same-named tools, shown as “says it calls …”, never used to grant anything.

Nodes before v3 cannot parse it: they list such a tool by kind only and do not offer it to agents. Sharing a tool again publishes it anew as v3 when its descriptor lacks the service, and withdraws the old capability’s offer.

Capability manifests may continue to reference other descriptor formats. A new descriptor profile version must use a new profile identifier and may coexist with v1. Supporting this profile never changes the validation or replication semantics of the signed BNW core objects.