Tool calls
as named data.

IDEM names every read-only MCP tool call and signs its answer, so identical calls travel once and any node on the way can serve the result.

The idea

Ask once. Answer everyone.

Agents working on the same task keep asking the same tools the same things. Over plain MCP, every call travels to the server and runs the tool again. IDEM gives each read-only call a name, so a forwarder on the way can fold identical requests into one and answer repeats from its cache, with a signature that proves who made the answer.

Click an agent to make it ask.

With IDEM: identical Interests from several agents wait on one PIT entry at the edge, one goes to the producer, the signed Data fans out to all of them and stays in the Content Store, which answers a later agent without asking the producerEvery agent asks fetch_page(…/doc/3)PIT…CSABCD…edge forwarderproducerABCD
Interest: a request, by nameData: the signed answerone run of the tool
  1. Fold. Identical Interests that meet at the edge wait on one PIT entry. Only one goes upstream.

  2. Fan out. One signed Data comes back, is checked, stored, and answers every agent that was waiting.

  3. Serve. A later ask for the same name is answered from the Content Store. The producer is not asked.

How it works

A tool call becomes a name. Its result becomes signed data.

The Named Data Networking model, applied to tool calling. Requests carry names, not destinations; answers carry signatures, not trust in the path.

Names
/idem/v1/… · SHA-256
Canonical form
JCS, RFC 8785
Signatures
Ed25519
Forwarder state
PIT · CS · FIB

1Canonicalize

The consumer validates the arguments against the tool's schema, applies only the normalizers the producer declared, and serializes them with JCS. Two spellings of one request become the same bytes.

Two spellings of the same URL: the producer's url:sortQuery normalizer lowercases the host, drops the default port and the fragment, and sorts the query, so both serialize to the same canonical bytesagent A{"url":"https://EXAMPLE.com:443/p?b=2&a=1#x"}agent Bcanonical args, JCS{"url":"https://example.com/p?a=1&b=2"}{"url":"https://EXAMPLEexample.com:443/p?b=2&a=1#x"}url:sortQuerythe producer declareshost to lowercasedefault port droppedfragment droppedquery sorted

Same bytes, so the same name.

Live, in this page

Same question, same name.

Edit either call. Both are canonicalized and named by the real protocol library, running in your browser. Equivalent spellings collapse to one name, so a cache or an aggregating forwarder treats them as one request.

Try
naming…
A
Canonical args (JCS)
—
Name
computing…
B
Canonical args (JCS)
—
Name
computing…

Computed in your browser by @idem/core: validate against the schema, apply the producer's normalizer url:sortQuery (lowercase the host, drop the default port and the fragment, sort the query), serialize with JCS (RFC 8785), then SHA-256.

Two packets. One asks, one answers.

An Interest names what it wants and carries the canonical arguments, so the producer can run the tool. A Data object is the producer's signed answer: any cache may keep it and serve it again, because the signature travels with it.

Interest
signing…

same name

name
What is asked. The arguments appear only as a digest.
args
The canonical arguments. Every forwarder recomputes the digest; a mismatch is dropped.
lifetimeMs
How long the request may wait in a PIT.
nonce
Per-request randomness, for loop detection.
hopLimit
Bounds forwarding; every hop decrements it.
Data
signing…

same namesigned bytes

content
The MCP CallToolResult, unchanged.
meta
Content digest, production time, freshness and scope: all covered by the signature.
signature
Ed25519 over the name and meta. The key is listed in the producer's signed manifest.
ageMs
Not signed: time spent in caches, like HTTP Age.
Signed in your browser with a fresh Ed25519 key. Sign again: the nonce and the signature change, the name does not.

Inside a forwarder

Pass through, drop, serve, fold or forward.

Every node on the path runs the same pipeline. The Pending Interest Table folds identical requests into one, the Content Store answers from cache, and the FIB picks the next hop. Data coming back is verified before it is stored or delivered.

The forwarder pipeline of spec §7: an Interest is passed through, dropped, answered from the Content Store, added to a pending PIT entry, or forwarded; the Data that comes back is verified, stored, delivered to every waiting face, and the entry is clearedInterest, downstream to upstreamData, upstream to downstreamif it fails:drop, error to the waitersInterest infrom a facecacheable?per manifestvalid?digest, loopfresh in CS?scope allowsin the PIT?name pendingforwardPIT entry, FIBpass throughplain MCPdropwrong digestreply Datafrom the CSadd the facewaits on entryData infrom upstreamverifythe signaturestoreif cacheablesatisfyevery faceclearentry removedyesyesnonononoyesyesupstream

The forwarding rules of spec §7. Pick an Interest, or let them play in turn: blue is the request's path, yellow the answer's.

Where it sits

An application-layer overlay, borrowing a network-layer idea.

IDEM runs over HTTP between agent, edge gateway and producer: like a CDN with signed objects, addressed by names instead of URLs. It borrows the network-layer model of Named Data Networking without asking the network to change.

Today
HTTP overlay between agent, edge gateway and producer, running in the sandbox.
Planned
Native NDN binding: the same names and signed Data as NDN packets, via NDNts, evaluated in Mini-NDN.

In the spec, a binding is an MCP transport, not an OSI layer 4 protocol.

The protocol stack, exploded: IP, TCP, TLS, HTTP, the IDEM overlay, and the application with MCP on topIPhost-to-host deliveryTCPa reliable byte streamTLSchannel security, hop by hopHTTPrequest and responseIDEMnames · PIT · CS · signed DataApplicationagent · MCP client and servers

Guarantees

Caching without trusting the cache.

A cache that cannot forge an answer, cannot leak one, and cannot get in the way. These are rules of the protocol, not conventions.

  1. The forwarder stores a signed Data whose tool the producer's signed manifest marks cacheable; a result from a tool that only claims readOnlyHint passes by and is not storedCSsigned manifestfetch_pagecacheablereadOnlyHint only

    Signed authorization to cache

    Only what the producer's signed manifest declares cacheable is cached. MCP annotations are untrusted: readOnlyHint is never enough.

  2. Alice's private result is kept in her own partition at the edge; Bob asks for the same name, is not served from Alice's partition, and his request goes to the producerAliceBobedgeAliceBobto the producer

    Private never leaks

    Results scoped private are kept per user at the edge, never stored beyond it, and never served to anyone else, even for the same name.

  3. A signed Data passes the agent's check; a tampered one fails it, is thrown away, and the agent asks the producer directlyretry, directtampereda cacheagentproducer

    End-to-end verification

    Every consumer checks the producer's signature, whoever answered. A tampered answer is rejected and the call is retried directly.

  4. A call with a side effect passes straight through the forwarder as a plain MCP call; its PIT and Content Store are not touchedPITCSuntouchedsend_email(…)plain MCP

    Transparent to MCP

    Tools with side effects or no cache policy, and arguments outside the schema, pass through as ordinary MCP calls.

One question. One trip.

Watch identical calls fold into one request in the sandbox, with real names, real signatures and real verification, or read how the protocol works.

A research prototype for EEL878 Computer Networks I (UFRJ, 2026/2). The protocol is specified and implemented; the experiments that test it have not run yet, so this site states no results. Measured numbers will appear on /benchmarks once they exist.