api

v1.0.2
io.github.rog0x/api Checked 1 day ago Published 8 months ago

HTTP client, JWT decode, header analysis for AI agents

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

http_request

Make an HTTP request with full control over method, headers, body, authentication, and timeouts. Returns status, headers, body, and timing information.

ParameterTypeDescription
method *stringHTTP method: GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS
url *stringThe full URL to send the request to
authobjectAuthentication configuration
bodystringRequest body (for POST, PUT, PATCH)
follow_redirectsbooleanWhether to follow redirects (default: true)
headersobjectKey-value pairs of HTTP headers to include
timeoutnumberRequest timeout in milliseconds (default: 30000)

api_health

Check the health of multiple API endpoints. Returns status, response time, SSL certificate validity, and optional response body validation for each endpoint.

ParameterTypeDescription
endpoints *arrayArray of endpoints to check (max 20)

jwt_decode

Decode a JWT token without verification. Returns header, payload, expiry, issued-at time, and whether the token is expired.

ParameterTypeDescription
token *stringThe JWT token string to decode

url_parse

Parse a URL into its component parts: protocol, host, port, path, query parameters, hash, and more. Can also build a URL from parts.

ParameterTypeDescription
build_paramsobjectBuild a URL from parts instead of parsing
urlstringURL to parse (use this OR build_params, not both)

header_analyzer

Analyze HTTP response headers for security (HSTS, CSP, X-Frame-Options, etc.), caching directives, CORS configuration, cookies, and server information. Provides a security grade.

ParameterTypeDescription
headersobjectHTTP response headers as key-value pairs to analyze
urlstringAlternatively, provide a URL to fetch and analyze its response headers