get_call_context
Obtain the resolved base URL, active environment, and default credentials needed to execute an API call. Invoke before building a curl command.
Instructions
Returns the runtime context needed to execute API calls: resolved base URL, active environment, and default values for credentials and parameters.
Call this before constructing a curl command when the user wants to actually invoke an endpoint. Do NOT call this just to browse or understand the API shape — use list_endpoints and get_endpoint_schema for that.
Reads from ~/.config/api-mind/.env and ~/.config/api-mind//.env. Defaults to "dev" unless the user specifies otherwise.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api | Yes | API name matching the .mind filename (e.g. auth0-management-v2) | |
| env | No | Environment to use (e.g. stage, uat). Defaults to dev. |