Skip to content

Tools and MCP

Tools let a model call something outside the conversation: an API of yours, a Model Context Protocol (MCP) server, or one of the built-in tools. Tool definitions are stored per subscription by the tools service; the chat service offers them to the model and makes the calls.

You register a REST API as a tool from its request schema. When the model calls the tool, the chat service sends a POST to the tool’s URL with the model’s arguments. The call is synchronous with a 30-second timeout.

The tool’s URL is part of its stored definition, so moving or renaming the API breaks the tool until you update it.

Register an MCP server and its tools become available to models. The tools service connects to the server over SSE or streamable HTTP, lists its tools, and checks the server’s health on a schedule.

ToolWhat it does
CalculatorEvaluates arithmetic.
Send emailSends mail through Microsoft Graph.
Web searchSearches the web through Tavily.
Fetch pageFetches one public web page and returns it as Markdown.

Built-in tools run in their own service, which has no public route: only the chat service calls it, with a service API key. Email and web search need their providers configured.

fetch-page reads one URL a model asks for, without the domain verification a website source needs, so it is locked down:

  • Private, loopback, link-local and cloud metadata addresses are refused, after resolving DNS and on every redirect.
  • robots.txt is honoured, also for the host a redirect lands on.
  • Responses are capped at 5 MB, the call has a 12-second budget, and the Markdown is cut to a token limit (default 4,000, between 1,000 and 8,000).
  • Calls are rate-limited to 30 a minute per service instance.

A tool’s API credentials are stored with the tool definition today. Moving them to a secrets vault, so that read APIs never return them, is an accepted decision that is still pending (ADR-0004 in Architecture decisions). Use credentials scoped to what the tool needs.