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.
openapi: 3.2.0
info:
title: Life Scenario public MCP API
version: 1.3.1
summary: 'The public, read-only, anonymous endpoints of lifescenario.ai: the MCP server, its Server Card and a liveness check.'
description: 'Life Scenario is a social and emotional learning (SEL) practice game for children aged 6–14. These are the public endpoints offered to agents and other third-party clients. None needs credentials, none returns user or child data, and none writes anything. A second MCP server, https://lifescenario.ai/api/mcp/account, gives read-only access to one parent''s own account after that parent allows it (OAuth 2.1 or auth.md service_auth); it is described in https://lifescenario.ai/auth.md, not here. Every other route under /api/ belongs to the web app, works only with the session of an adult signed in on the site, and is not offered to agents.
/api/mcp is a Model Context Protocol server (Streamable HTTP transport, stateless, JSON responses, no SSE stream). It answers JSON-RPC 2.0 messages; the tools themselves (list_traits, find_practice_situation, get_what_to_say, get_site_overview) and their input and output schemas are listed by the tools/list method and in the MCP server card. info.version is the MCP server''s version.'
contact:
name: Life Scenario
url: https://lifescenario.ai/contact
email: support@lifescenario.ai
servers:
- url: https://lifescenario.ai
security: []
tags:
- name: MCP
paths:
/api/mcp:
post:
operationId: mcpMessage
summary: Send a JSON-RPC 2.0 message to the MCP server
description: 'Streamable HTTP transport of the Model Context Protocol (protocol versions 2025-06-18 and 2025-03-26). Methods answered: initialize, ping, tools/list, tools/call, resources/list, resources/templates/list, prompts/list. Notifications (messages without an id) are accepted with 202 and no body. A JSON array of up to 10 messages is answered as an array (initialize may not be part of one). Requests from a browser must come from an allowed Origin; server-side clients send no Origin.'
parameters:
- name: MCP-Protocol-Version
in: header
required: false
description: The protocol version agreed at initialize.
schema:
type: string
examples:
- '2025-06-18'
requestBody:
required: true
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/JsonRpcRequest'
- type: array
minItems: 1
maxItems: 10
items:
$ref: '#/components/schemas/JsonRpcRequest'
examples:
toolsList:
summary: List the tools
value:
jsonrpc: '2.0'
id: 1
method: tools/list
whatToSay:
summary: Find a what-to-say guide
value:
jsonrpc: '2.0'
id: 2
method: tools/call
params:
name: get_what_to_say
arguments:
topic: nobody will play with me
responses:
'200':
description: A JSON-RPC response (or an array of them for a batch). Protocol errors, such as an unknown method or bad tool arguments, are JSON-RPC errors inside a 200.
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/JsonRpcResponse'
- type: array
items:
$ref: '#/components/schemas/JsonRpcResponse'
'202':
description: Notification accepted; no body.
'400':
description: Body is not JSON (-32700), not a valid JSON-RPC request (-32600), or a batch of 0 or more than 10 messages.
content:
application/json:
schema:
$ref: '#/components/schemas/JsonRpcResponse'
'403':
description: A browser request from an Origin that is not allowed.
content:
application/json:
schema:
$ref: '#/components/schemas/JsonRpcResponse'
'408':
description: Request body not received in time.
content:
application/json:
schema:
$ref: '#/components/schemas/JsonRpcResponse'
'413':
description: Request body larger than 64 KB.
content:
application/json:
schema:
$ref: '#/components/schemas/JsonRpcResponse'
tags:
- MCP
/api/mcp/server-card:
get:
operationId: getMcpServerCard
summary: The MCP Server Card
description: Metadata about the MCP server (name, version, description, endpoint, protocol versions) in the MCP Server Card format (SEP-2127, schema v1). Listed in /.well-known/ai-catalog.json.
responses:
'200':
description: The Server Card.
content:
application/mcp-server-card+json:
schema:
type: object
required:
- $schema
- name
- version
- description
properties:
$schema:
type: string
format: uri
name:
type: string
version:
type: string
title:
type: string
description:
type: string
maxLength: 100
websiteUrl:
type: string
format: uri
remotes:
type: array
items:
type: object
required:
- type
- url
properties:
type:
type: string
url:
type: string
supportedProtocolVersions:
type: array
items:
type: string
'304':
description: Not modified (If-None-Match matched the ETag).
tags:
- MCP
components:
schemas:
JsonRpcResponse:
type: object
required:
- jsonrpc
properties:
jsonrpc:
type: string
const: '2.0'
id:
oneOf:
- type: string
- type: integer
- type: 'null'
result:
type: object
error:
type: object
required:
- code
- message
properties:
code:
type: integer
message:
type: string
data: {}
JsonRpcRequest:
type: object
required:
- jsonrpc
- method
properties:
jsonrpc:
type: string
const: '2.0'
id:
description: Absent for a notification.
oneOf:
- type: string
- type: integer
method:
type: string
examples:
- initialize
- ping
- tools/list
- tools/call
- resources/list
- resources/templates/list
- prompts/list
- notifications/initialized
params:
type: object
externalDocs:
description: MCP server documentation
url: https://lifescenario.ai/mcp