Lawmadi Agent discovery API

The Agent discovery API from Lawmadi — 8 operation(s) for agent discovery.

GitHub OpenAPI

Operations 8

GET /.well-known/mcp.json MCP discovery document #
GET /.well-known/oauth-authorization-server OAuth 2.0 authorization server metadata (RFC 8414) #
GET /mcp/.well-known/oauth-protected-resource OAuth 2.0 protected resource metadata (RFC 9728) #
GET /.well-known/agent-card.json A2A agent card #
GET /.well-known/x402 x402 machine-payment discovery #
POST /oauth/register Dynamic client registration (RFC 7591) #
POST /oauth/token Token endpoint — authorization_code (PKCE S256) and refresh_token #
POST /a2a A2A JSON-RPC — message/send, tasks/get, tasks/cancel #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/lawmadi-com:lawmadi-com-agent-discovery-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

lawmadi-com-agent-discovery-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: 법마디(Lawmadi) OS — Korean Legal AI Agent discovery API
  description: 법마디(Lawmadi) OS — Korean Legal AI with 60 specialized agents and real-time statute verification via law.go.kr. Login grants 10 free credits one time (non-recurring). Korean & English.
  version: 60.0.1
  contact:
    email: admin@lawmadi.com
  termsOfService: https://lawmadi.com/terms
servers:
- url: https://lawmadi.com
  description: Production
tags:
- name: Agent Discovery
paths:
  /.well-known/mcp.json:
    get:
      tags:
      - Agent Discovery
      summary: MCP discovery document
      description: Server description, tool count, auth type and the tools callable without a key.
      responses:
        '200':
          description: Metadata document (JSON)
      operationId: getWellKnownMcpJson
      x-operation-id-source: derived
  /.well-known/oauth-authorization-server:
    get:
      tags:
      - Agent Discovery
      summary: OAuth 2.0 authorization server metadata (RFC 8414)
      description: Endpoints, grant types and `code_challenge_methods_supported` (S256 only).
      responses:
        '200':
          description: Metadata document (JSON)
      operationId: getWellKnownOauthAuthorizationServer
      x-operation-id-source: derived
  /mcp/.well-known/oauth-protected-resource:
    get:
      tags:
      - Agent Discovery
      summary: OAuth 2.0 protected resource metadata (RFC 9728)
      description: What MCP clients read before `tools/call`. Also served at /.well-known/oauth-protected-resource.
      responses:
        '200':
          description: Metadata document (JSON)
      operationId: getMcpWellKnownOauthProtectedResource
      x-operation-id-source: derived
  /.well-known/agent-card.json:
    get:
      tags:
      - Agent Discovery
      summary: A2A agent card
      description: Skills, security schemes and capabilities. `streaming` and `pushNotifications` are false — this agent completes tasks synchronously. Also served at /.well-known/agent.json (legacy path).
      responses:
        '200':
          description: Metadata document (JSON)
      operationId: getWellKnownAgentCardJson
      x-operation-id-source: derived
  /.well-known/x402:
    get:
      tags:
      - Agent Discovery
      summary: x402 machine-payment discovery
      description: '**Returns 404 while no on-chain wallet is configured** — implemented but not enabled. The 404 body says so and points at the browser checkout. We do not advertise a capability we cannot honour.'
      responses:
        '200':
          description: Metadata document (JSON)
      operationId: getWellKnownX402
      x-operation-id-source: derived
  /oauth/register:
    post:
      tags:
      - Agent Discovery
      summary: Dynamic client registration (RFC 7591)
      description: Open to any client — registration is a client describing itself, not resource access; access is created by a human approving at /oauth/authorize. Rate limited per source. `redirect_uris` must be https, a loopback http URI (RFC 8252), or a reverse-domain custom scheme.
      responses:
        '201':
          description: Client registered
        '400':
          description: invalid_redirect_uri / invalid_client_metadata
        '429':
          description: Registration limit reached for this source
      operationId: postOauthRegister
      x-operation-id-source: derived
  /oauth/token:
    post:
      tags:
      - Agent Discovery
      summary: Token endpoint — authorization_code (PKCE S256) and refresh_token
      description: Returns an `lmk_live_…` access token plus a rotating refresh token. Reusing an authorization code or a rotated refresh token revokes the whole grant (RFC 6749 §10.5).
      responses:
        '200':
          description: Access token issued
        '400':
          description: invalid_grant / invalid_request
        '401':
          description: invalid_client
      operationId: postOauthToken
      x-operation-id-source: derived
  /a2a:
    post:
      tags:
      - Agent Discovery
      summary: A2A JSON-RPC — message/send, tasks/get, tasks/cancel
      description: Skills map to the same MCP tools and pass through the same auth, quota and billing gate — there is no separate metered path here. `message/stream` and push notifications are refused with the spec code because the agent card declares them false.
      security:
      - {}
      - apiKey: []
      - oauth2:
        - mcp
      responses:
        '200':
          description: JSON-RPC result (a terminal Task) or JSON-RPC error
      operationId: postA2a
      x-operation-id-source: derived
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: 'Customer API key — `Authorization: Bearer lmk_live_…`. Issue one after email sign-in at https://lawmadi.com/mcp-key-guide-en, or obtain one through the OAuth flow below (an OAuth access token IS such a key, so quotas and billing behave identically). Costs are not duplicated here: GET /plans returns the current pricing as JSON, and the MCP tool `get_pricing` needs no auth.'
    oauth2:
      type: oauth2
      description: 'Authorization code + PKCE (S256 only). Dynamic client registration is open (RFC 7591). Scope `mcp:read` cannot spend the user''s credits. Server metadata: https://lawmadi.com/.well-known/oauth-authorization-server (RFC 8414); protected resource metadata: https://lawmadi.com/mcp/.well-known/oauth-protected-resource (RFC 9728).'
      flows:
        authorizationCode:
          authorizationUrl: https://lawmadi.com/oauth/authorize
          tokenUrl: https://lawmadi.com/oauth/token
          scopes:
            mcp: Call any tool, including tools that spend credits.
            mcp:read: Call tools that never spend credits.