verify_signature
Verify digital signatures to confirm authenticity and integrity of signed data, ensuring policy compliance and secure audit trails.
Instructions
Verify a previously created signature.
Args:
signature_id: The signature ID to verifyInput Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signature_id | Yes |
Implementation Reference
- src/asqav_mcp/server.py:130-143 (handler)The `verify_signature` tool is defined here using the `@mcp.tool()` decorator, making it an MCP tool. It uses the `_request` helper to call the Asqav API.
@mcp.tool() async def verify_signature(signature_id: str) -> str: """Verify a previously created signature. Args: signature_id: The signature ID to verify """ try: result = await _request("GET", f"/verify/{signature_id}") valid = result.get("valid", False) status = "VALID" if valid else "INVALID" return f"{status}: Signature {signature_id}" except Exception as e: return f"Error verifying signature: {e}"