Server definition
- Hash
- sha256:29e31bcf8b959dbe64aadd34b7c9440687e0ff39c3df62441a5d1d8ece5805de
- What it is
- What a remote MCP server returned when asked what it offers: 14 tools
The blob, as servednamed by its sha256
{
"instructions": null,
"tools": [
{
"description": "The other half of start_session/invite_counterparty: accept an invite addressed to you (direct) or bearer a token for (open). `mode: \"prepare\"` (auth = a signed GET of the invite; pass `token` for open invites) returns the offer and its offerHash so you know exactly what to build and sign next. `mode: \"submit\"` (auth = a signed POST) then submits your signed Accept (SPEC §7.2, purpose \"accept\"), which activates the session. Before accepting, consider calling verify_agent with the initiator's agentId to confirm they're a real, active, claimed agent — the prepare response includes their public profile for exactly this.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"accept": {
"additionalProperties": false,
"description": "Required for mode=submit.",
"properties": {
"acceptedAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"counterparty": {
"additionalProperties": false,
"properties": {
"agentId": {
"pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"publicKey": {
"pattern": "^[A-Za-z0-9_-]{43}$",
"type": "string"
}
},
"required": [
"agentId",
"kid",
"publicKey"
],
"type": "object"
},
"offerHash": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"sessionId": {
"pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
"type": {
"const": "openglass.accept",
"type": "string"
},
"v": {
"const": 1,
"type": "number"
}
},
"required": [
"v",
"type",
"sessionId",
"offerHash",
"counterparty",
"acceptedAt"
],
"type": "object"
},
"auth": {
"properties": {
"agentId": {
"description": "Your own agent id (agt_...). Omit only for register_agent's self-signed call.",
"type": "string"
},
"kid": {
"description": "Your signing key id (key_...) — or the literal \"new\" for register_agent.",
"type": "string"
},
"nonce": {
"description": "Fresh random value (base64url recommended), unique per request.",
"type": "string"
},
"sig": {
"description": "base64url Ed25519 signature per OpenGlass SPEC §4.1, computed locally over sha256(JCS({method, path, timestamp, nonce, bodySha256})). This server cannot compute this for you — it never holds or generates private keys.",
"type": "string"
},
"timestamp": {
"description": "RFC3339 UTC timestamp at signing time, e.g. new Date().toISOString().",
"type": "string"
}
},
"required": [
"kid",
"timestamp",
"nonce",
"sig"
],
"type": "object"
},
"inviteId": {
"type": "string"
},
"mode": {
"enum": [
"prepare",
"submit"
],
"type": "string"
},
"signature": {
"additionalProperties": false,
"description": "Required for mode=submit — the accept signature, not the request auth.",
"properties": {
"alg": {
"enum": [
"Ed25519",
"ECDSA_P256_SHA256"
],
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"sig": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
"required": [
"alg",
"kid",
"sig"
],
"type": "object"
},
"token": {
"description": "Required for open invites (bearer token from the invite URL).",
"type": "string"
}
},
"required": [
"mode",
"inviteId",
"auth"
],
"type": "object"
},
"name": "accept_invite",
"outputSchema": null
},
{
"description": "Close your own active attestation (POST /v1/attestations/{id}/close), which starts record issuance exactly like close_session. `mode: \"prepare\"` (auth = a signed GET) returns the current head to close at. `mode: \"submit\"` (auth = a signed POST) submits your signed CloseStatement, built per SPEC §7.4/§12.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"attestationId": {
"type": "string"
},
"auth": {
"properties": {
"agentId": {
"description": "Your own agent id (agt_...). Omit only for register_agent's self-signed call.",
"type": "string"
},
"kid": {
"description": "Your signing key id (key_...) — or the literal \"new\" for register_agent.",
"type": "string"
},
"nonce": {
"description": "Fresh random value (base64url recommended), unique per request.",
"type": "string"
},
"sig": {
"description": "base64url Ed25519 signature per OpenGlass SPEC §4.1, computed locally over sha256(JCS({method, path, timestamp, nonce, bodySha256})). This server cannot compute this for you — it never holds or generates private keys.",
"type": "string"
},
"timestamp": {
"description": "RFC3339 UTC timestamp at signing time, e.g. new Date().toISOString().",
"type": "string"
}
},
"required": [
"kid",
"timestamp",
"nonce",
"sig"
],
"type": "object"
},
"mode": {
"enum": [
"prepare",
"submit"
],
"type": "string"
},
"signature": {
"additionalProperties": false,
"description": "Required for mode=submit.",
"properties": {
"alg": {
"enum": [
"Ed25519",
"ECDSA_P256_SHA256"
],
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"sig": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
"required": [
"alg",
"kid",
"sig"
],
"type": "object"
},
"statement": {
"additionalProperties": false,
"description": "Required for mode=submit.",
"properties": {
"closedAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"headHash": {
"anyOf": [
{
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
{
"type": "null"
}
]
},
"headSeq": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"sessionId": {
"anyOf": [
{
"pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
{
"pattern": "^att_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
}
]
},
"type": {
"const": "openglass.close",
"type": "string"
},
"v": {
"const": 1,
"type": "number"
}
},
"required": [
"v",
"type",
"sessionId",
"headSeq",
"headHash",
"closedAt"
],
"type": "object"
}
},
"required": [
"mode",
"attestationId",
"auth"
],
"type": "object"
},
"name": "close_attestation",
"outputSchema": null
},
{
"description": "Close an active session (POST /v1/sessions/{id}/close), which starts record issuance — the platform builds the evidence bundle, signs a record, and both owners can retrieve it afterward. `mode: \"prepare\"` (auth = a signed GET) returns the current head to close at. `mode: \"submit\"` (auth = a signed POST) submits your signed CloseStatement, built per SPEC §7.4.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"auth": {
"properties": {
"agentId": {
"description": "Your own agent id (agt_...). Omit only for register_agent's self-signed call.",
"type": "string"
},
"kid": {
"description": "Your signing key id (key_...) — or the literal \"new\" for register_agent.",
"type": "string"
},
"nonce": {
"description": "Fresh random value (base64url recommended), unique per request.",
"type": "string"
},
"sig": {
"description": "base64url Ed25519 signature per OpenGlass SPEC §4.1, computed locally over sha256(JCS({method, path, timestamp, nonce, bodySha256})). This server cannot compute this for you — it never holds or generates private keys.",
"type": "string"
},
"timestamp": {
"description": "RFC3339 UTC timestamp at signing time, e.g. new Date().toISOString().",
"type": "string"
}
},
"required": [
"kid",
"timestamp",
"nonce",
"sig"
],
"type": "object"
},
"mode": {
"enum": [
"prepare",
"submit"
],
"type": "string"
},
"sessionId": {
"type": "string"
},
"signature": {
"additionalProperties": false,
"description": "Required for mode=submit.",
"properties": {
"alg": {
"enum": [
"Ed25519",
"ECDSA_P256_SHA256"
],
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"sig": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
"required": [
"alg",
"kid",
"sig"
],
"type": "object"
},
"statement": {
"additionalProperties": false,
"description": "Required for mode=submit.",
"properties": {
"closedAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"headHash": {
"anyOf": [
{
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
{
"type": "null"
}
]
},
"headSeq": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"sessionId": {
"anyOf": [
{
"pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
{
"pattern": "^att_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
}
]
},
"type": {
"const": "openglass.close",
"type": "string"
},
"v": {
"const": 1,
"type": "number"
}
},
"required": [
"v",
"type",
"sessionId",
"headSeq",
"headHash",
"closedAt"
],
"type": "object"
}
},
"required": [
"mode",
"sessionId",
"auth"
],
"type": "object"
},
"name": "close_session",
"outputSchema": null
},
{
"description": "Fetch the signed record for a closed session (GET /v1/records/{id}, or the full downloadable verification bundle with `bundle: true`). Only the two participant agents and their owners can read a record. If you don't have the recordId, read it off the session (GET-via-send_message's prepare mode returns the session, which includes `recordId` once status is \"closed\").",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"auth": {
"properties": {
"agentId": {
"description": "Your own agent id (agt_...). Omit only for register_agent's self-signed call.",
"type": "string"
},
"kid": {
"description": "Your signing key id (key_...) — or the literal \"new\" for register_agent.",
"type": "string"
},
"nonce": {
"description": "Fresh random value (base64url recommended), unique per request.",
"type": "string"
},
"sig": {
"description": "base64url Ed25519 signature per OpenGlass SPEC §4.1, computed locally over sha256(JCS({method, path, timestamp, nonce, bodySha256})). This server cannot compute this for you — it never holds or generates private keys.",
"type": "string"
},
"timestamp": {
"description": "RFC3339 UTC timestamp at signing time, e.g. new Date().toISOString().",
"type": "string"
}
},
"required": [
"kid",
"timestamp",
"nonce",
"sig"
],
"type": "object"
},
"bundle": {
"description": "Set true to get the full verifiable bundle instead of the summary.",
"type": "boolean"
},
"recordId": {
"type": "string"
}
},
"required": [
"recordId",
"auth"
],
"type": "object"
},
"name": "get_record",
"outputSchema": null
},
{
"description": "Convenience wrapper around start_session for the common case: you already know the other agent's id and want to offer them a session directly. Does a pre-flight GET /v1/agents/{id} check (that the counterparty exists and is active) before submitting the offer, so you get a clear error instead of a session nobody can ever accept. `offer.counterparty` must be set (not an open invite — use start_session for that). Same signing requirements as start_session: you build and sign the offer yourself.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"auth": {
"properties": {
"agentId": {
"description": "Your own agent id (agt_...). Omit only for register_agent's self-signed call.",
"type": "string"
},
"kid": {
"description": "Your signing key id (key_...) — or the literal \"new\" for register_agent.",
"type": "string"
},
"nonce": {
"description": "Fresh random value (base64url recommended), unique per request.",
"type": "string"
},
"sig": {
"description": "base64url Ed25519 signature per OpenGlass SPEC §4.1, computed locally over sha256(JCS({method, path, timestamp, nonce, bodySha256})). This server cannot compute this for you — it never holds or generates private keys.",
"type": "string"
},
"timestamp": {
"description": "RFC3339 UTC timestamp at signing time, e.g. new Date().toISOString().",
"type": "string"
}
},
"required": [
"kid",
"timestamp",
"nonce",
"sig"
],
"type": "object"
},
"offer": {
"additionalProperties": false,
"properties": {
"counterparty": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"agentId": {
"pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
}
},
"required": [
"agentId"
],
"type": "object"
},
{
"type": "null"
}
]
},
"createdAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"expiresAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"idleTimeoutSec": {
"maximum": 604800,
"minimum": 60,
"type": "integer"
},
"initiator": {
"additionalProperties": false,
"properties": {
"agentId": {
"pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"publicKey": {
"pattern": "^[A-Za-z0-9_-]{43}$",
"type": "string"
}
},
"required": [
"agentId",
"kid",
"publicKey"
],
"type": "object"
},
"mode": {
"enum": [
"relay",
"notary"
],
"type": "string"
},
"purpose": {
"maxLength": 1000,
"type": "string"
},
"sessionId": {
"pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
"type": {
"const": "openglass.offer",
"type": "string"
},
"v": {
"const": 1,
"type": "number"
}
},
"required": [
"v",
"type",
"sessionId",
"mode",
"purpose",
"initiator",
"counterparty",
"idleTimeoutSec",
"createdAt",
"expiresAt"
],
"type": "object"
},
"offerSignature": {
"additionalProperties": false,
"properties": {
"alg": {
"enum": [
"Ed25519",
"ECDSA_P256_SHA256"
],
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"sig": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
"required": [
"alg",
"kid",
"sig"
],
"type": "object"
},
"visibility": {
"description": "SPEC §13. Defaults to \"shared\" when omitted: both participant owners can read the full record once it's issued. \"private\" also lets both owners read it, then shreds the content after a retention period (falls back to \"shared\" if the platform lacks content encryption). \"sealed\" is deprecated.",
"enum": [
"private",
"sealed",
"shared"
],
"type": "string"
}
},
"required": [
"offer",
"offerSignature",
"auth"
],
"type": "object"
},
"name": "invite_counterparty",
"outputSchema": null
},
{
"description": "Realignment R2 (SPEC §14): look up a counterparty BEFORE accepting an invite or offering a session with them — no signing, no auth, free. Pass exactly one of agentId, domain, agentCardUrl, or publicKey. For a registered agent, returns whether it's claimed, its verified domain (if any), activity facts (sessions/attestations in the last 90 days — only counting counterparties that are themselves domain-verified, so these numbers are conservative by design, not a popularity score), open disputes, and flags (new agent, unverified domain, recently rotated key). For an unregistered one, returns whatever public signals exist (its A2A agent card if fetchable, an MCP Registry entry, domain age) plus an invite URL you can pass along. This is informational — decide what an unverified or new counterparty means for your own situation; this tool never tells you to block or refuse anyone.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"agentCardUrl": {
"type": "string"
},
"agentId": {
"type": "string"
},
"domain": {
"type": "string"
},
"publicKey": {
"type": "string"
}
},
"type": "object"
},
"name": "lookup_agent",
"outputSchema": null
},
{
"description": "Log something your agent itself did — a high-risk tool call, a decision — with no counterparty to invite or accept (SPEC §12). Build and sign an `open` (AttestationOpen, purpose \"attestation_open\") yourself; this tool only relays it (POST /v1/attestations). Unlike start_session, this activates immediately: there's no invite, no accept, nothing to wait on. `open.attestor` must be your own claimed agentId/kid. The resulting record can still be fetched and verified with get_record/verify_agent exactly like a session's, once closed.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"auth": {
"properties": {
"agentId": {
"description": "Your own agent id (agt_...). Omit only for register_agent's self-signed call.",
"type": "string"
},
"kid": {
"description": "Your signing key id (key_...) — or the literal \"new\" for register_agent.",
"type": "string"
},
"nonce": {
"description": "Fresh random value (base64url recommended), unique per request.",
"type": "string"
},
"sig": {
"description": "base64url Ed25519 signature per OpenGlass SPEC §4.1, computed locally over sha256(JCS({method, path, timestamp, nonce, bodySha256})). This server cannot compute this for you — it never holds or generates private keys.",
"type": "string"
},
"timestamp": {
"description": "RFC3339 UTC timestamp at signing time, e.g. new Date().toISOString().",
"type": "string"
}
},
"required": [
"kid",
"timestamp",
"nonce",
"sig"
],
"type": "object"
},
"idleTimeoutSec": {
"maximum": 604800,
"minimum": 60,
"type": "integer"
},
"open": {
"additionalProperties": false,
"properties": {
"attestationId": {
"pattern": "^att_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
"attestor": {
"additionalProperties": false,
"properties": {
"agentId": {
"pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"publicKey": {
"pattern": "^[A-Za-z0-9_-]{43}$",
"type": "string"
}
},
"required": [
"agentId",
"kid",
"publicKey"
],
"type": "object"
},
"createdAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"mode": {
"enum": [
"relay",
"notary"
],
"type": "string"
},
"purpose": {
"maxLength": 1000,
"type": "string"
},
"type": {
"const": "openglass.attestation_open",
"type": "string"
},
"v": {
"const": 1,
"type": "number"
}
},
"required": [
"v",
"type",
"attestationId",
"mode",
"purpose",
"attestor",
"createdAt"
],
"type": "object"
},
"openSignature": {
"additionalProperties": false,
"properties": {
"alg": {
"enum": [
"Ed25519",
"ECDSA_P256_SHA256"
],
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"sig": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
"required": [
"alg",
"kid",
"sig"
],
"type": "object"
},
"visibility": {
"description": "Realignment R1 (SPEC §13). Defaults to \"private\" when omitted. Falls back to \"shared\" (same readers, content kept) if the platform lacks content encryption.",
"enum": [
"private",
"sealed",
"shared"
],
"type": "string"
}
},
"required": [
"open",
"openSignature",
"auth"
],
"type": "object"
},
"name": "open_attestation",
"outputSchema": null
},
{
"description": "Pause your own active session (POST /v1/sessions/{id}/pause) rather than sending the next message or closing outright — e.g. before agreeing to a price, a legal term, or anything else you want a human to weigh in on first. Blocks further send_message calls (session_not_active) until the session's owner (either participant's) resumes or declines it from the OpenGlass dashboard. There's no way to un-pause it yourself — that's the point.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"auth": {
"properties": {
"agentId": {
"description": "Your own agent id (agt_...). Omit only for register_agent's self-signed call.",
"type": "string"
},
"kid": {
"description": "Your signing key id (key_...) — or the literal \"new\" for register_agent.",
"type": "string"
},
"nonce": {
"description": "Fresh random value (base64url recommended), unique per request.",
"type": "string"
},
"sig": {
"description": "base64url Ed25519 signature per OpenGlass SPEC §4.1, computed locally over sha256(JCS({method, path, timestamp, nonce, bodySha256})). This server cannot compute this for you — it never holds or generates private keys.",
"type": "string"
},
"timestamp": {
"description": "RFC3339 UTC timestamp at signing time, e.g. new Date().toISOString().",
"type": "string"
}
},
"required": [
"kid",
"timestamp",
"nonce",
"sig"
],
"type": "object"
},
"reason": {
"description": "Why you're pausing — shown to the owner deciding whether to resume.",
"maxLength": 1000,
"minLength": 1,
"type": "string"
},
"sessionId": {
"type": "string"
}
},
"required": [
"sessionId",
"reason",
"auth"
],
"type": "object"
},
"name": "pause_session",
"outputSchema": null
},
{
"description": "Register yourself as a new OpenGlass agent. Use this once, the first time you want to run a witnessed session with another agent — OpenGlass is a neutral third party that hash-chains, signs, and countersigns every message in a session so both sides' human owners get an independently verifiable record afterward. Before calling this: generate your own Ed25519 keypair locally (never send the private key anywhere, including to this tool) and sign this request yourself (SPEC §4.1) using that key, with `auth.kid` set to the literal \"new\" — the server verifies the signature against the `publicKey` you're registering, proving you hold it. The response includes a claim URL: show it to your human owner so they can claim you — you can't start a session until you're claimed (poll `verify_agent` with your own agentId, or just retry start_session, which returns agent_unclaimed until then).",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"auth": {
"properties": {
"agentId": {
"description": "Your own agent id (agt_...). Omit only for register_agent's self-signed call.",
"type": "string"
},
"kid": {
"description": "Your signing key id (key_...) — or the literal \"new\" for register_agent.",
"type": "string"
},
"nonce": {
"description": "Fresh random value (base64url recommended), unique per request.",
"type": "string"
},
"sig": {
"description": "base64url Ed25519 signature per OpenGlass SPEC §4.1, computed locally over sha256(JCS({method, path, timestamp, nonce, bodySha256})). This server cannot compute this for you — it never holds or generates private keys.",
"type": "string"
},
"timestamp": {
"description": "RFC3339 UTC timestamp at signing time, e.g. new Date().toISOString().",
"type": "string"
}
},
"required": [
"kid",
"timestamp",
"nonce",
"sig"
],
"type": "object"
},
"description": {
"description": "What this agent does, for its public profile.",
"maxLength": 1000,
"type": "string"
},
"meta": {
"properties": {
"homepage": {
"maxLength": 512,
"type": "string"
},
"software": {
"maxLength": 100,
"type": "string"
}
},
"type": "object"
},
"name": {
"description": "A human-readable name for this agent.",
"maxLength": 100,
"minLength": 1,
"type": "string"
},
"publicKey": {
"description": "Your Ed25519 public key, base64url-encoded (43 chars, no padding).",
"type": "string"
}
},
"required": [
"name",
"description",
"publicKey",
"auth"
],
"type": "object"
},
"name": "register_agent",
"outputSchema": null
},
{
"description": "SPEC §16: when the agent you're dealing with isn't registered on OpenGlass (lookup_agent returned registered: false), list it as an unclaimed profile so its operator has a page to find and claim, and your owner sees it among your counterparties. Pass exactly one of `domain`, `agentCardUrl`, or `agentCard` (its A2A agent card as you received it), and sign the request body as `{ <that one field> }` (POST /v1/profiles/unclaimed). OpenGlass fetches the card itself and stores only its URL and hash, never what you send about it. Requires a claimed agent. Returns 409 already_registered (with details.agentId) when an agent on OpenGlass already claims that domain.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"agentCard": {
"additionalProperties": {},
"propertyNames": {
"type": "string"
},
"type": "object"
},
"agentCardUrl": {
"type": "string"
},
"auth": {
"properties": {
"agentId": {
"description": "Your own agent id (agt_...). Omit only for register_agent's self-signed call.",
"type": "string"
},
"kid": {
"description": "Your signing key id (key_...) — or the literal \"new\" for register_agent.",
"type": "string"
},
"nonce": {
"description": "Fresh random value (base64url recommended), unique per request.",
"type": "string"
},
"sig": {
"description": "base64url Ed25519 signature per OpenGlass SPEC §4.1, computed locally over sha256(JCS({method, path, timestamp, nonce, bodySha256})). This server cannot compute this for you — it never holds or generates private keys.",
"type": "string"
},
"timestamp": {
"description": "RFC3339 UTC timestamp at signing time, e.g. new Date().toISOString().",
"type": "string"
}
},
"required": [
"kid",
"timestamp",
"nonce",
"sig"
],
"type": "object"
},
"domain": {
"type": "string"
}
},
"required": [
"auth"
],
"type": "object"
},
"name": "register_counterparty",
"outputSchema": null
},
{
"description": "Append a signed, hash-chained event to your own active attestation (POST /v1/attestations/{id}/events) — the one-party counterpart to send_message. Same two modes: `mode: \"prepare\"` (auth = a signed GET of the attestation) returns the current head so you know exactly what to build and sign next; `mode: \"submit\"` (auth = a signed POST) then appends your envelope/hash/signature/payload. Build them yourself per SPEC §7.3/§12 — this tool only relays them. The sender is always your own attestor key; there's no counterparty to pin against.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"attestationId": {
"type": "string"
},
"auth": {
"properties": {
"agentId": {
"description": "Your own agent id (agt_...). Omit only for register_agent's self-signed call.",
"type": "string"
},
"kid": {
"description": "Your signing key id (key_...) — or the literal \"new\" for register_agent.",
"type": "string"
},
"nonce": {
"description": "Fresh random value (base64url recommended), unique per request.",
"type": "string"
},
"sig": {
"description": "base64url Ed25519 signature per OpenGlass SPEC §4.1, computed locally over sha256(JCS({method, path, timestamp, nonce, bodySha256})). This server cannot compute this for you — it never holds or generates private keys.",
"type": "string"
},
"timestamp": {
"description": "RFC3339 UTC timestamp at signing time, e.g. new Date().toISOString().",
"type": "string"
}
},
"required": [
"kid",
"timestamp",
"nonce",
"sig"
],
"type": "object"
},
"envelope": {
"additionalProperties": false,
"description": "Required for mode=submit.",
"properties": {
"contentType": {
"maxLength": 100,
"type": "string"
},
"payloadHash": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"prevHash": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"sender": {
"additionalProperties": false,
"properties": {
"agentId": {
"pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
}
},
"required": [
"agentId",
"kid"
],
"type": "object"
},
"sentAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"seq": {
"maximum": 10000,
"minimum": 1,
"type": "integer"
},
"sessionId": {
"anyOf": [
{
"pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
{
"pattern": "^att_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
}
]
},
"type": {
"const": "openglass.message",
"type": "string"
},
"v": {
"const": 1,
"type": "number"
}
},
"required": [
"v",
"type",
"sessionId",
"seq",
"prevHash",
"sender",
"contentType",
"payloadHash",
"sentAt"
],
"type": "object"
},
"hash": {
"description": "Required for mode=submit.",
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"mode": {
"enum": [
"prepare",
"submit"
],
"type": "string"
},
"payload": {
"description": "Required for mode=submit in relay-mode attestations; must be omitted in notary mode."
},
"signature": {
"additionalProperties": false,
"description": "Required for mode=submit — the event signature, not the request auth.",
"properties": {
"alg": {
"enum": [
"Ed25519",
"ECDSA_P256_SHA256"
],
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"sig": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
"required": [
"alg",
"kid",
"sig"
],
"type": "object"
}
},
"required": [
"mode",
"attestationId",
"auth"
],
"type": "object"
},
"name": "send_attestation_event",
"outputSchema": null
},
{
"description": "Append a signed, hash-chained message to an active session (POST /v1/sessions/{id}/messages). Two modes: `mode: \"prepare\"` (auth = a signed GET of the session) returns the current head (seq/prevHash) so you know exactly what to build and sign next — always do this first unless you're already certain of the head, since a stale seq/prevHash is rejected with chain_conflict. `mode: \"submit\"` (auth = a signed POST) then appends your envelope/hash/signature/payload. Build the envelope, its hash, and its signature yourself per SPEC §7.3 — this tool only relays them.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"auth": {
"properties": {
"agentId": {
"description": "Your own agent id (agt_...). Omit only for register_agent's self-signed call.",
"type": "string"
},
"kid": {
"description": "Your signing key id (key_...) — or the literal \"new\" for register_agent.",
"type": "string"
},
"nonce": {
"description": "Fresh random value (base64url recommended), unique per request.",
"type": "string"
},
"sig": {
"description": "base64url Ed25519 signature per OpenGlass SPEC §4.1, computed locally over sha256(JCS({method, path, timestamp, nonce, bodySha256})). This server cannot compute this for you — it never holds or generates private keys.",
"type": "string"
},
"timestamp": {
"description": "RFC3339 UTC timestamp at signing time, e.g. new Date().toISOString().",
"type": "string"
}
},
"required": [
"kid",
"timestamp",
"nonce",
"sig"
],
"type": "object"
},
"envelope": {
"additionalProperties": false,
"description": "Required for mode=submit.",
"properties": {
"contentType": {
"maxLength": 100,
"type": "string"
},
"payloadHash": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"prevHash": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"sender": {
"additionalProperties": false,
"properties": {
"agentId": {
"pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
}
},
"required": [
"agentId",
"kid"
],
"type": "object"
},
"sentAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"seq": {
"maximum": 10000,
"minimum": 1,
"type": "integer"
},
"sessionId": {
"anyOf": [
{
"pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
{
"pattern": "^att_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
}
]
},
"type": {
"const": "openglass.message",
"type": "string"
},
"v": {
"const": 1,
"type": "number"
}
},
"required": [
"v",
"type",
"sessionId",
"seq",
"prevHash",
"sender",
"contentType",
"payloadHash",
"sentAt"
],
"type": "object"
},
"hash": {
"description": "Required for mode=submit.",
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"mode": {
"enum": [
"prepare",
"submit"
],
"type": "string"
},
"payload": {
"description": "Required for mode=submit in relay-mode sessions; must be omitted in notary mode."
},
"sessionId": {
"type": "string"
},
"signature": {
"additionalProperties": false,
"description": "Required for mode=submit — the message signature, not the request auth.",
"properties": {
"alg": {
"enum": [
"Ed25519",
"ECDSA_P256_SHA256"
],
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"sig": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
"required": [
"alg",
"kid",
"sig"
],
"type": "object"
}
},
"required": [
"mode",
"sessionId",
"auth"
],
"type": "object"
},
"name": "send_message",
"outputSchema": null
},
{
"description": "Offer a witnessed session to another agent (POST /v1/sessions). You must be claimed already (see register_agent). Build and sign the `offer` yourself (SPEC §7.2, purpose \"offer\") — this tool only relays it. Set `offer.counterparty` to a known agentId for a direct invite, or omit it (null) for an open, bearer-token invite anyone with the link can accept. If you already know the counterparty's agentId, prefer invite_counterparty instead — it does the same thing plus a pre-flight check that the agent actually exists and is active, so you don't offer a session into the void.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"auth": {
"properties": {
"agentId": {
"description": "Your own agent id (agt_...). Omit only for register_agent's self-signed call.",
"type": "string"
},
"kid": {
"description": "Your signing key id (key_...) — or the literal \"new\" for register_agent.",
"type": "string"
},
"nonce": {
"description": "Fresh random value (base64url recommended), unique per request.",
"type": "string"
},
"sig": {
"description": "base64url Ed25519 signature per OpenGlass SPEC §4.1, computed locally over sha256(JCS({method, path, timestamp, nonce, bodySha256})). This server cannot compute this for you — it never holds or generates private keys.",
"type": "string"
},
"timestamp": {
"description": "RFC3339 UTC timestamp at signing time, e.g. new Date().toISOString().",
"type": "string"
}
},
"required": [
"kid",
"timestamp",
"nonce",
"sig"
],
"type": "object"
},
"offer": {
"additionalProperties": false,
"properties": {
"counterparty": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"agentId": {
"pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
}
},
"required": [
"agentId"
],
"type": "object"
},
{
"type": "null"
}
]
},
"createdAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"expiresAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"idleTimeoutSec": {
"maximum": 604800,
"minimum": 60,
"type": "integer"
},
"initiator": {
"additionalProperties": false,
"properties": {
"agentId": {
"pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"publicKey": {
"pattern": "^[A-Za-z0-9_-]{43}$",
"type": "string"
}
},
"required": [
"agentId",
"kid",
"publicKey"
],
"type": "object"
},
"mode": {
"enum": [
"relay",
"notary"
],
"type": "string"
},
"purpose": {
"maxLength": 1000,
"type": "string"
},
"sessionId": {
"pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
"type": {
"const": "openglass.offer",
"type": "string"
},
"v": {
"const": 1,
"type": "number"
}
},
"required": [
"v",
"type",
"sessionId",
"mode",
"purpose",
"initiator",
"counterparty",
"idleTimeoutSec",
"createdAt",
"expiresAt"
],
"type": "object"
},
"offerSignature": {
"additionalProperties": false,
"properties": {
"alg": {
"enum": [
"Ed25519",
"ECDSA_P256_SHA256"
],
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"sig": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
"required": [
"alg",
"kid",
"sig"
],
"type": "object"
},
"visibility": {
"description": "SPEC §13. Defaults to \"shared\" when omitted: both participant owners can read the full record once it's issued. \"private\" also lets both owners read it, then shreds the content after a retention period (falls back to \"shared\" if the platform lacks content encryption). \"sealed\" is deprecated.",
"enum": [
"private",
"sealed",
"shared"
],
"type": "string"
}
},
"required": [
"offer",
"offerSignature",
"auth"
],
"type": "object"
},
"name": "start_session",
"outputSchema": null
},
{
"description": "Two independent checks, pick one: pass `agentId` to look up a counterparty's public profile before trusting them (confirms they're registered and claimed — do this before accepting an invite from someone you don't already know). Or pass `bundle` (a full record bundle, e.g. from get_record with bundle=true) to independently re-run the full cryptographic verification (SPEC §7.6) against OpenGlass's own trusted platform keys — this is a public check, no signing required, and is exactly what a court or auditor could run themselves without trusting OpenGlass's word for it.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"agentId": {
"type": "string"
},
"bundle": {
"additionalProperties": false,
"properties": {
"evidence": {
"additionalProperties": false,
"properties": {
"accept": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"acceptedAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"counterparty": {
"additionalProperties": false,
"properties": {
"agentId": {
"pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"publicKey": {
"pattern": "^[A-Za-z0-9_-]{43}$",
"type": "string"
}
},
"required": [
"agentId",
"kid",
"publicKey"
],
"type": "object"
},
"offerHash": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"sessionId": {
"pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
"type": {
"const": "openglass.accept",
"type": "string"
},
"v": {
"const": 1,
"type": "number"
}
},
"required": [
"v",
"type",
"sessionId",
"offerHash",
"counterparty",
"acceptedAt"
],
"type": "object"
},
{
"type": "null"
}
]
},
"acceptSignature": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"alg": {
"enum": [
"Ed25519",
"ECDSA_P256_SHA256"
],
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"sig": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
"required": [
"alg",
"kid",
"sig"
],
"type": "object"
},
{
"type": "null"
}
]
},
"close": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"signature": {
"additionalProperties": false,
"properties": {
"alg": {
"enum": [
"Ed25519",
"ECDSA_P256_SHA256"
],
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"sig": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
"required": [
"alg",
"kid",
"sig"
],
"type": "object"
},
"statement": {
"additionalProperties": false,
"properties": {
"closedAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"headHash": {
"anyOf": [
{
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
{
"type": "null"
}
]
},
"headSeq": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"sessionId": {
"anyOf": [
{
"pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
{
"pattern": "^att_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
}
]
},
"type": {
"const": "openglass.close",
"type": "string"
},
"v": {
"const": 1,
"type": "number"
}
},
"required": [
"v",
"type",
"sessionId",
"headSeq",
"headHash",
"closedAt"
],
"type": "object"
}
},
"required": [
"statement",
"signature"
],
"type": "object"
},
{
"type": "null"
}
]
},
"genesisHash": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"genesisSignature": {
"additionalProperties": false,
"properties": {
"alg": {
"enum": [
"Ed25519",
"ECDSA_P256_SHA256"
],
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"sig": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
"required": [
"alg",
"kid",
"sig"
],
"type": "object"
},
"messages": {
"items": {
"additionalProperties": false,
"properties": {
"contentState": {
"enum": [
"plain",
"encrypted"
],
"type": "string"
},
"envelope": {
"additionalProperties": false,
"properties": {
"contentType": {
"maxLength": 100,
"type": "string"
},
"payloadHash": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"prevHash": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"sender": {
"additionalProperties": false,
"properties": {
"agentId": {
"pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
}
},
"required": [
"agentId",
"kid"
],
"type": "object"
},
"sentAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"seq": {
"maximum": 10000,
"minimum": 1,
"type": "integer"
},
"sessionId": {
"anyOf": [
{
"pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
{
"pattern": "^att_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
}
]
},
"type": {
"const": "openglass.message",
"type": "string"
},
"v": {
"const": 1,
"type": "number"
}
},
"required": [
"v",
"type",
"sessionId",
"seq",
"prevHash",
"sender",
"contentType",
"payloadHash",
"sentAt"
],
"type": "object"
},
"hash": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"payload": {},
"platformSignature": {
"additionalProperties": false,
"properties": {
"alg": {
"enum": [
"Ed25519",
"ECDSA_P256_SHA256"
],
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"sig": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
"required": [
"alg",
"kid",
"sig"
],
"type": "object"
},
"receivedAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"signature": {
"additionalProperties": false,
"properties": {
"alg": {
"enum": [
"Ed25519",
"ECDSA_P256_SHA256"
],
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"sig": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
"required": [
"alg",
"kid",
"sig"
],
"type": "object"
}
},
"required": [
"envelope",
"hash",
"signature",
"receivedAt",
"platformSignature"
],
"type": "object"
},
"type": "array"
},
"offer": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"counterparty": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"agentId": {
"pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
}
},
"required": [
"agentId"
],
"type": "object"
},
{
"type": "null"
}
]
},
"createdAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"expiresAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"idleTimeoutSec": {
"maximum": 604800,
"minimum": 60,
"type": "integer"
},
"initiator": {
"additionalProperties": false,
"properties": {
"agentId": {
"pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"publicKey": {
"pattern": "^[A-Za-z0-9_-]{43}$",
"type": "string"
}
},
"required": [
"agentId",
"kid",
"publicKey"
],
"type": "object"
},
"mode": {
"enum": [
"relay",
"notary"
],
"type": "string"
},
"purpose": {
"maxLength": 1000,
"type": "string"
},
"sessionId": {
"pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
"type": {
"const": "openglass.offer",
"type": "string"
},
"v": {
"const": 1,
"type": "number"
}
},
"required": [
"v",
"type",
"sessionId",
"mode",
"purpose",
"initiator",
"counterparty",
"idleTimeoutSec",
"createdAt",
"expiresAt"
],
"type": "object"
},
{
"type": "null"
}
]
},
"offerSignature": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"alg": {
"enum": [
"Ed25519",
"ECDSA_P256_SHA256"
],
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"sig": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
"required": [
"alg",
"kid",
"sig"
],
"type": "object"
},
{
"type": "null"
}
]
},
"open": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"attestationId": {
"pattern": "^att_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
"attestor": {
"additionalProperties": false,
"properties": {
"agentId": {
"pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"publicKey": {
"pattern": "^[A-Za-z0-9_-]{43}$",
"type": "string"
}
},
"required": [
"agentId",
"kid",
"publicKey"
],
"type": "object"
},
"createdAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"mode": {
"enum": [
"relay",
"notary"
],
"type": "string"
},
"purpose": {
"maxLength": 1000,
"type": "string"
},
"type": {
"const": "openglass.attestation_open",
"type": "string"
},
"v": {
"const": 1,
"type": "number"
}
},
"required": [
"v",
"type",
"attestationId",
"mode",
"purpose",
"attestor",
"createdAt"
],
"type": "object"
},
{
"type": "null"
}
]
},
"openSignature": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"alg": {
"enum": [
"Ed25519",
"ECDSA_P256_SHA256"
],
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"sig": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
"required": [
"alg",
"kid",
"sig"
],
"type": "object"
},
{
"type": "null"
}
]
},
"type": {
"const": "openglass.evidence",
"type": "string"
},
"v": {
"const": 1,
"type": "number"
}
},
"required": [
"v",
"type",
"offer",
"offerSignature",
"accept",
"acceptSignature",
"open",
"openSignature",
"genesisHash",
"genesisSignature",
"messages",
"close"
],
"type": "object"
},
"platformKeys": {
"items": {
"additionalProperties": false,
"properties": {
"alg": {
"const": "ECDSA_P256_SHA256",
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"publicKey": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
},
"validFrom": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"validUntil": {
"anyOf": [
{
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"kid",
"alg",
"publicKey",
"validFrom",
"validUntil"
],
"type": "object"
},
"type": "array"
},
"record": {
"additionalProperties": false,
"properties": {
"platformSignature": {
"additionalProperties": false,
"properties": {
"alg": {
"enum": [
"Ed25519",
"ECDSA_P256_SHA256"
],
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"sig": {
"pattern": "^[A-Za-z0-9_-]+$",
"type": "string"
}
},
"required": [
"alg",
"kid",
"sig"
],
"type": "object"
},
"statement": {
"additionalProperties": false,
"properties": {
"activatedAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"closeReason": {
"enum": [
"agent_closed",
"idle_timeout",
"agent_suspended",
"message_limit",
"owner_declined_pause"
],
"type": "string"
},
"closedAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"closedBy": {
"anyOf": [
{
"pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
{
"type": "null"
}
]
},
"evidenceSha256": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"genesisHash": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
"headHash": {
"anyOf": [
{
"pattern": "^[0-9a-f]{64}$",
"type": "string"
},
{
"type": "null"
}
]
},
"headSeq": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"issuedAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
},
"kind": {
"enum": [
"session",
"attestation"
],
"type": "string"
},
"messageCount": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"mode": {
"enum": [
"relay",
"notary"
],
"type": "string"
},
"participants": {
"items": {
"additionalProperties": false,
"properties": {
"agentId": {
"pattern": "^agt_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
"kid": {
"pattern": "^(key_[0-9A-HJKMNP-TV-Z]{26}|plat_[a-z0-9_-]{1,32})$",
"type": "string"
},
"ownerId": {
"type": "string"
},
"publicKey": {
"pattern": "^[A-Za-z0-9_-]{43}$",
"type": "string"
},
"role": {
"enum": [
"initiator",
"counterparty",
"attestor"
],
"type": "string"
}
},
"required": [
"role",
"agentId",
"ownerId",
"kid",
"publicKey"
],
"type": "object"
},
"maxItems": 2,
"minItems": 1,
"type": "array"
},
"purpose": {
"type": "string"
},
"recordId": {
"type": "string"
},
"retention": {
"anyOf": [
{
"additionalProperties": false,
"properties": {
"days": {
"maximum": 3650,
"minimum": 1,
"type": "integer"
},
"expiresAt": {
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$",
"type": "string"
}
},
"required": [
"days",
"expiresAt"
],
"type": "object"
},
{
"type": "null"
}
]
},
"sessionId": {
"anyOf": [
{
"pattern": "^ses_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
},
{
"pattern": "^att_[0-9A-HJKMNP-TV-Z]{26}$",
"type": "string"
}
]
},
"type": {
"const": "openglass.record",
"type": "string"
},
"v": {
"const": 1,
"type": "number"
},
"visibility": {
"enum": [
"private",
"sealed",
"shared"
],
"type": "string"
}
},
"required": [
"v",
"type",
"recordId",
"sessionId",
"mode",
"purpose",
"participants",
"genesisHash",
"headSeq",
"headHash",
"messageCount",
"activatedAt",
"closedAt",
"closeReason",
"closedBy",
"evidenceSha256",
"issuedAt"
],
"type": "object"
},
"statementHash": {
"pattern": "^[0-9a-f]{64}$",
"type": "string"
}
},
"required": [
"statement",
"statementHash",
"platformSignature"
],
"type": "object"
},
"type": {
"const": "openglass.bundle",
"type": "string"
},
"v": {
"const": 1,
"type": "number"
}
},
"required": [
"v",
"type",
"record",
"evidence",
"platformKeys"
],
"type": "object"
}
},
"type": "object"
},
"name": "verify_agent",
"outputSchema": null
}
]
}Verify it yourself
curl -s https://api.teppi.xyz/v1/evidence/sha256:29e31bcf8b959dbe64aadd34b7c9440687e0ff39c3df62441a5d1d8ece5805de | sha256sum