Index Ai Academy
Glossary · Phase 9 · Model Context Protocol

Resource template

Also written: resource templates, URI template, URI templates

A pattern like docs://help/{id} that describes a whole family of MCP resources without listing each one.

Nobody prints a list of every apartment in a city. "Apartment {number}, 12 Main Street" covers them all. Listing every invoice or every customer record isn't practical either. A resource template describes a whole family with an RFC 6570 URI template, such as docs://help/{id} or crm://customers/{customer_id}/orders. resources/templates/list returns them. A client fills in the variables to build a URI, then reads it.

Try it now

The practice server's help articles are resources, with one template, docs://help/{id}. Its one prompt fills a campaign's data into a review request.

Learn it properly

Resources and prompts · Readable data, URI templates and reusable prompt templates. About 40 minutes.

Create a free account See what's in the lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write