Defines precise JSON schemas for Hermes agent tools and A2A discovery endpoints. Reuse to standardize agent capability definitions and parameters.
# Source: https://github.com/asimons81/hermes-a2a-bridge | License: MIT | Copyright 2026 hermes-a2a-bridge contributors
# Provided via justclaw.it.com; keep this notice with the code.
"""Precise Hermes tool schemas."""
from __future__ import annotations
def _schema(description: str, properties: dict, required: list[str] | None = None) -> dict:
return {"name": "", "description": description, "parameters": {
"type": "object", "properties": properties, "required": required or [], "additionalProperties": False,
}}
URL = {"type": "string", "description": "HTTP(S) agent base URL, Agent Card URL, or registry name."}
TOKEN = {"type": "string", "description": "Optional bearer token. Never returned in output."}
NAME = {
"type": "string",
"minLength": 1,
"maxLength":
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key