An MCP server that costs agents very few tokens
An agent pays for every byte an MCP server sends it, starting with the tool list it reads before doing anything. We treated those bytes as a budget and made the test suite enforce it.
Trustline team · · Updated
The tool list is a tax
When an agent connects to an MCP server, the first thing it reads is the list of tools with their descriptions and input schemas. That list sits in the agent's context for the whole session. A server with forty tools and long JSON Schemas can cost thousands of tokens before the agent has done anything useful. Multiply that by every server the agent has connected and the context fills up with plumbing.
What we measured
We started by measuring rather than guessing. Our test suite records the exact bytes of the tool list, of the help output, and of a complete flow: create an envelope with an approval step, send it, check status, remind, download, and read the audit trail. Those transcripts are saved as snapshots, so any change shows up as a readable diff in review, and the test fails if a number crosses its budget.
What we changed
The biggest single saving was dropping JSON Schema from help output in favour of short signatures that read like a function call. The second was returning ids and statuses instead of echoing the envelope back after every call: the agent already knows what it just asked for. The third was discovery on demand. Detailed help for an operation is only fetched when the agent asks for it, so the common path stays small.
Splitting reads from writes
Our first version used a single tool with an operation parameter, which was the smallest possible tool list. Anthropic's directory guidelines ask for the opposite trade: tools that only read must be separate from tools that change data, and each must carry annotations such as read-only or destructive. That's a reasonable rule for people approving what an agent does, so we split the tool into a few read and write tools with annotations, kept the help tool for discovery, and re-measured. The budgets moved a little, and the reasons are in our decision log.
Money stays out of it
One rule we adopted without hesitation: no MCP tool moves money. We have since gone further, and Trustline doesn't collect payments for its users at all. An agent can attach a link to the sender's own invoice, which the signer sees as a button after signing; the payment happens in the sender's own invoicing tool, and Trustline only records that the link was shown and whether it was followed. See why we link to your invoice.
Try it
The Claude and Cursor pages show the setup, and the agent quickstart has the CLI and REST API.
Send your next document with Trustline
Free for 3 documents a month. An audit certificate and the API, MCP server and CLI on every plan.