Skip to Content

MCP server

One endpoint that speaks the Model Context Protocol over Streamable HTTP

View as Markdown

The server gives an agent Ajusteur's design engine as tools. It is the same engine our workshop packs come from, so a design that passes here is one we can build.

POST https://ajusteur.com/api/mcp

The facts

WhatHow it works here
ProtocolModel Context Protocol, JSON-RPC 2.0. Versions 2025-11-25, 2025-06-18 and 2025-03-26
TransportStreamable HTTP. Answers come back as JSON.
SessionsNone. Every request carries the token and stands on its own. GET and DELETE answer 405.
AuthenticationAuthorization: Bearer aj_…, an API token you create on your account. See Authentication and tokens.
HeadersContent-Type: application/json and Accept: application/json, text/event-stream
Surfaceajusteur/v1, fourteen tools and three prompts. See All tools and Prompts.
LanguageEnglish

What a tool call looks like

You post one JSON-RPC message. The tool's answer is in result.structuredContent, and the same data comes as JSON text in result.content for clients that only read text.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": { "name": "families_list", "arguments": {} }
}

Three things hold for every tool:

  • Millimetres and AED. Every dimension is a whole millimetre. Money is in AED, rounded to 50 in estimates. You never get a unit rate.
  • say. Every answer carries say, one sentence your agent may pass to the customer as it is.
  • Refusals are answers. A tool that refuses its input answers HTTP 200 with isError: true. The reasons are in structuredContent.error. See Errors and limits.

Methods

MethodWhat it does
initializeOptional here, since there is no session. Well behaved clients send it, and the answer carries the server instructions.
tools/listThe fourteen tools with their JSON Schemas.
prompts/list, prompts/getThe three prompts, one per family.
tools/callRuns one tool. Counts against your daily quota.

On this page