Skip to main content
The Sari MCP Server exposes three tools for API discovery and execution.

search_api_collections

Search for API collections using natural language semantic search.

Parameters

Response

Returns a formatted string with matching collections and similarity scores.

Example

Input:
Output:

Notes

  • Results are filtered to collections you have access to
  • Similarity scores range from 0 to 1 (higher is better)
  • Maximum 10 results returned by default

get_openapi_spec

Retrieve the OpenAPI specification for a collection.

Parameters

Response

Returns the OpenAPI specification as a JSON string.

Example

Input:
Output:

Notes

  • Collection name matching is case-insensitive
  • The full OpenAPI spec is returned, including all endpoints
  • Use this to understand available operations before executing

execute_api

Execute an API request against a registered collection.

Parameters

Response

Returns the API response as a JSON string.

Example

Input:
Output:

Path Parameters

For endpoints with path parameters like /users/{id}:
The {id} placeholder will be replaced with user_123.

Error Responses

All tools return errors in a consistent format:

Common Errors


Best Practices

Always use search_api_collections first to find the correct collection name and verify you have access.
Use get_openapi_spec to understand available endpoints, required parameters, and expected responses before executing.
Always check for error responses before proceeding with subsequent calls.
For POST requests that create resources, include an idempotency key in headers to prevent duplicates.