MCP Server - API Usage & Reference
API Endpoints
Call a Tool
Endpoint:POST {OMURL}/mcp
Sample Request (Search Metadata):
Get a Prompt
Endpoint:POST {OMURL}/mcp
Sample Request:
Error Handling
Authentication Error
Invalid Tool Error
Validation Error
Best Practices
- Always authenticate: Include the JWT token in every request
- Handle errors gracefully: Check for error responses and handle them appropriately
- Use appropriate limits: Don’t request too many results at once to avoid performance issues
- Cache server capabilities: Store the results of the initialize call to avoid repeated requests
- Use specific entity types: When possible, specify entityType to get more relevant results
Security Considerations
- JWT tokens should be kept secure and not logged
- Use HTTPS for all communications
- Implement token refresh logic for long-running connections
- Follow your organization’s security policies for API access