Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
API_OTPNoThe OTP code to submit to API_VERIFY_ENDPOINT. On staging this is typically a fixed test code.
API_EMAILNoLogin email (required for authenticated endpoints)
API_PASSWORDNoLogin password (required for authenticated endpoints)
REST_BASE_URLYesBase API URL, no trailing slash
API_TOKEN_PATHNoDot-path to token in login/verify response, e.g. data.access_token
API_SWAGGER_URLNoOpenAPI JSON URL for fetch_spec, search_endpoints, and login auto-discovery
API_LOGIN_ENDPOINTNoOverride login path, e.g. /auth/sign-in
API_VERIFY_ENDPOINTNoPath of the 2FA/OTP verify step. Setting this enables two-step auth. Example: /auth/verify-otp
API_LOGIN_CREDENTIALSNoJSON object of extra fields merged into the login POST body alongside email/password. Use for role, source, tenantId, etc. Example: {"role":"admin"}
API_VERIFY_CREDENTIALSNoJSON object of extra fields merged into the verify POST body, beyond the auto-carried session identifiers and OTP. Example: {"client_id":"web-app"}
REST_ENABLE_SSL_VERIFYNoSet false to skip TLS cert validation (dev/staging only)true
REST_RESPONSE_SIZE_LIMITNoMax response characters before truncation100000

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
fetch_specA

Fetches the OpenAPI/Swagger JSON spec for this API. Use this to discover endpoint paths, HTTP methods, and request body schemas before calling request().

search_endpointsA

Fuzzy-search the API spec by keyword. Use this when you don't know the exact path. Searches across path, HTTP method, summary, description, tags, and operationId. Returns matching endpoints with their method, full path, summary, and required parameters.

requestA

Makes an authenticated API call. Handles login automatically — if the token is expired it re-logins transparently. Returns the full response body plus login_data (which contains IDs like pharmacyId returned from login).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Implementation Workflow GuideStep-by-step guide for implementing a REST API endpoint in Flutter using this MCP server

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Muhammed-AbdelGhany/rest_api_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server