Wrap any REST API into an agent-usable tool: pick the auth pattern, map schemas to tool arguments, add pagination, retries, and structured error handling, then test the connector. Use when an agent needs to call a third-party or internal REST API reliably.
./install.sh api-connector-buildername: "api_connector_builder" description: "Wrap any REST API into an agent-usable tool: pick the auth pattern, map schemas to tool arguments, add pagination, retries, and structured error handling, then test the connector. Use when an agent needs to call a third-party or internal REST API reliably."
Turn an unfamiliar REST API into a tool an agent can call without babysitting. The connector attaches auth correctly, pages long lists safely, retries transient failures, returns structured errors the model can branch on, and trims responses to what the model actually needs. All of that happens outside the model's view: the model sees clean tool functions, not HTTP plumbing.
/openapi.json, /swagger.json, or the docs page), rate limits, pagination style, and error format. Note anything weird now, not after you ship.references/openapi_tool_generation.md. Hand-writing a client that a generator could produce is wasted effort and a bug farm.references/auth_patterns.md. Load secrets from env or a vault, never hardcode them. Fail fast with a clear message when the credential is missing. Start from bin/connector_template.py and set AuthConfig for the provider.shape so the model gets a small, stable payload. Never pass raw API JSON through.paginate(). Cap pages per tool call (default 5 pages) and return a continuation token so the agent can ask for more. See references/pagination_strategies.md.Retry-After. Never retry 400/401/403/404: return a structured {error, code, message, hint} dict instead. The template does this already. See references/retry_error_policy.md.references/testing_checklist.md: one read-only call against the real API, one paged list, one error path, one mutation in the provider's sandbox or dry-run mode if offered. Only ship what you verified live.A connector module that exposes tool functions which:
Plus the decisions that shaped it: auth scheme, pagination style, retry policy, and the field shapes, written in comments or a short README so the next person is not guessing.
publisher key 2e43c913833850e6d80f939677e3de76e806d47785c0f1caaca90f9d18c98e1e
No ratings yet — be the first to rate it.