stamp

v0.6.1
io.github.theoddden/stamp Checked 3 days ago Published 2 months ago

Concierge MCP for agentic workflows: verified time + drift, uuid, diff, calc, attest, verify.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_time

Query an NTP server for current UTC time and this clock's offset. Appends the sample to the drift log and returns the trend inline: current offset, drift rate (ms/day), and whether the clock is stable, drifting, or accelerating.

ParameterTypeDescription
serverstringNTP server to query
timezonestringIANA timezone for a 'local' field, e.g. America/New_York. Optional -- the HTTP transport also takes ?tz= in the URL.

generate_uuid

Generate one or more random UUIDv4 identifiers -- for records, sessions, and IDs created in agent pipelines.

ParameterTypeDescription
countintegerHow many UUIDs to generate

diff

Unified diff between two texts, with added/removed line counts. For reviewing edits, comparing outputs, or validating transformations.

ParameterTypeDescription
text_a *stringOriginal text
text_b *stringRevised text
contextintegerLines of context around each change

calculate

Evaluate a math expression safely: + - * / // % **, parentheses, functions (abs round min max sqrt floor ceil exp log log2 log10 pow sin cos tan), constants pi e tau inf. Parsed to an AST and only whitelisted nodes are computed -- no eval(), no names, no arbitrary code.

ParameterTypeDescription
expression *stringe.g. "(1500 * 0.23) + 47"

attest

Wrap any payload in a tamper-evident record: a UUID, a timestamp (NTP-verified when reachable, local clock otherwise -- the record says which), and a sha256 over the canonical record. One call, the record is complete and tamper-evident.

ParameterTypeDescription
payload *Any JSON value to attest
serverstringNTP server for the verified timestamp

verify

Check a record produced by attest: recompute the sha256 over the record and compare. Pass/fail -- did this payload produce this hash at this timestamp. Any modified field breaks it.

ParameterTypeDescription
attested *objectThe record returned by attest