Yonyon AI · Schema

AskDescriptor

Self-describing descriptor for the NLWeb query endpoint. Returned by GET /ask so an agent can learn how to call POST /ask without reading prose documentation.

CompanyArtificial IntelligenceAgentsBusiness AutomationSoftware-as-a-Service

Properties

Name Type Description
@context string JSON-LD context.
_meta object NLWeb envelope metadata.
query string Always empty on the descriptor; present so the descriptor and a real answer share one shape.
answer string Human and agent readable instructions for calling this endpoint.
results array Always empty on the descriptor.
method string HTTP method to use for a real query.
url string Absolute URL to POST a query to.
streaming boolean Whether the endpoint can stream Server-Sent Events.
View JSON Schema on GitHub

JSON Schema

yonyon-ai-ask-descriptor-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yonyon-ai/json-schema/yonyon-ai-ask-descriptor-schema.json",
  "title": "AskDescriptor",
  "description": "Self-describing descriptor for the NLWeb query endpoint. Returned by GET /ask so an agent can learn how to call POST /ask without reading prose documentation.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yonyon-ai-openapi.yml#/components/schemas/AskDescriptor",
  "type": "object",
  "required": [
    "_meta",
    "answer",
    "method",
    "url",
    "streaming"
  ],
  "properties": {
    "@context": {
      "type": "string",
      "const": "https://schema.org",
      "description": "JSON-LD context."
    },
    "_meta": {
      "type": "object",
      "required": [
        "response_type",
        "version"
      ],
      "description": "NLWeb envelope metadata.",
      "properties": {
        "response_type": {
          "type": "string",
          "const": "nlws",
          "description": "Always 'nlws' for this endpoint."
        },
        "version": {
          "type": "string",
          "description": "NLWeb protocol version."
        }
      }
    },
    "query": {
      "type": "string",
      "description": "Always empty on the descriptor; present so the descriptor and a real answer share one shape."
    },
    "answer": {
      "type": "string",
      "description": "Human and agent readable instructions for calling this endpoint."
    },
    "results": {
      "type": "array",
      "description": "Always empty on the descriptor.",
      "items": {
        "type": "object",
        "properties": {
          "@type": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        }
      }
    },
    "method": {
      "type": "string",
      "enum": [
        "POST"
      ],
      "description": "HTTP method to use for a real query."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Absolute URL to POST a query to."
    },
    "streaming": {
      "type": "boolean",
      "description": "Whether the endpoint can stream Server-Sent Events."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/yonyon-ai-ask-descriptor"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.