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.
Fold. Identical Interests that meet at the edge wait on one PIT entry. Only one goes upstream.
Fan out. One signed Data comes back, is checked, stored, and answers every agent that was waiting.
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.
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.
- Canonical args (JCS)
- —
- Name
- computing…
- 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.
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.
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.
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 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.
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.
Signed authorization to cache
Only what the producer's signed manifest declares cacheable is cached. MCP annotations are untrusted:
readOnlyHintis never enough.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.
End-to-end verification
Every consumer checks the producer's signature, whoever answered. A tampered answer is rejected and the call is retried directly.
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.