tRPC Router is a JSON Structure definition published by tRPC.
{
"name": "tRPC Router",
"description": "A tRPC router containing typed procedures",
"fields": [
{ "name": "_def", "type": "object", "description": "Internal router definition", "required": true },
{ "name": "procedures", "type": "map[string,Procedure]", "description": "Named procedures in this router", "required": true },
{ "name": "nested", "type": "map[string,Router]", "description": "Nested sub-routers", "required": false }
],
"nested": {
"Procedure": {
"description": "A tRPC procedure (query, mutation, or subscription)",
"fields": [
{ "name": "type", "type": "enum[query,mutation,subscription]", "required": true },
{ "name": "path", "type": "string", "description": "Dot-notation path", "required": true },
{ "name": "input", "type": "ZodSchema", "description": "Zod input validator", "required": false },
{ "name": "output", "type": "ZodSchema", "description": "Zod output validator", "required": false },
{ "name": "meta", "type": "ProcedureMeta", "required": false }
]
},
"ProcedureMeta": {
"description": "Procedure metadata",
"fields": [
{ "name": "openapi", "type": "OpenAPIMeta", "description": "OpenAPI mapping (trpc-openapi)", "required": false }
]
},
"OpenAPIMeta": {
"description": "OpenAPI mapping metadata",
"fields": [
{ "name": "method", "type": "enum[GET,POST,PUT,PATCH,DELETE]", "required": true },
{ "name": "path", "type": "string", "description": "REST path", "required": true },
{ "name": "protect", "type": "boolean", "description": "Require auth", "required": false },
{ "name": "summary", "type": "string", "required": false },
{ "name": "tags", "type": "array[string]", "required": false }
]
}
}
}
Every JSON Structure 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 json structure
4 MCP tools reach this
find_json_structuresBrowse and filter every JSON Structure 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 Structure
curl "https://apis.io/api/v1/json-structures/trpc-router-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no email required.
A second provider on the same verified email joins the account you already have.